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 =
nullptr);
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 void setOrientation(
const Ogre::Quaternion& orientation)
override;
82 void setPosition(
const Ogre::Vector3& position)
override;
83 void setScale(
const Ogre::Vector3& scale)
override;
84 void setColor(
float r,
float g,
float b,
float a)
override;
85 const Ogre::Vector3& getPosition()
override;
86 const Ogre::Quaternion& getOrientation()
override;
111 Ogre::BillboardChain* createChain();
115 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 &) override
We have no objects that we can set user data on.
uint32_t max_points_per_line_
double max(double a, double b)
Ogre::SceneNode * scene_node_