#include <shape.h>
Public Types | |
enum | Type { Cone, Cube, Cylinder, Sphere } |
Public Member Functions | |
Ogre::Entity * | getEntity () |
virtual const Ogre::Quaternion & | getOrientation () |
Get the local orientation of this object. | |
virtual const Ogre::Vector3 & | getPosition () |
Get the local position of this object. | |
Ogre::SceneNode * | getRootNode () |
Get the root scene node (pivot node) for this object. | |
Type | getType () |
virtual void | setColor (float r, float g, float b, float a) |
Set the color of the object. Values are in the range [0, 1]. | |
void | setColor (const Ogre::ColourValue &c) |
void | setOffset (const Ogre::Vector3 &offset) |
Set the offset for this shape. | |
virtual void | setOrientation (const Ogre::Quaternion &orientation) |
Set the orientation of the object. | |
virtual void | setPosition (const Ogre::Vector3 &position) |
Set the position of this object. | |
virtual void | setScale (const Ogre::Vector3 &scale) |
Set the scale of the object. Always relative to the identity orientation of the object. | |
void | setUserData (const Ogre::Any &data) |
Sets user data on all ogre objects we own. | |
Shape (Type shape_type, Ogre::SceneManager *scene_manager, Ogre::SceneNode *parent_node=NULL) | |
Constructor. | |
virtual | ~Shape () |
Static Public Member Functions | |
static Ogre::Entity * | createEntity (const std::string &name, Type shape_type, Ogre::SceneManager *scene_manager) |
Private Attributes | |
Ogre::Entity * | entity_ |
Ogre::MaterialPtr | material_ |
std::string | material_name_ |
Ogre::SceneNode * | offset_node_ |
Ogre::SceneNode * | scene_node_ |
Type | type_ |
enum rviz::Shape::Type |
rviz::Shape::Shape | ( | Type | shape_type, |
Ogre::SceneManager * | scene_manager, | ||
Ogre::SceneNode * | parent_node = NULL |
||
) |
rviz::Shape::~Shape | ( | ) | [virtual] |
Ogre::Entity * rviz::Shape::createEntity | ( | const std::string & | name, |
Type | shape_type, | ||
Ogre::SceneManager * | scene_manager | ||
) | [static] |
Ogre::Entity* rviz::Shape::getEntity | ( | ) | [inline] |
const Ogre::Quaternion & rviz::Shape::getOrientation | ( | ) | [virtual] |
const Ogre::Vector3 & rviz::Shape::getPosition | ( | ) | [virtual] |
Ogre::SceneNode* rviz::Shape::getRootNode | ( | ) | [inline] |
Type rviz::Shape::getType | ( | ) | [inline] |
void rviz::Shape::setColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) | [virtual] |
Set the color of the object. Values are in the range [0, 1].
r | Red component |
g | Green component |
b | Blue component |
Implements rviz::Object.
void rviz::Shape::setColor | ( | const Ogre::ColourValue & | c | ) |
void rviz::Shape::setOffset | ( | const Ogre::Vector3 & | offset | ) |
void rviz::Shape::setOrientation | ( | const Ogre::Quaternion & | orientation | ) | [virtual] |
Set the orientation of the object.
Orientation | quaternion orientation to set to. |
Implements rviz::Object.
void rviz::Shape::setPosition | ( | const Ogre::Vector3 & | position | ) | [virtual] |
Set the position of this object.
Position | vector position to set to. |
Implements rviz::Object.
void rviz::Shape::setScale | ( | const Ogre::Vector3 & | scale | ) | [virtual] |
Set the scale of the object. Always relative to the identity orientation of the object.
Scale | vector scale to set to. |
Implements rviz::Object.
void rviz::Shape::setUserData | ( | const Ogre::Any & | data | ) | [virtual] |
Sets user data on all ogre objects we own.
Implements rviz::Object.
Ogre::Entity* rviz::Shape::entity_ [private] |
Ogre::MaterialPtr rviz::Shape::material_ [private] |
std::string rviz::Shape::material_name_ [private] |
Ogre::SceneNode* rviz::Shape::offset_node_ [private] |
Ogre::SceneNode* rviz::Shape::scene_node_ [private] |
Type rviz::Shape::type_ [private] |