TraceRendererBase Class Reference

#include <trace_renderer_base.hh>

Inherits ost::gfx::impl::EntityRenderer.

Inherited by CartoonRenderer, DebugRenderer, LineTraceRenderer, SlineRenderer, and TraceRenderer.


Public Member Functions

 TraceRendererBase (BackboneTrace &trace, int overshoot)
virtual geom::AlignedCuboid GetBoundingBox () const
virtual void PrepareRendering ()
virtual bool HasDataToRender () const
virtual void UpdateViews ()
virtual void Apply (const gfx::ByElementColorOp &op)
virtual void Apply (const gfx::ByChainColorOp &op)
virtual void Apply (const gfx::UniformColorOp &op)
virtual void Apply (const gfx::GradientLevelColorOp &op)
virtual void Apply (const gfx::EntityViewColorOp &op)
virtual void PickAtom (const geom::Line3 &line, Real line_width, mol::AtomHandle &picked_atom)
virtual void PickBond (const geom::Line3 &line, Real line_width, mol::BondHandle &picked_bond)

Protected Member Functions

void set_node_colors (const Color &c, const mol::Query &q, ColorMask mask)
void set_node_entry_color (NodeEntry &e, ColorMask mask, const Color &c)

Protected Attributes

BackboneTracetrace_
TraceSubset trace_subset_
TraceSubset sel_subset_


Detailed Description

Definition at line 40 of file trace_renderer_base.hh.


Constructor & Destructor Documentation

TraceRendererBase ( BackboneTrace trace,
int  overshoot 
)


Member Function Documentation

virtual void Apply ( const gfx::EntityViewColorOp op  )  [virtual]

Implements EntityRenderer.

virtual void Apply ( const gfx::GradientLevelColorOp op  )  [virtual]

Implements EntityRenderer.

virtual void Apply ( const gfx::UniformColorOp op  )  [virtual]

Implements EntityRenderer.

virtual void Apply ( const gfx::ByChainColorOp op  )  [virtual]

Implements EntityRenderer.

virtual void Apply ( const gfx::ByElementColorOp op  )  [virtual]

Implements EntityRenderer.

virtual geom::AlignedCuboid GetBoundingBox (  )  const [virtual]

Implements EntityRenderer.

virtual bool HasDataToRender (  )  const [virtual]

Reimplemented from EntityRenderer.

virtual void PickAtom ( const geom::Line3 line,
Real  line_width,
mol::AtomHandle picked_atom 
) [virtual]

pick atom

If picked_atom is a valid handle, picked_atom is only replaced if the candidate picked atom is closer to the near clipping plane.

Implements EntityRenderer.

virtual void PickBond ( const geom::Line3 line,
Real  line_width,
mol::BondHandle picked_bond 
) [virtual]

pick bond

Note:
calling PickBond on a trace-based renderer is a no-op as the notion of bonds is not meaningful for these renders

Implements EntityRenderer.

virtual void PrepareRendering (  )  [virtual]

void set_node_colors ( const Color c,
const mol::Query q,
ColorMask  mask 
) [protected]

void set_node_entry_color ( NodeEntry e,
ColorMask  mask,
const Color c 
) [protected]

virtual void UpdateViews (  )  [virtual]

update views

Implements EntityRenderer.


Field Documentation

TraceSubset sel_subset_ [protected]

Definition at line 71 of file trace_renderer_base.hh.

BackboneTrace& trace_ [protected]

Definition at line 69 of file trace_renderer_base.hh.

Definition at line 70 of file trace_renderer_base.hh.


The documentation for this class was generated from the following file:

Generated on Fri Jul 2 14:23:06 2010 for OpenStructure by  doxygen 1.5.8