OpenStructure
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes
ConnectRendererBase Class Reference

#include <connect_renderer_base.hh>

Inherits EntityRenderer.

Inherited by CPKRenderer, CustomRenderer, and SimpleRenderer.

Public Member Functions

 ConnectRendererBase ()
 
virtual void PrepareRendering ()
 
virtual geom::AlignedCuboid GetBoundingBox () const
 
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 Apply (const gfx::MapHandleColorOp &op)
 
virtual void PickBond (const geom::Line3 &line, Real line_width, mol::BondHandle &picked_bond)
 
virtual void UpdateViews ()
 
- Public Member Functions inherited from EntityRenderer
 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 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 void RenderOptionsChanged ()
 
bool IsDirty () const
 
void FlagPositionsDirty ()
 
void Debug (unsigned int flags)
 
IndexedVertexArray & VA ()
 

Protected Member Functions

void SetFixedPickRadius (float radius)
 
bool HasFixedPickRadius () const
 
float GetFixedPickRadius () const
 
- Protected Member Functions inherited from EntityRenderer
virtual void SetName (const String &name)
 

Protected Attributes

float pick_radius_
 
GfxView view_
 
GfxView sel_view_
 
- Protected Attributes inherited from EntityRenderer
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_
 

Detailed Description

Definition at line 34 of file connect_renderer_base.hh.

Constructor & Destructor Documentation

◆ ConnectRendererBase()

Member Function Documentation

◆ Apply() [1/6]

virtual void Apply ( const gfx::ByChainColorOp &  op)
virtual

Implements EntityRenderer.

◆ Apply() [2/6]

virtual void Apply ( const gfx::ByElementColorOp &  op)
virtual

Implements EntityRenderer.

◆ Apply() [3/6]

virtual void Apply ( const gfx::EntityViewColorOp &  op)
virtual

Implements EntityRenderer.

◆ Apply() [4/6]

virtual void Apply ( const gfx::GradientLevelColorOp &  op)
virtual

Implements EntityRenderer.

◆ Apply() [5/6]

virtual void Apply ( const gfx::MapHandleColorOp &  op)
virtual

Implements EntityRenderer.

◆ Apply() [6/6]

virtual void Apply ( const gfx::UniformColorOp &  op)
virtual

Implements EntityRenderer.

◆ GetBoundingBox()

virtual geom::AlignedCuboid GetBoundingBox ( ) const
virtual

Implements EntityRenderer.

◆ GetFixedPickRadius()

float GetFixedPickRadius ( ) const
inlineprotected

Definition at line 58 of file connect_renderer_base.hh.

◆ HasFixedPickRadius()

bool HasFixedPickRadius ( ) const
inlineprotected

Definition at line 57 of file connect_renderer_base.hh.

◆ PickAtom()

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.

◆ PickBond()

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.

◆ PrepareRendering()

virtual void PrepareRendering ( )
virtual

Implements EntityRenderer.

Reimplemented in CPKRenderer, CustomRenderer, and SimpleRenderer.

◆ SetFixedPickRadius()

void SetFixedPickRadius ( float  radius)
inlineprotected

Definition at line 56 of file connect_renderer_base.hh.

◆ UpdateViews()

virtual void UpdateViews ( )
virtual

update views

Implements EntityRenderer.

Field Documentation

◆ pick_radius_

float pick_radius_
protected

Definition at line 61 of file connect_renderer_base.hh.

◆ sel_view_

GfxView sel_view_
protected

Definition at line 63 of file connect_renderer_base.hh.

◆ view_

GfxView view_
protected

Definition at line 62 of file connect_renderer_base.hh.


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