The LineStripGeometry class is used to store sets of line strips.
More...
#include <linestripgeometry.h>
|
static const size_t | InvalidIndex |
|
<avogadro/rendering/linestripgeometry.h>
◆ accept()
Accept a visit from our friendly visitor.
Reimplemented from Drawable.
◆ render()
void render |
( |
const Camera & |
camera | ) |
|
|
overridevirtual |
- Parameters
-
camera | The current camera to be used for rendering. |
Reimplemented from Drawable.
◆ clear()
Clear the contents of the node.
Reimplemented from Drawable.
◆ addLineStrip() [1/3]
size_t addLineStrip |
( |
const Core::Array< Vector3f > & |
vertices, |
|
|
const Core::Array< Vector4ub > & |
color, |
|
|
float |
lineWidth |
|
) |
| |
Add a complete line strip to the object.
- Parameters
-
vertices | The 3D vertices which will be connected to form the line strip. |
color | Vertex color. If not specified, use the current color() and opacity(). If the 3 component color is set, the current opacity() is used. |
lineWidth | The width of the line strip. |
- Note
- All arrays must be the same length, or this function call will fail, returning InvalidIndex.
- Returns
- The index of the first vertex added by this call.
◆ addLineStrip() [2/3]
size_t addLineStrip |
( |
const Core::Array< Vector3f > & |
vertices, |
|
|
const Core::Array< Vector3ub > & |
color, |
|
|
float |
lineWidth |
|
) |
| |
Add a complete line strip to the object.
- Parameters
-
vertices | The 3D vertices which will be connected to form the line strip. |
color | Vertex color. If not specified, use the current color() and opacity(). If the 3 component color is set, the current opacity() is used. |
lineWidth | The width of the line strip. |
- Note
- All arrays must be the same length, or this function call will fail, returning InvalidIndex.
- Returns
- The index of the first vertex added by this call.
◆ addLineStrip() [3/3]
size_t addLineStrip |
( |
const Core::Array< Vector3f > & |
vertices, |
|
|
float |
lineWidth |
|
) |
| |
Add a complete line strip to the object.
- Parameters
-
vertices | The 3D vertices which will be connected to form the line strip. |
color | Vertex color. If not specified, use the current color() and opacity(). If the 3 component color is set, the current opacity() is used. |
lineWidth | The width of the line strip. |
- Note
- All arrays must be the same length, or this function call will fail, returning InvalidIndex.
- Returns
- The index of the first vertex added by this call.
◆ setColor()
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.
◆ color()
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.
◆ setOpacity()
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.
◆ opacity()
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.
◆ vertices()
The documentation for this class was generated from the following file: