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

Visualization of covariances. More...

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

Inheritance diagram for CovObject:
Inheritance graph
[legend]

Public Member Functions

 CovObject (Ogre::SceneManager *sceneManager, Ogre::SceneNode *parent=NULL)
 Creates a new CovObject that can be used to display a position covariance ellipsoid in 3D. More...
 
void setSigma (float sigma)
 
float getSigma () const
 
void setMean (const Eigen::Vector2f &x)
 
void setMean (const Eigen::Vector3f &x)
 
void setCovariance (const Eigen::Matrix2f &cov)
 
void setCovariance (const Eigen::Matrix3f &cov)
 
void setCovariance (const Eigen::Vector3f &sv, const Ogre::Quaternion &orientation)
 
const Eigen::Vector3f & getSingularValues ()
 
virtual void setColor (const Ogre::ColourValue &color)
 Sets the base color of the mesh's material. More...
 
virtual void setColor (Color::RGBA color)
 
Ogre::MaterialPtr getMaterial ()
 Returns the default material that is created and set in the constructor. More...
 
Ogre::Entity * getEntity ()
 Returns the entity that is created and set in the constructor. 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 setTransform (const RigidTransform2f &transform)
 
virtual void setTransform (const RigidTransform3f &transform)
 
virtual void setVisible (bool visible, bool cascade=true)
 
Ogre::SceneNode * getNode ()
 

Protected Member Functions

void create (const std::string &mesh)
 

Protected Attributes

Ogre::Entity * mEntity
 
Ogre::MaterialPtr mMaterial
 
bool mOwnsMaterial
 
Ogre::SceneManager * mSceneManager
 
Ogre::SceneNode * mNode
 

Detailed Description

Visualization of covariances.

Constructor & Destructor Documentation

◆ CovObject()

CovObject ( Ogre::SceneManager *  sceneManager,
Ogre::SceneNode *  parent = NULL 
)

Creates a new CovObject that can be used to display a position covariance ellipsoid in 3D.

Member Function Documentation

◆ setSigma()

void setSigma ( float  sigma)

◆ getSigma()

float getSigma ( ) const
inline

◆ setMean() [1/2]

void setMean ( const Eigen::Vector2f &  x)

◆ setMean() [2/2]

void setMean ( const Eigen::Vector3f &  x)

◆ setCovariance() [1/3]

void setCovariance ( const Eigen::Matrix2f &  cov)

◆ setCovariance() [2/3]

void setCovariance ( const Eigen::Matrix3f &  cov)

◆ setCovariance() [3/3]

void setCovariance ( const Eigen::Vector3f &  sv,
const Ogre::Quaternion &  orientation 
)

◆ getSingularValues()

const Eigen::Vector3f& getSingularValues ( )
inline

◆ setColor() [1/2]

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

Sets the base color of the mesh's material.

Note
This method manipulates the material based on its transparency: alpha < 1: Scene Blending = Ogre::SBT_TRANSPARENT_ALPHA, Depth-buffer Writing == off alpha = 1: Scene Blending = Ogre::SBT_REPLACE, Depth-buffer Writing == on

Reimplemented from VisualizationObject.

◆ setColor() [2/2]

virtual void setColor ( Color::RGBA  color)
inlinevirtualinherited

◆ getMaterial()

Ogre::MaterialPtr getMaterial ( )
inlineinherited

Returns the default material that is created and set in the constructor.

◆ getEntity()

Ogre::Entity* getEntity ( )
inlineinherited

Returns the entity that is created and set in the constructor.

◆ create()

void create ( const std::string &  mesh)
protectedinherited

◆ 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

◆ 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

◆ mEntity

Ogre::Entity* mEntity
protectedinherited

◆ mMaterial

Ogre::MaterialPtr mMaterial
protectedinherited

◆ mOwnsMaterial

bool mOwnsMaterial
protectedinherited

◆ mSceneManager

Ogre::SceneManager* mSceneManager
protectedinherited

◆ mNode

Ogre::SceneNode* mNode
protectedinherited

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