30 #ifndef OGRE_TOOLS_BILLBOARD_LINE_H 31 #define OGRE_TOOLS_BILLBOARD_LINE_H 38 #include <OgreVector3.h> 39 #include <OgreColourValue.h> 40 #include <OgreMaterial.h> 41 #include <OgreSharedPtr.h> 67 BillboardLine( Ogre::SceneManager* manager, Ogre::SceneNode* parent_node =
NULL );
72 void addPoint(
const Ogre::Vector3& point);
73 void addPoint(
const Ogre::Vector3& point,
const Ogre::ColourValue& color);
75 void setLineWidth(
float width );
77 void setMaxPointsPerLine(uint32_t max);
78 void setNumLines(uint32_t num);
81 virtual void setOrientation(
const Ogre::Quaternion& orientation );
82 virtual void setPosition(
const Ogre::Vector3& position );
83 virtual void setScale(
const Ogre::Vector3& scale );
84 virtual void setColor(
float r,
float g,
float b,
float a );
85 virtual const Ogre::Vector3& getPosition();
86 virtual const Ogre::Quaternion& getOrientation();
103 Ogre::BillboardChain* createChain();
107 typedef std::vector<Ogre::BillboardChain*>
V_Chain;
Ogre::MaterialPtr material_
uint32_t elements_in_current_chain_
An object that displays a multi-segment line strip rendered as billboards.
std::vector< uint32_t > V_uint32
Ogre::MaterialPtr getMaterial()
uint32_t lines_per_chain_
std::vector< Ogre::BillboardChain * > V_Chain
Ogre::SceneNode * getSceneNode()
Get the scene node associated with this object.
Base class for visible objects, providing a minimal generic interface.
void setUserData(const Ogre::Any &data)
We have no objects that we can set user data on.
uint32_t max_points_per_line_
Ogre::SceneNode * scene_node_