Avogadro::Rendering::ArrowGeometry#
-
class ArrowGeometry : public Drawable#
The ArrowGeometry class is used to store sets of line strips.
<avogadro/rendering/arrowgeometry.h>
Public Functions
-
ArrowGeometry()#
-
ArrowGeometry(const ArrowGeometry &other)#
-
~ArrowGeometry() override#
-
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 addSingleArrow(const Vector3f &pos1, const Vector3f &pos2, const Vector3ub &color)#
Add a single arrow object with a specific color.
- Parameters:
pos1 – The start coordinate of the arrow.
pos2 – The end coordinate of the arrow.
color – The color of this arrow.
-
void addSingleArrow(const Vector3f &pos1, const Vector3f &pos2)#
Add a single arrow object using the default color.
- Parameters:
pos1 – The start coordinate of the arrow.
pos2 – The end coordinate of the arrow.
-
inline void setColor(const Vector3ub &c)#
Set the default color for arrows added without explicit color.
-
inline void setRadiusScale(float scale)#
Set a scale factor for arrow radii (default 1.0).
-
inline float radiusScale() const#
Get the current radius scale factor.
Public Static Attributes
-
static const size_t InvalidIndex#
Friends
-
friend void swap(ArrowGeometry &lhs, ArrowGeometry &rhs)#
-
ArrowGeometry()#