#include <entity_renderer.hh>
Inherited by ConnectRendererBase, and TraceRendererBase.
Definition at line 69 of file entity_renderer.hh.
EntityRenderer | ( | ) |
virtual ~EntityRenderer | ( | ) | [inline, virtual] |
Definition at line 72 of file entity_renderer.hh.
void AddView | ( | const mol::EntityView & | view | ) |
add view
virtual void Apply | ( | const gfx::MapHandleColorOp & | op | ) | [pure virtual] |
Implemented in ConnectRendererBase, and TraceRendererBase.
virtual void Apply | ( | const gfx::EntityViewColorOp & | op | ) | [pure virtual] |
Implemented in ConnectRendererBase, and TraceRendererBase.
virtual void Apply | ( | const gfx::GradientLevelColorOp & | op | ) | [pure virtual] |
Implemented in ConnectRendererBase, and TraceRendererBase.
virtual void Apply | ( | const gfx::UniformColorOp & | op | ) | [pure virtual] |
Implemented in ConnectRendererBase, and TraceRendererBase.
virtual void Apply | ( | const gfx::ByChainColorOp & | op | ) | [pure virtual] |
Implemented in ConnectRendererBase, and TraceRendererBase.
virtual void Apply | ( | const gfx::ByElementColorOp & | op | ) | [pure virtual] |
Implemented in ConnectRendererBase, and TraceRendererBase.
virtual bool CanSetOptions | ( | RenderOptionsPtr & | render_options | ) | [pure virtual] |
Implemented in CartoonRenderer, CPKRenderer, CustomRenderer, DebugRenderer, LineTraceRenderer, SimpleRenderer, SlineRenderer, and TraceRenderer.
void ClearViews | ( | ) |
reset rendering views to zero
void Debug | ( | unsigned int | flags | ) |
virtual void Export | ( | Exporter * | ex | ) | [virtual] |
scene exporter interface
void FlagPositionsDirty | ( | ) |
virtual geom::AlignedCuboid GetBoundingBox | ( | ) | const [pure virtual] |
Implemented in CartoonRenderer, ConnectRendererBase, and TraceRendererBase.
mol::EntityView GetEffectiveView | ( | ) |
mol::EntityView GetFullView | ( | ) |
get view to be rendered by this renderer.
Upon calling this method, the union of all views added to the renderer with AddView() is calculated by first reevaluating all queries and then merging them into one view.
virtual const String& GetName | ( | ) | const [virtual] |
virtual RenderOptionsPtr GetOptions | ( | ) | [pure virtual] |
Implemented in CartoonRenderer, CPKRenderer, CustomRenderer, DebugRenderer, LineTraceRenderer, SimpleRenderer, SlineRenderer, and TraceRenderer.
const Color& GetSelectionColor | ( | ) | const |
const Color& GetSelectionColorOutline | ( | ) | const |
virtual bool HasDataToRender | ( | ) | const [virtual] |
Reimplemented in TraceRendererBase.
bool HasSelection | ( | ) | const |
whether the renderer has a non-empty selection
bool IsDirty | ( | ) | const |
bool IsEnabled | ( | ) | const |
virtual void PickAtom | ( | const geom::Line3 & | line, | |
Real | line_width, | |||
mol::AtomHandle & | picked_atom | |||
) | [pure 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.
Implemented in ConnectRendererBase, and TraceRendererBase.
virtual void PickBond | ( | const geom::Line3 & | line, | |
Real | line_width, | |||
mol::BondHandle & | picked_bond | |||
) | [pure virtual] |
pick bond
Implemented in ConnectRendererBase, and TraceRendererBase.
virtual void PrepareRendering | ( | ) | [pure virtual] |
Implemented in CartoonRenderer, ConnectRendererBase, CPKRenderer, CustomRenderer, DebugRenderer, LineTraceRenderer, SimpleRenderer, SlineRenderer, and TraceRenderer.
virtual void Render | ( | RenderPass | pass | ) | [virtual] |
render the entity
This is the place where the actual rendering should happen, i.e sending of the geometric primitives to the graphics card.
The rendering buffers and vertex arrays should be prepared in PrepareRendering()
Reimplemented in CPKRenderer.
virtual void RenderOptionsChanged | ( | ) | [virtual] |
virtual void RenderPov | ( | PovState & | pov, | |
const std::string & | name | |||
) | [virtual] |
povray rendering call
Reimplemented in CPKRenderer, CustomRenderer, SimpleRenderer, and TraceRenderer.
void SetEnabled | ( | bool | enabled = true |
) |
virtual void SetName | ( | const String & | name | ) | [protected, virtual] |
virtual void SetOptions | ( | RenderOptionsPtr & | render_options | ) | [pure virtual] |
Implemented in CartoonRenderer, CPKRenderer, CustomRenderer, DebugRenderer, LineTraceRenderer, SimpleRenderer, SlineRenderer, and TraceRenderer.
void SetSelection | ( | const mol::EntityView & | sel | ) |
void SetVisible | ( | const mol::EntityView & | view, | |
bool | visible | |||
) |
hide / show part of the rendered data
void SubstractView | ( | const mol::EntityView & | view | ) |
virtual void UpdateViews | ( | ) | [pure virtual] |
update views
Implemented in ConnectRendererBase, and TraceRendererBase.
IndexedVertexArray& VA | ( | ) | [inline] |
Definition at line 170 of file entity_renderer.hh.
unsigned int debug_flags_ [protected] |
Definition at line 188 of file entity_renderer.hh.
mol::EntityView effective_view_ [protected] |
Definition at line 178 of file entity_renderer.hh.
bool enabled_ [protected] |
Definition at line 175 of file entity_renderer.hh.
mol::EntityView full_sel_ [protected] |
Definition at line 183 of file entity_renderer.hh.
mol::EntityView full_view_ [protected] |
Definition at line 177 of file entity_renderer.hh.
mol::EntityView hidden_view_ [protected] |
Definition at line 179 of file entity_renderer.hh.
Definition at line 174 of file entity_renderer.hh.
float opacity_ [protected] |
Definition at line 189 of file entity_renderer.hh.
mol::EntityView sel_ [protected] |
Definition at line 182 of file entity_renderer.hh.
DirtyFlags sel_state_ [protected] |
Definition at line 186 of file entity_renderer.hh.
IndexedVertexArray sel_va_ [protected] |
Definition at line 184 of file entity_renderer.hh.
DirtyFlags state_ [protected] |
Definition at line 187 of file entity_renderer.hh.
IndexedVertexArray va_ [protected] |
Definition at line 180 of file entity_renderer.hh.