Go to the documentation of this file.
   30 #ifndef OGRE_TOOLS_SHAPE_H 
   31 #define OGRE_TOOLS_SHAPE_H 
   35 #include <OgreMaterial.h> 
   37 #include <OgreSharedPtr.h> 
   70   Shape(
Type shape_type, Ogre::SceneManager* scene_manager, Ogre::SceneNode* parent_node = 
nullptr);
 
   85   void setOffset(
const Ogre::Vector3& offset);
 
   87   void setColor(
float r, 
float g, 
float b, 
float a) 
override;
 
   88   void setColor(
const Ogre::ColourValue& c);
 
   89   void setPosition(
const Ogre::Vector3& position) 
override;
 
   91   void setScale(
const Ogre::Vector3& scale) 
override;
 
  121   createEntity(
const std::string& name, 
Type shape_type, Ogre::SceneManager* scene_manager);
 
  
Ogre::SceneNode * getRootNode()
Get the root scene node (pivot node) for this object.
Ogre::SceneNode * offset_node_
void setColor(float r, float g, float b, float a) override
Set the color of the object. Values are in the range [0, 1].
Shape(Type shape_type, Ogre::SceneManager *scene_manager, Ogre::SceneNode *parent_node=nullptr)
Constructor.
Ogre::MaterialPtr material_
const Ogre::Vector3 & getPosition() override
Get the local position of this object.
std::string material_name_
static Ogre::Entity * createEntity(const std::string &name, Type shape_type, Ogre::SceneManager *scene_manager)
void setOffset(const Ogre::Vector3 &offset)
Set the offset for this shape.
Ogre::Entity * getEntity()
void setUserData(const Ogre::Any &data) override
Sets user data on all ogre objects we own.
Ogre::MaterialPtr getMaterial()
const Ogre::Quaternion & getOrientation() override
Get the local orientation of this object.
Base class for visible objects, providing a minimal generic interface.
void setScale(const Ogre::Vector3 &scale) override
Set the scale of the object. Always relative to the identity orientation of the object.
void setPosition(const Ogre::Vector3 &position) override
Set the position of this object.
void setOrientation(const Ogre::Quaternion &orientation) override
Set the orientation of the object.
Ogre::SceneNode * scene_node_
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall 
autogenerated on Sun May 4 2025 02:31:26