ConnectRendererBase Class Reference

#include <connect_renderer_base.hh>

Inherits ost::gfx::impl::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 ()

Protected Member Functions

void SetFixedPickRadius (float radius)
bool HasFixedPickRadius () const
float GetFixedPickRadius () const

Protected Attributes

float pick_radius_
GfxView view_
GfxView sel_view_

Detailed Description

Definition at line 34 of file connect_renderer_base.hh.


Constructor & Destructor Documentation


Member Function Documentation

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

Implements EntityRenderer.

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.

float GetFixedPickRadius (  )  const [inline, protected]

Definition at line 60 of file connect_renderer_base.hh.

bool HasFixedPickRadius (  )  const [inline, protected]

Definition at line 59 of file connect_renderer_base.hh.

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]

Implements EntityRenderer.

Reimplemented in CPKRenderer, CustomRenderer, and SimpleRenderer.

void SetFixedPickRadius ( float  radius  )  [inline, protected]

Definition at line 58 of file connect_renderer_base.hh.

virtual void UpdateViews (  )  [virtual]

update views

Implements EntityRenderer.


Field Documentation

float pick_radius_ [protected]

Definition at line 63 of file connect_renderer_base.hh.

GfxView sel_view_ [protected]

Definition at line 65 of file connect_renderer_base.hh.

GfxView view_ [protected]

Definition at line 64 of file connect_renderer_base.hh.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 1 Mar 2018 for OpenStructure by  doxygen 1.6.1