MIRA
Public Member Functions | Protected Attributes | List of all members
LineListObject Class Reference

Renders a line strip as billboard chain. More...

#include <visualization/3d/LineListObject.h>

Inheritance diagram for LineListObject:
Inheritance graph
[legend]

Public Member Functions

 LineListObject (Ogre::SceneManager *sceneManager, Ogre::SceneNode *parent=NULL, int lineCountHint=1024)
 
virtual ~LineListObject ()
 
virtual void setColor (const Ogre::ColourValue &color)
 
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 lines. More...
 
void add (const Ogre::Vector3 &p1, const Ogre::Vector3 &p2)
 Adds another line. More...
 
void add (const Ogre::Vector3 &p1, const Ogre::Vector3 &p2, const Ogre::ColourValue &color)
 Adds another point with the specified color to the line. 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)
 
virtual void setVisible (bool visible, bool cascade=true)
 
Ogre::SceneNode * getNode ()
 

Protected Attributes

int mLineCountHint
 
Ogre::MaterialPtr mMaterial
 
std::vector< Ogre::BillboardChain * > mChains
 
std::vector< int > mLinesInChain
 
int mCurChain
 
float mWidth
 
Ogre::ColourValue mColor
 
Ogre::SceneManager * mSceneManager
 
Ogre::SceneNode * mNode
 

Detailed Description

Renders a line strip as billboard chain.

In contrast to line strips of manual objects, this class supports lines with a width above 1 pixel.

Constructor & Destructor Documentation

◆ LineListObject()

LineListObject ( Ogre::SceneManager *  sceneManager,
Ogre::SceneNode *  parent = NULL,
int  lineCountHint = 1024 
)

◆ ~LineListObject()

virtual ~LineListObject ( )
virtual

Member Function Documentation

◆ setColor() [1/2]

virtual void setColor ( const Ogre::ColourValue &  color)
virtual

Reimplemented from VisualizationObject.

◆ enableAlphaBlending()

void enableAlphaBlending ( bool  useAlpha = true)

Enables/disables alpha blending.

◆ setLineWidth()

void setLineWidth ( float  width)

Sets the width of the line.

◆ clear()

void clear ( )

Clears all lines.

◆ add() [1/2]

void add ( const Ogre::Vector3 &  p1,
const Ogre::Vector3 &  p2 
)

Adds another line.

◆ add() [2/2]

void add ( const Ogre::Vector3 &  p1,
const Ogre::Vector3 &  p2,
const Ogre::ColourValue &  color 
)

Adds another point with the specified color to the line.

◆ setScale() [1/2]

virtual void setScale ( const Ogre::Vector3 &  scale)
virtualinherited

◆ setScale() [2/2]

virtual void setScale ( const Eigen::Vector3f &  scale)
virtualinherited

◆ setPosition() [1/2]

virtual void setPosition ( const Ogre::Vector3 &  position)
virtualinherited

◆ setPosition() [2/2]

virtual void setPosition ( const Eigen::Vector3f &  position)
virtualinherited

◆ setOrientation() [1/2]

virtual void setOrientation ( const Ogre::Quaternion &  orientation)
virtualinherited

◆ setOrientation() [2/2]

virtual void setOrientation ( const Eigen::Quaternionf orientation)
virtualinherited

◆ setColor() [2/2]

virtual void setColor ( Color::RGBA  color)
inlinevirtualinherited

◆ setTransform() [1/2]

virtual void setTransform ( const RigidTransform2f transform)
virtualinherited

◆ setTransform() [2/2]

virtual void setTransform ( const RigidTransform3f transform)
virtualinherited

◆ setVisible()

virtual void setVisible ( bool  visible,
bool  cascade = true 
)
virtualinherited

Reimplemented in TextObject, AxesObject, and LineStripObject.

◆ getNode()

Ogre::SceneNode* getNode ( )
inlineinherited

Member Data Documentation

◆ mLineCountHint

int mLineCountHint
protected

◆ mMaterial

Ogre::MaterialPtr mMaterial
protected

◆ mChains

std::vector<Ogre::BillboardChain*> mChains
protected

◆ mLinesInChain

std::vector<int> mLinesInChain
protected

◆ mCurChain

int mCurChain
protected

◆ mWidth

float mWidth
protected

◆ mColor

Ogre::ColourValue mColor
protected

◆ mSceneManager

Ogre::SceneManager* mSceneManager
protectedinherited

◆ mNode

Ogre::SceneNode* mNode
protectedinherited

The documentation for this class was generated from the following file: