32 #ifndef OGRE_TOOLS_ARROW_H 33 #define OGRE_TOOLS_ARROW_H 72 Arrow( Ogre::SceneManager* scene_manager, Ogre::SceneNode* parent_node = 0,
float shaft_length = 1.0
f,
float shaft_diameter = 0.1
f,
73 float head_length = 0.3
f,
float head_diameter = 0.2
f );
84 void set(
float shaft_length,
float shaft_diameter,
float head_length,
float head_diameter );
93 virtual void setColor(
float r,
float g,
float b,
float a );
94 void setColor(
const Ogre::ColourValue& color);
103 void setHeadColor(
float r,
float g,
float b,
float a = 1.0
f );
104 void setHeadColor(
const Ogre::ColourValue& color);
112 void setShaftColor(
float r,
float g,
float b,
float a = 1.0
f );
113 void setShaftColor(
const Ogre::ColourValue& color);
120 virtual void setOrientation(
const Ogre::Quaternion& orientation );
123 virtual void setPosition(
const Ogre::Vector3& position );
133 void setDirection(
const Ogre::Vector3& direction );
135 virtual void setScale(
const Ogre::Vector3& scale );
136 virtual const Ogre::Vector3& getPosition();
137 virtual const Ogre::Quaternion& getOrientation();
148 void setUserData(
const Ogre::Any& data );
Ogre::SceneNode * scene_node_
Base class for visible objects, providing a minimal generic interface.
Ogre::SceneNode * getSceneNode()
Get the scene node associated with this arrow.
TFSIMD_FORCE_INLINE Vector3()
Shape * head_
Cone used for the head of the arrow.
An arrow consisting of a cylinder and a cone.
Shape * shaft_
Cylinder used for the shaft of the arrow.