The LineStripGeometry class is used to store sets of line strips.
More...
#include <linestripgeometry.h>
|
|
| LineStripGeometry (const LineStripGeometry &other) |
|
LineStripGeometry & | operator= (LineStripGeometry) |
| void | accept (Visitor &) override |
| void | render (const Camera &camera) override |
| | Render the line strips.
|
| void | clear () override |
| Core::Array< PackedVertex > | vertices () const |
| size_t | addLineStrip (const Core::Array< Vector3f > &vertices, const Core::Array< Vector4ub > &color, float lineWidth) |
| size_t | addLineStrip (const Core::Array< Vector3f > &vertices, const Core::Array< Vector3ub > &color, float lineWidth) |
| size_t | addLineStrip (const Core::Array< Vector3f > &vertices, const Vector3ub &color, float lineWidth) |
| size_t | addLineStrip (const Core::Array< Vector3f > &vertices, float lineWidth) |
| void | setColor (const Vector3ub &c) |
| Vector3ub | color () const |
| void | setOpacity (unsigned char opacity_) |
| unsigned char | opacity () const |
|
| Drawable (const Drawable &other) |
|
Drawable & | operator= (Drawable) |
| const GeometryNode * | parent () const |
| | Get a pointer to the drawable object's parent.
|
|
GeometryNode * | parent () |
| void | setVisible (bool visibility) |
| | Set the visibility of the drawable object.
|
| bool | isVisible () const |
| | Get the current visibility of the drawable.
|
| Identifier & | identifier () |
|
const Identifier & | identifier () const |
| virtual std::multimap< float, Identifier > | hits (const Vector3f &rayOrigin, const Vector3f &rayEnd, const Vector3f &rayDirection) const |
| virtual Core::Array< Identifier > | areaHits (const Frustrum &f) const |
| void | setRenderPass (RenderPass pass) |
| RenderPass | renderPass () const |
|
|
static const size_t | InvalidIndex |
|
| void | setParent (GeometryNode *parent) |
| | Set the parent node for the node.
|
|
GeometryNode * | m_parent |
|
bool | m_visible |
|
RenderPass | m_renderPass |
|
Identifier | m_identifier |
<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/4]
| 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/4]
| 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/4]
| size_t addLineStrip |
( |
const Core::Array< Vector3f > & | vertices, |
|
|
const 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() [4/4]
| 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: