47 #ifndef _MIRA_DYNAMICPOINTS_H_ 48 #define _MIRA_DYNAMICPOINTS_H_ 59 typedef Ogre::Vector3 Vector3;
60 typedef Ogre::Quaternion Quaternion;
61 typedef Ogre::Camera Camera;
62 typedef Ogre::Real Real;
63 typedef Ogre::RenderOperation::OperationType OperationType;
73 DynamicPoints(OperationType opType = Ogre::RenderOperation::OT_POINT_LIST);
77 void addPoint(
const Ogre::Vector3 &p,
const Ogre::ColourValue& c);
79 void addPoint(Real x, Real y, Real z,
const Ogre::ColourValue& c);
82 void setPoint(
unsigned short index,
const Vector3 &value);
85 const Vector3&
getPoint(
unsigned short index)
const;
88 void setColor(
const Ogre::ColourValue& c);
113 virtual void fillHardwareBuffers();
116 std::vector<PointData> mPoints;
void update()
Call this to update the hardware buffer after making changes.
unsigned short getNumPoints(void) const
Return the total number of points in the point list.
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Abstract base class for renderables based on dynamically growing vertex and index buffers...
Definition: DynamicRenderable.h:76
void clear()
Remove all points from the point list.
const Vector3 & getPoint(unsigned short index) const
Return the location of an existing point in the point list.
DynamicPoints(OperationType opType=Ogre::RenderOperation::OT_POINT_LIST)
Constructor - see setOperationType() for description of argument.
Vector3 point
Definition: DynamicPoints.h:69
void setPoint(unsigned short index, const Vector3 &value)
Change the location of an existing point in the point list.
void addPoint(const Ogre::Vector3 &p, const Ogre::ColourValue &c)
Add a point to the point list.
Definition: DynamicPoints.h:57
Base class providing dynamically growing hardware buffer Adapted from http://www.ogre3d.org/tikiwiki/DynamicGrowingBuffers&structure=Cookbook.
Definition: DynamicPoints.h:67
void setColor(const Ogre::ColourValue &c)
Change the colour of existing points.
OperationType getOperationType() const
void setOperationType(OperationType opType)
Set the type of operation to draw with.
Ogre::ColourValue color
Definition: DynamicPoints.h:70