#include <shape.h>
|
Ogre::Entity * | getEntity () |
|
Ogre::MaterialPtr | getMaterial () |
|
const Ogre::Quaternion & | getOrientation () override |
| Get the local orientation of this object. More...
|
|
const Ogre::Vector3 & | getPosition () override |
| Get the local position of this object. More...
|
|
Ogre::SceneNode * | getRootNode () |
| Get the root scene node (pivot node) for this object. More...
|
|
Type | getType () |
|
void | setColor (const Ogre::ColourValue &c) |
|
void | setColor (float r, float g, float b, float a) override |
| Set the color of the object. Values are in the range [0, 1]. More...
|
|
void | setOffset (const Ogre::Vector3 &offset) |
| Set the offset for this shape. More...
|
|
void | setOrientation (const Ogre::Quaternion &orientation) override |
| Set the orientation of the object. More...
|
|
void | setPosition (const Ogre::Vector3 &position) override |
| Set the position of this object. More...
|
|
void | setScale (const Ogre::Vector3 &scale) override |
| Set the scale of the object. Always relative to the identity orientation of the object. More...
|
|
void | setUserData (const Ogre::Any &data) override |
| Sets user data on all ogre objects we own. More...
|
|
| Shape (Type shape_type, Ogre::SceneManager *scene_manager, Ogre::SceneNode *parent_node=nullptr) |
| Constructor. More...
|
|
| ~Shape () override |
|
| Object (Ogre::SceneManager *scene_manager) |
|
virtual | ~Object () |
|
|
static Ogre::Entity * | createEntity (const std::string &name, Type shape_type, Ogre::SceneManager *scene_manager) |
|
Definition at line 51 of file shape.h.
◆ Type
Enumerator |
---|
Cone | |
Cube | |
Cylinder | |
Sphere | |
Mesh | |
Definition at line 54 of file shape.h.
◆ Shape()
rviz::Shape::Shape |
( |
Type |
shape_type, |
|
|
Ogre::SceneManager * |
scene_manager, |
|
|
Ogre::SceneNode * |
parent_node = nullptr |
|
) |
| |
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.
◆ ~Shape()
◆ createEntity()
Ogre::Entity * rviz::Shape::createEntity |
( |
const std::string & |
name, |
|
|
Type |
shape_type, |
|
|
Ogre::SceneManager * |
scene_manager |
|
) |
| |
|
static |
◆ getEntity()
Ogre::Entity* rviz::Shape::getEntity |
( |
| ) |
|
|
inline |
◆ getMaterial()
Ogre::MaterialPtr rviz::Shape::getMaterial |
( |
| ) |
|
|
inline |
◆ getOrientation()
const Ogre::Quaternion & rviz::Shape::getOrientation |
( |
| ) |
|
|
overridevirtual |
Get the local orientation of this object.
- Returns
- The orientation
Implements rviz::Object.
Definition at line 166 of file shape.cpp.
◆ getPosition()
const Ogre::Vector3 & rviz::Shape::getPosition |
( |
| ) |
|
|
overridevirtual |
Get the local position of this object.
- Returns
- The position
Implements rviz::Object.
Definition at line 161 of file shape.cpp.
◆ getRootNode()
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 100 of file shape.h.
◆ getType()
Type rviz::Shape::getType |
( |
| ) |
|
|
inline |
◆ setColor() [1/2]
void rviz::Shape::setColor |
( |
const Ogre::ColourValue & |
c | ) |
|
◆ setColor() [2/2]
void rviz::Shape::setColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
|
overridevirtual |
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 136 of file shape.cpp.
◆ setOffset()
void rviz::Shape::setOffset |
( |
const Ogre::Vector3 & |
offset | ) |
|
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 141 of file shape.cpp.
◆ setOrientation()
void rviz::Shape::setOrientation |
( |
const Ogre::Quaternion & |
orientation | ) |
|
|
overridevirtual |
Set the orientation of the object.
- Parameters
-
Orientation | quaternion orientation to set to. |
Implements rviz::Object.
Definition at line 151 of file shape.cpp.
◆ setPosition()
void rviz::Shape::setPosition |
( |
const Ogre::Vector3 & |
position | ) |
|
|
overridevirtual |
Set the position of this object.
- Parameters
-
Position | vector position to set to. |
Implements rviz::Object.
Definition at line 146 of file shape.cpp.
◆ setScale()
void rviz::Shape::setScale |
( |
const Ogre::Vector3 & |
scale | ) |
|
|
overridevirtual |
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 156 of file shape.cpp.
◆ setUserData()
void rviz::Shape::setUserData |
( |
const Ogre::Any & |
data | ) |
|
|
overridevirtual |
◆ entity_
Ogre::Entity* rviz::Shape::entity_ |
|
protected |
◆ material_
Ogre::MaterialPtr rviz::Shape::material_ |
|
protected |
◆ material_name_
std::string rviz::Shape::material_name_ |
|
protected |
◆ offset_node_
Ogre::SceneNode* rviz::Shape::offset_node_ |
|
protected |
◆ scene_node_
Ogre::SceneNode* rviz::Shape::scene_node_ |
|
protected |
◆ type_
The documentation for this class was generated from the following files:
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:04