34 #include <OgreSceneNode.h> 35 #include <OgreSceneManager.h> 36 #include <OgreManualObject.h> 37 #include <OgreMaterialManager.h> 38 #include <OgreTechnique.h> 43 Line::Line( Ogre::SceneManager* manager, Ogre::SceneNode* parent_node )
48 parent_node = manager->getRootSceneNode();
55 ss <<
"LineMaterial" << count++;
131 setColor(Ogre::ColourValue(r, g, b, a));
virtual void setOrientation(const Ogre::Quaternion &orientation)
Set the orientation of the object.
virtual const Ogre::Vector3 & getPosition()
Get the local position of this object.
virtual void setColor(float r, float g, float b, float a)
Set the color of the object. Values are in the range [0, 1].
virtual void setScale(const Ogre::Vector3 &scale)
Set the scale of the object. Always relative to the identity orientation of the object.
Ogre::SceneNode * scene_node_
Base class for visible objects, providing a minimal generic interface.
Line(Ogre::SceneManager *manager, Ogre::SceneNode *parent_node=NULL)
Constructor.
virtual void setUserData(const Ogre::Any &data)
Set the user data on this object.
Ogre::MaterialPtr manual_object_material_
void setPoints(Ogre::Vector3 start, Ogre::Vector3 end)
Set the start and end point of the line.
Ogre::ManualObject * manual_object_
virtual void setPosition(const Ogre::Vector3 &position)
Set the position of this object.
virtual const Ogre::Quaternion & getOrientation()
Get the local orientation of this object.
Ogre::SceneManager * scene_manager_
Ogre scene manager this object is part of.
void setVisible(bool visible)