Go to the documentation of this file.
32 #ifndef OGRE_TOOLS_ARROW_H
33 #define OGRE_TOOLS_ARROW_H
35 #include <OgrePrerequisites.h>
71 Arrow(Ogre::SceneManager* scene_manager,
72 Ogre::SceneNode* parent_node =
nullptr,
73 float shaft_length = 1.0
f,
74 float shaft_diameter = 0.1
f,
75 float head_length = 0.3
f,
76 float head_diameter = 0.2
f);
87 void set(
float shaft_length,
float shaft_diameter,
float head_length,
float head_diameter);
97 void setColor(
float r,
float g,
float b,
float a)
override;
98 void setColor(
const Ogre::ColourValue& color);
107 void setHeadColor(
float r,
float g,
float b,
float a = 1.0
f);
124 void setOrientation(
const Ogre::Quaternion& orientation)
override;
127 void setPosition(
const Ogre::Vector3& position)
override;
139 void setScale(
const Ogre::Vector3& scale)
override;
void set(float shaft_length, float shaft_diameter, float head_length, float head_diameter)
Set the parameters for this arrow.
Ogre::SceneNode * scene_node_
Shape * shaft_
Cylinder used for the shaft of the arrow.
An arrow consisting of a cylinder and a cone.
const Ogre::Quaternion & getOrientation() override
Get the local orientation of this object.
void setOrientation(const Ogre::Quaternion &orientation) override
Set the orientation.
void setUserData(const Ogre::Any &data) override
Sets user data on all ogre objects we own.
void setHeadColor(float r, float g, float b, float a=1.0f)
Set the color of the arrow's head. Values are in the range [0, 1].
void setDirection(const Ogre::Vector3 &direction)
Set the direction of the arrow.
void setShaftColor(float r, float g, float b, float a=1.0f)
Set the color of the arrow's shaft. Values are in the range [0, 1].
Base class for visible objects, providing a minimal generic interface.
void setPosition(const Ogre::Vector3 &position) override
Set the position of the base of the arrow.
Arrow(Ogre::SceneManager *scene_manager, Ogre::SceneNode *parent_node=nullptr, float shaft_length=1.0f, float shaft_diameter=0.1f, float head_length=0.3f, float head_diameter=0.2f)
Constructor.
Ogre::SceneNode * getSceneNode()
Get the scene node associated with this arrow.
Shape * head_
Cone used for the head of the arrow.
void setColor(float r, float g, float b, float a) override
Set the color of this arrow. Sets both the head and shaft color to the same value....
const Ogre::Vector3 & getPosition() override
Get the local position of this object.
void setScale(const Ogre::Vector3 &scale) override
Set the scale of the object. Always relative to the identity orientation of the object.
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:02