OpenStructure
|
#include <entity_renderer.hh>
Inherited by ConnectRendererBase, and TraceRendererBase.
Public Member Functions | |
EntityRenderer () | |
virtual | ~EntityRenderer () |
void | AddView (const mol::EntityView &view) |
void | SubstractView (const mol::EntityView &view) |
void | ClearViews () |
virtual bool | HasDataToRender () const |
virtual const String & | GetName () const |
void | SetEnabled (bool enabled=true) |
bool | IsEnabled () const |
bool | HasSelection () const |
void | SetSelection (const mol::EntityView &sel) |
void | SetVisible (const mol::EntityView &view, bool visible) |
const Color & | GetSelectionColor () const |
const Color & | GetSelectionColorOutline () const |
mol::EntityView | GetFullView () |
mol::EntityView | GetEffectiveView () |
virtual void | UpdateViews ()=0 |
virtual void | PrepareRendering ()=0 |
virtual void | Render (RenderPass pass) |
virtual void | RenderPov (PovState &pov, const std::string &name) |
virtual void | Export (Exporter *ex) |
virtual bool | CanSetOptions (RenderOptionsPtr &render_options)=0 |
virtual void | SetOptions (RenderOptionsPtr &render_options)=0 |
virtual RenderOptionsPtr | GetOptions ()=0 |
virtual geom::AlignedCuboid | GetBoundingBox () const =0 |
virtual void | PickAtom (const geom::Line3 &line, Real line_width, mol::AtomHandle &picked_atom)=0 |
virtual void | PickBond (const geom::Line3 &line, Real line_width, mol::BondHandle &picked_bond)=0 |
virtual void | RenderOptionsChanged () |
virtual void | Apply (const gfx::ByElementColorOp &op)=0 |
virtual void | Apply (const gfx::ByChainColorOp &op)=0 |
virtual void | Apply (const gfx::UniformColorOp &op)=0 |
virtual void | Apply (const gfx::GradientLevelColorOp &op)=0 |
virtual void | Apply (const gfx::EntityViewColorOp &op)=0 |
bool | IsDirty () const |
void | FlagPositionsDirty () |
void | Debug (unsigned int flags) |
IndexedVertexArray & | VA () |
Protected Member Functions | |
virtual void | SetName (const String &name) |
Protected Attributes | |
String | name_ |
bool | enabled_ |
mol::EntityView | full_view_ |
mol::EntityView | effective_view_ |
mol::EntityView | hidden_view_ |
IndexedVertexArray | va_ |
mol::EntityView | sel_ |
mol::EntityView | full_sel_ |
IndexedVertexArray | sel_va_ |
DirtyFlags | sel_state_ |
DirtyFlags | state_ |
unsigned int | debug_flags_ |
float | opacity_ |
Definition at line 69 of file entity_renderer.hh.
EntityRenderer | ( | ) |
|
inlinevirtual |
Definition at line 72 of file entity_renderer.hh.
void AddView | ( | const mol::EntityView & | view | ) |
add view
|
pure virtual |
Implemented in TraceRendererBase, and ConnectRendererBase.
|
pure virtual |
Implemented in TraceRendererBase, and ConnectRendererBase.
|
pure virtual |
Implemented in TraceRendererBase, and ConnectRendererBase.
|
pure virtual |
Implemented in TraceRendererBase, and ConnectRendererBase.
|
pure virtual |
Implemented in TraceRendererBase, and ConnectRendererBase.
|
pure virtual |
Implemented in LineTraceRenderer, TraceRenderer, CartoonRenderer, SlineRenderer, CPKRenderer, SimpleRenderer, CustomRenderer, and DebugRenderer.
void ClearViews | ( | ) |
reset rendering views to zero
void Debug | ( | unsigned int | flags | ) |
|
virtual |
scene exporter interface
void FlagPositionsDirty | ( | ) |
|
pure virtual |
Implemented in CartoonRenderer, TraceRendererBase, and ConnectRendererBase.
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 |
|
pure virtual |
Implemented in LineTraceRenderer, TraceRenderer, CartoonRenderer, SlineRenderer, CPKRenderer, SimpleRenderer, CustomRenderer, and DebugRenderer.
const Color& GetSelectionColor | ( | ) | const |
const Color& GetSelectionColorOutline | ( | ) | const |
|
virtual |
Reimplemented in TraceRendererBase.
bool HasSelection | ( | ) | const |
whether the renderer has a non-empty selection
bool IsDirty | ( | ) | const |
bool IsEnabled | ( | ) | const |
|
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 TraceRendererBase, and ConnectRendererBase.
|
pure virtual |
pick bond
Implemented in TraceRendererBase, and ConnectRendererBase.
|
pure virtual |
Implemented in CartoonRenderer, LineTraceRenderer, TraceRenderer, SlineRenderer, SimpleRenderer, ConnectRendererBase, CPKRenderer, CustomRenderer, and DebugRenderer.
|
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 |
|
virtual |
povray rendering call
Reimplemented in TraceRenderer, SimpleRenderer, CPKRenderer, and CustomRenderer.
void SetEnabled | ( | bool | enabled = true | ) |
|
protectedvirtual |
|
pure virtual |
Implemented in LineTraceRenderer, TraceRenderer, CartoonRenderer, SlineRenderer, CPKRenderer, SimpleRenderer, CustomRenderer, and DebugRenderer.
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 | ) |
|
pure virtual |
update views
Implemented in ConnectRendererBase, and TraceRendererBase.
|
inline |
Definition at line 170 of file entity_renderer.hh.
|
protected |
Definition at line 188 of file entity_renderer.hh.
|
protected |
Definition at line 178 of file entity_renderer.hh.
|
protected |
Definition at line 175 of file entity_renderer.hh.
|
protected |
Definition at line 183 of file entity_renderer.hh.
|
protected |
Definition at line 177 of file entity_renderer.hh.
|
protected |
Definition at line 179 of file entity_renderer.hh.
|
protected |
Definition at line 174 of file entity_renderer.hh.
|
protected |
Definition at line 189 of file entity_renderer.hh.
|
protected |
Definition at line 182 of file entity_renderer.hh.
|
protected |
Definition at line 186 of file entity_renderer.hh.
|
protected |
Definition at line 184 of file entity_renderer.hh.
|
protected |
Definition at line 187 of file entity_renderer.hh.
|
protected |
Definition at line 180 of file entity_renderer.hh.