MIRA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MeshObject Class Reference

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

Inheritance diagram for MeshObject:
Inheritance graph
[legend]

Public Member Functions

 MeshObject (const std::string &mesh, Ogre::SceneManager *sceneManager, Ogre::SceneNode *parent=NULL)
 Constructs a mesh object that renders the specified mesh resource as child of 'parent'. More...
 
 MeshObject (const std::string &mesh, Ogre::MaterialPtr material, Ogre::SceneManager *sceneManager, Ogre::SceneNode *parent=NULL)
 
virtual ~MeshObject ()
 
virtual void setColor (const Ogre::ColourValue &color)
 Sets the base color of the meshs material. More...
 
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 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 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

Examples:
tutorials/Point3BasicVisualization.C, and tutorials/Point3Visualization.C.

Constructor & Destructor Documentation

MeshObject ( const std::string &  mesh,
Ogre::SceneManager *  sceneManager,
Ogre::SceneNode *  parent = NULL 
)

Constructs a mesh object that renders the specified mesh resource as child of 'parent'.

MeshObject ( const std::string &  mesh,
Ogre::MaterialPtr  material,
Ogre::SceneManager *  sceneManager,
Ogre::SceneNode *  parent = NULL 
)
virtual ~MeshObject ( )
virtual

Member Function Documentation

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

Sets the base color of the meshs material.

Note
This method sets the materials Scene Blending to Ogre::SBT_TRANSPARENT_ALPHA if the alpha channel is not 0, otherwise to Ogre::SBT_REPLACE.

Reimplemented from VisualizationObject.

Ogre::MaterialPtr getMaterial ( )
inline

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

Ogre::Entity* getEntity ( )
inline

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

void create ( const std::string &  mesh)
protected
virtual void setScale ( const Ogre::Vector3 &  scale)
virtualinherited
virtual void setScale ( const Eigen::Vector3f &  scale)
virtualinherited
virtual void setPosition ( const Ogre::Vector3 &  position)
virtualinherited
virtual void setPosition ( const Eigen::Vector3f &  position)
virtualinherited
virtual void setOrientation ( const Ogre::Quaternion &  orientation)
virtualinherited
virtual void setOrientation ( const Eigen::Quaternionf orientation)
virtualinherited
virtual void setColor ( Color::RGBA  color)
inlinevirtualinherited
virtual void setTransform ( const RigidTransform2f transform)
virtualinherited
virtual void setTransform ( const RigidTransform3f transform)
virtualinherited
virtual void setVisible ( bool  visible,
bool  cascade = true 
)
virtualinherited

Reimplemented in TextObject, AxesObject, and LineStripObject.

Ogre::SceneNode* getNode ( )
inlineinherited

Member Data Documentation

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

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