#include <shape.h>
|
| static Ogre::Entity * | createEntity (const std::string &name, Type shape_type, Ogre::SceneManager *scene_manager) |
| |
Definition at line 52 of file shape.h.
| Enumerator |
|---|
| Cone |
|
| Cube |
|
| Cylinder |
|
| Sphere |
|
| Mesh |
|
Definition at line 55 of file shape.h.
| rviz::Shape::Shape |
( |
Type |
shape_type, |
|
|
Ogre::SceneManager * |
scene_manager, |
|
|
Ogre::SceneNode * |
parent_node = NULL |
|
) |
| |
Constructor.
- Parameters
-
| scene_manager | The scene manager this object is associated with |
| parent_node | A scene node to use as the parent of this object. If NULL, uses the root scene node. |
Definition at line 77 of file shape.cpp.
| Ogre::Entity * rviz::Shape::createEntity |
( |
const std::string & |
name, |
|
|
Type |
shape_type, |
|
|
Ogre::SceneManager * |
scene_manager |
|
) |
| |
|
static |
| Ogre::Entity* rviz::Shape::getEntity |
( |
| ) |
|
|
inline |
| Ogre::MaterialPtr rviz::Shape::getMaterial |
( |
| ) |
|
|
inline |
| const Ogre::Quaternion & rviz::Shape::getOrientation |
( |
| ) |
|
|
virtual |
Get the local orientation of this object.
- Returns
- The orientation
Implements rviz::Object.
Definition at line 172 of file shape.cpp.
Get the local position of this object.
- Returns
- The position
Implements rviz::Object.
Definition at line 167 of file shape.cpp.
| Ogre::SceneNode* rviz::Shape::getRootNode |
( |
| ) |
|
|
inline |
Get the root scene node (pivot node) for this object.
- Returns
- The root scene node of this object
Definition at line 97 of file shape.h.
| 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].
- Parameters
-
| r | Red component |
| g | Green component |
| b | Blue component |
Implements rviz::Object.
Definition at line 142 of file shape.cpp.
| void rviz::Shape::setColor |
( |
const Ogre::ColourValue & |
c | ) |
|
Set the offset for this shape.
The default is no offset, which puts the pivot point directly in the center of the object.
- Parameters
-
| offset | Amount to offset the center of the object from the pivot point |
Definition at line 147 of file shape.cpp.
| void rviz::Shape::setOrientation |
( |
const Ogre::Quaternion & |
orientation | ) |
|
|
virtual |
Set the orientation of the object.
- Parameters
-
| Orientation | quaternion orientation to set to. |
Implements rviz::Object.
Definition at line 157 of file shape.cpp.
Set the position of this object.
- Parameters
-
| Position | vector position to set to. |
Implements rviz::Object.
Definition at line 152 of file shape.cpp.
Set the scale of the object. Always relative to the identity orientation of the object.
- Parameters
-
| Scale | vector scale to set to. |
Implements rviz::Object.
Definition at line 162 of file shape.cpp.
| void rviz::Shape::setUserData |
( |
const Ogre::Any & |
data | ) |
|
|
virtual |
| Ogre::Entity* rviz::Shape::entity_ |
|
protected |
| Ogre::MaterialPtr rviz::Shape::material_ |
|
protected |
| std::string rviz::Shape::material_name_ |
|
protected |
| Ogre::SceneNode* rviz::Shape::offset_node_ |
|
protected |
| Ogre::SceneNode* rviz::Shape::scene_node_ |
|
protected |
The documentation for this class was generated from the following files: