Avogadro::Rendering::ArrowGeometry#
-
class ArrowGeometry : public Drawable#
The ArrowGeometry class is used to store sets of line strips.
<avogadro/rendering/arrowgeometry.h>
Unnamed Group
-
void addSingleArrow(const Vector3f &pos1, const Vector3f &pos2)#
Add a single arrow object.
- Parameters:
pos1 – The start coordinate of the arrow.
pos2 – The end coordinate of the arrow.
Public Functions
-
ArrowGeometry()#
-
ArrowGeometry(const ArrowGeometry &other)#
-
~ArrowGeometry()#
-
inline ArrowGeometry &operator=(ArrowGeometry)#
-
virtual void render(const Camera &camera) override#
Render the arrows.
- Parameters:
camera – The current camera to be used for rendering.
-
virtual void clear() override#
Clear the contents of the node.
-
void drawLine(const Vector3f &start, const Vector3f &end, double lineWidth)#
-
void drawCone(const Vector3f &base, const Vector3f &cap, double baseRadius, double)#
-
inline void setColor(const Vector3ub &c)#
Set the color of the arrow
Public Static Attributes
-
static const size_t InvalidIndex#
Friends
-
friend void swap(ArrowGeometry &lhs, ArrowGeometry &rhs)#
-
void addSingleArrow(const Vector3f &pos1, const Vector3f &pos2)#