MIRA
|
Renders one or more line strips. More...
#include <visualization/3d/LineStripObject.h>
Public Member Functions | |
LineStripObject (Ogre::SceneManager *sceneManager, Ogre::SceneNode *parent=NULL) | |
virtual | ~LineStripObject () |
virtual void | setColor (const Ogre::ColourValue &color) |
Resets the color of all elements of the line (overwriting all possible individual colors of the line points) More... | |
virtual void | setVisible (bool visible, bool cascade=true) |
bool | isVisible () const |
void | enableAlphaBlending (bool useAlpha=true) |
Enables/disables alpha blending. More... | |
void | setLineWidth (float width) |
Sets the width of the line. More... | |
void | clear () |
Clears all line strips and points. More... | |
void | begin () |
Starts a new line strip. More... | |
void | end () |
Finishes the current line strip. More... | |
void | point (const Ogre::Vector3 &point) |
Adds another point to the current line strip. This must be called between a call to begin() and end(). More... | |
void | point (const Ogre::Vector3 &point, const Ogre::ColourValue &color) |
Adds another point with the specified color to the current line strip. This must be called between a call to begin() and end(). More... | |
void | add (const Ogre::Vector3 &point) |
Adds another point to the last line strip. More... | |
void | add (const Ogre::Vector3 &point, const Ogre::ColourValue &color) |
Adds another point to the last line strip. More... | |
void | addLine (const Ogre::Vector3 &p1, const Ogre::Vector3 &p2) |
Adds a line (a line strip consiting of two points) More... | |
void | addLine (const Ogre::Vector3 &p1, const Ogre::Vector3 &p2, const Ogre::ColourValue &color) |
Adds a line with the specified color. More... | |
virtual void | setScale (const Ogre::Vector3 &scale) |
virtual void | setScale (const Eigen::Vector3f &scale) |
virtual void | setPosition (const Ogre::Vector3 &position) |
virtual void | setPosition (const Eigen::Vector3f &position) |
virtual void | setOrientation (const Ogre::Quaternion &orientation) |
virtual void | setOrientation (const Eigen::Quaternionf &orientation) |
virtual void | setColor (Color::RGBA color) |
virtual void | setTransform (const RigidTransform2f &transform) |
virtual void | setTransform (const RigidTransform3f &transform) |
Ogre::SceneNode * | getNode () |
Protected Attributes | |
Ogre::SceneManager * | mSceneManager |
Ogre::SceneNode * | mNode |
Renders one or more line strips.
This class supports lines whose width is larger than one pixel (in contrast to Ogre's build-in line strip support). If the line width is set to 0 or negative, a one pixel wide line is rendered. A new line strip can be added by calling the begin() method, followed by several calls to point() in order to add points to the strip. Finally, the strip must be finished by calling the end() method. All line strips can be cleared using the clear() method. The class also provides support for line lists, which can be produced by creating multiple line strips consisting of two points only, or by using the addLine() methods.
LineStripObject | ( | Ogre::SceneManager * | sceneManager, |
Ogre::SceneNode * | parent = NULL |
||
) |
|
virtual |
|
virtual |
Resets the color of all elements of the line (overwriting all possible individual colors of the line points)
Reimplemented from VisualizationObject.
|
virtual |
Reimplemented from VisualizationObject.
|
inline |
void enableAlphaBlending | ( | bool | useAlpha = true | ) |
Enables/disables alpha blending.
void setLineWidth | ( | float | width | ) |
Sets the width of the line.
If width <= 0 a one pixel wide line will be shown.
void clear | ( | ) |
Clears all line strips and points.
void begin | ( | ) |
Starts a new line strip.
void end | ( | ) |
Finishes the current line strip.
void point | ( | const Ogre::Vector3 & | point | ) |
void point | ( | const Ogre::Vector3 & | point, |
const Ogre::ColourValue & | color | ||
) |
void add | ( | const Ogre::Vector3 & | point | ) |
void add | ( | const Ogre::Vector3 & | point, |
const Ogre::ColourValue & | color | ||
) |
void addLine | ( | const Ogre::Vector3 & | p1, |
const Ogre::Vector3 & | p2 | ||
) |
Adds a line (a line strip consiting of two points)
void addLine | ( | const Ogre::Vector3 & | p1, |
const Ogre::Vector3 & | p2, | ||
const Ogre::ColourValue & | color | ||
) |
Adds a line with the specified color.
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
inlinevirtualinherited |
|
virtualinherited |
|
virtualinherited |
|
inlineinherited |
|
protectedinherited |
|
protectedinherited |