AvogadroLibs  1.96.0
Public Member Functions | Static Public Attributes | List of all members
ArrowGeometry Class Reference

The ArrowGeometry class is used to store sets of line strips. More...

#include <arrowgeometry.h>

Inheritance diagram for ArrowGeometry:
Drawable

Public Member Functions

 ArrowGeometry (const ArrowGeometry &other)
 
ArrowGeometryoperator= (ArrowGeometry)
 
void accept (Visitor &) override
 
void render (const Camera &camera) override
 Render the arrows. More...
 
void clear () override
 
void drawLine (const Vector3f &start, const Vector3f &end, double lineWidth)
 
void drawCone (const Vector3f &base, const Vector3f &cap, double baseRadius, double)
 
Core::Array< std::pair< Vector3f, Vector3f > > vertices () const
 
void addSingleArrow (const Vector3f &pos1, const Vector3f &pos2)
 
- Public Member Functions inherited from Drawable
 Drawable (const Drawable &other)
 
Drawableoperator= (Drawable)
 
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...
 
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
 
void setRenderPass (RenderPass pass)
 
RenderPass renderPass () const
 

Static Public Attributes

static const size_t InvalidIndex
 

Additional Inherited Members

- Protected Member Functions inherited from Drawable
void setParent (GeometryNode *parent)
 Set the parent node for the node. More...
 
- Protected Attributes inherited from Drawable
GeometryNodem_parent
 
bool m_visible
 
RenderPass m_renderPass
 
Identifier m_identifier
 

Detailed Description

<avogadro/rendering/arrowgeometry.h>

Member Function Documentation

◆ accept()

void accept ( Visitor )
overridevirtual

Accept a visit from our friendly visitor.

Reimplemented from Drawable.

◆ render()

void render ( const Camera camera)
overridevirtual
Parameters
cameraThe current camera to be used for rendering.

Reimplemented from Drawable.

◆ clear()

void clear ( )
overridevirtual

Clear the contents of the node.

Reimplemented from Drawable.

◆ addSingleArrow()

void addSingleArrow ( const Vector3f &  pos1,
const Vector3f &  pos2 
)

Add a single arrow object.

Parameters
pos1The start coordinate of the arrow.
pos2The end coordinate of the arrow.

◆ vertices()

Core::Array<std::pair<Vector3f, Vector3f> > vertices ( ) const

The vertex array.


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