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 =
NULL);
82 void setOffset(
const Ogre::Vector3& offset );
84 virtual void setColor(
float r,
float g,
float b,
float a );
85 void setColor(
const Ogre::ColourValue& c );
86 virtual void setPosition(
const Ogre::Vector3& position );
87 virtual void setOrientation(
const Ogre::Quaternion& orientation );
88 virtual void setScale(
const Ogre::Vector3& scale );
89 virtual const Ogre::Vector3& getPosition();
90 virtual const Ogre::Quaternion& getOrientation();
102 void setUserData(
const Ogre::Any& data );
108 static Ogre::Entity* 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()