30 #ifndef OGRE_TOOLS_SHAPE_H 31 #define OGRE_TOOLS_SHAPE_H 35 #include <OgreMaterial.h> 36 #include <OgreVector3.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;
90 void setOrientation(
const Ogre::Quaternion& orientation)
override;
91 void setScale(
const Ogre::Vector3& scale)
override;
92 const Ogre::Vector3& getPosition()
override;
93 const Ogre::Quaternion& getOrientation()
override;
108 void setUserData(
const Ogre::Any& data)
override;
121 createEntity(
const std::string& name,
Type shape_type, Ogre::SceneManager* scene_manager);
Ogre::SceneNode * offset_node_
std::string material_name_
Ogre::MaterialPtr material_
Base class for visible objects, providing a minimal generic interface.
Ogre::SceneNode * scene_node_
Ogre::MaterialPtr getMaterial()
Ogre::SceneNode * getRootNode()
Get the root scene node (pivot node) for this object.
Ogre::Entity * getEntity()