13class SLines :
public Ogre::SimpleRenderable
19 std::vector<Ogre::Vector3> _points;
20 Ogre::ColourValue colour;
21 static bool _material_created;
27 SLines(
const Ogre::ColourValue& defaultColour = Ogre::ColourValue::White,
bool dashed =
false,
bool disableDepth =
false);
41 void SetColour(
const Ogre::ColourValue& newColour);
45 void AddLine(
const Ogre::Vector3& start,
const Ogre::Vector3& end);
49 void AddLine(
const Ogre::Real& start_x,
const Ogre::Real& start_y,
const Ogre::Real& start_z,
const Ogre::Real& end_x,
const Ogre::Real& end_y,
const Ogre::Real& end_z);
53 void AddPoint(
const size_t& pointIndex,
const Ogre::Vector3& pt);
57 void AddPoint(
const size_t& pointIndex,
const Ogre::Real& x,
const Ogre::Real& y,
const Ogre::Real& z);
61 void AddPoint(
const Ogre::Vector3& pt);
69 void AddPoint(
const Ogre::Real& x,
const Ogre::Real& y,
const Ogre::Real& z);
77 Ogre::Vector3
GetPoint(
const size_t& pointIndex);
81 void SetPoint(
const size_t& pointIndex,
const Ogre::Vector3& pt);
85 void SetPoint(
const size_t& pointIndex,
const Ogre::Real& x,
const Ogre::Real& y,
const Ogre::Real& z);
void SetColour(const Ogre::ColourValue &newColour)
void SetPoint(const size_t &pointIndex, const Ogre::Vector3 &pt)
void SetDashed(bool dashed)
Ogre::ColourValue GetColour()
void AddLine(const Ogre::Vector3 &start, const Ogre::Vector3 &end)
void RemovePoint(const size_t &pointIndex)
void AddPoint(const size_t &pointIndex, const Ogre::Vector3 &pt)
size_t GetNumberOfPoints() const
virtual Ogre::Real getBoundingRadius() const
Ogre::Vector3 GetPoint(const size_t &pointIndex)
virtual Ogre::Real getSquaredViewDepth(const Ogre::Camera *cam) const