Avogadro::Rendering::DashedLineGeometry#
-
class DashedLineGeometry : public Drawable#
The DashedLineGeometry class is used to store sets of dashed lines.
<avogadro/rendering/dashedlinegeometry.h>
Unnamed Group
-
size_t addDashedLine(const Vector3f &start, const Vector3f &end, const Vector4ub &color, int dashCount)#
Add a complete line strip to the object.
Note
All arrays must be the same length, or this function call will fail, returning InvalidIndex.
- Parameters:
- Returns:
The index of the first vertex added by this call.
-
size_t addDashedLine(const Vector3f &start, const Vector3f &end, const Vector3ub &color, int dashCount)#
Add a complete line strip to the object.
Note
All arrays must be the same length, or this function call will fail, returning InvalidIndex.
- Parameters:
- Returns:
The index of the first vertex added by this call.
-
size_t addDashedLine(const Vector3f &start, const Vector3f &end, int dashCount)#
Add a complete line strip to the object.
Note
All arrays must be the same length, or this function call will fail, returning InvalidIndex.
- Parameters:
- Returns:
The index of the first vertex added by this call.
Unnamed Group
-
inline void setColor(const Vector3ub &c)#
The default color of the lines. This is used to set the color of new vertices when no explicit vertex color is specified.
-
inline Vector3ub color() const#
The default color of the lines. This is used to set the color of new vertices when no explicit vertex color is specified.
Unnamed Group
-
inline void setOpacity(unsigned char opacity_)#
The default opacity of the lines. This is used when either no explicit vertex color is specified, or a three component color is used.
-
inline unsigned char opacity() const#
The default opacity of the lines. This is used when either no explicit vertex color is specified, or a three component color is used.
Unnamed Group
-
inline void setLineWidth(unsigned char lineWidth_)#
The line width used for all of the lines.
-
inline unsigned char lineWidth() const#
The line width used for all of the lines.
Public Functions
-
DashedLineGeometry()#
-
DashedLineGeometry(const DashedLineGeometry &other)#
-
~DashedLineGeometry() override#
-
inline DashedLineGeometry &operator=(DashedLineGeometry)#
-
virtual void render(const Camera &camera) override#
Render the line strips.
- Parameters:
camera – The current camera to be used for rendering.
-
virtual void clear() override#
Clear the contents of the node.
Friends
-
friend void swap(DashedLineGeometry &lhs, DashedLineGeometry &rhs)#
-
size_t addDashedLine(const Vector3f &start, const Vector3f &end, const Vector4ub &color, int dashCount)#