AvogadroLibs 1.97.0
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Cartoon Class Reference
Inheritance diagram for Cartoon:
BSplineGeometry CurveGeometry Drawable

Public Member Functions

 Cartoon (float minRadius, float maxRadius)
 
void addPoint (const Vector3f &pos, const Vector3ub &color, size_t group, size_t id, Core::Residue::SecondaryStructure sec)
 
- Public Member Functions inherited from BSplineGeometry
 BSplineGeometry (bool flat)
 
- Public Member Functions inherited from CurveGeometry
 CurveGeometry (bool flat)
 
void accept (Visitor &visitor) override
 
void render (const Camera &camera) override
 Render the cylinder geometry. More...
 
void addPoint (const Vector3f &pos, const Vector3ub &color, float radius, size_t group, size_t id)
 
const std::vector< Line * > & lines () const
 
- Public Member Functions inherited from Drawable
 Drawable (const Drawable &other)
 
Drawableoperator= (Drawable)
 
virtual void accept (Visitor &)
 
const GeometryNodeparent () const
 Get a pointer to the drawable object's parent. More...
 
GeometryNodeparent ()
 
void setVisible (bool visibility)
 Set the visibility of the drawable object. More...
 
bool isVisible () const
 Get the current visibility of the drawable. More...
 
virtual void render (const Camera &camera)
 Render the contents of the drawable. More...
 
Identifieridentifier ()
 
const Identifieridentifier () const
 
virtual std::multimap< float, Identifierhits (const Vector3f &rayOrigin, const Vector3f &rayEnd, const Vector3f &rayDirection) const
 
virtual Core::Array< IdentifierareaHits (const Frustrum &f) const
 
virtual void clear ()
 
void setRenderPass (RenderPass pass)
 
RenderPass renderPass () const
 

Static Public Attributes

static const float ELIPSE_RATIO
 
- Static Public Attributes inherited from CurveGeometry
static const size_t SKIPPED
 

Protected Member Functions

std::vector< ColorNormalVertexcomputeCirclePoints (const Eigen::Affine3f &a, const Eigen::Affine3f &b, bool flat) const override
 
float computeScale (size_t index, float t, float scale) const override
 
- Protected Member Functions inherited from BSplineGeometry
Vector3f computeCurvePoint (float t, const std::list< Point * > &points) const override
 
- Protected Member Functions inherited from CurveGeometry
virtual void update (int index)
 
virtual Vector3f computeCurvePoint (float t, const std::list< Point * > &points) const =0
 
virtual std::vector< ColorNormalVertexcomputeCirclePoints (const Eigen::Affine3f &a, const Eigen::Affine3f &b, bool flat) const
 
virtual float computeScale (size_t index, float t, float scale) const
 
void processShaderError (bool error)
 
Core::Array< IdentifierareaHits (const Frustrum &f) const override
 
- Protected Member Functions inherited from Drawable
void setParent (GeometryNode *parent)
 Set the parent node for the node. More...
 

Protected Attributes

std::vector< std::pair< CartoonType, size_t > > m_type
 
float m_minRadius
 
float m_maxRadius
 
- Protected Attributes inherited from CurveGeometry
std::vector< Line * > m_lines
 
std::map< size_t, size_t > m_indexMap
 
ShaderInfo m_shaderInfo
 
bool m_dirty
 
bool m_canBeFlat
 
- Protected Attributes inherited from Drawable
GeometryNodem_parent
 
bool m_visible
 
RenderPass m_renderPass
 
Identifier m_identifier
 

Member Function Documentation

◆ computeCirclePoints()

std::vector< ColorNormalVertex > computeCirclePoints ( const Eigen::Affine3f &  a,
const Eigen::Affine3f &  b,
bool  flat 
) const
overrideprotectedvirtual

Reimplemented from CurveGeometry.

◆ computeScale()

float computeScale ( size_t  index,
float  t,
float  scale 
) const
overrideprotectedvirtual

Reimplemented from CurveGeometry.


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