49 #ifndef _MIRA_LINESTRIPOBJECT_H_ 50 #define _MIRA_LINESTRIPOBJECT_H_ 53 #include <OGRE/OgreMaterial.h> 83 LineStripObject(Ogre::SceneManager* sceneManager, Ogre::SceneNode* parent = NULL);
87 virtual void setColor(
const Ogre::ColourValue& color);
89 virtual void setVisible(
bool visible,
bool cascade =
true);
93 void enableAlphaBlending(
bool useAlpha=
true);
99 void setLineWidth(
float width);
113 void point(
const Ogre::Vector3& point);
116 void point(
const Ogre::Vector3& point,
const Ogre::ColourValue& color);
124 void add(
const Ogre::Vector3& point);
131 void add(
const Ogre::Vector3& point,
const Ogre::ColourValue& color);
134 void addLine(
const Ogre::Vector3& p1,
const Ogre::Vector3& p2);
137 void addLine(
const Ogre::Vector3& p1,
const Ogre::Vector3& p2,
const Ogre::ColourValue& color);
144 Point(
const Ogre::Vector3& iP,
const Ogre::ColourValue& iC) :
153 Strip() : pixelLineSection(-1) {}
154 std::list<Point> pts;
155 int pixelLineSection;
160 void regenerateStrip(std::size_t idx);
161 void regenerateAll();
162 void manageVisibility();
166 std::vector<boost::shared_ptr<Strip>> mStrips;
167 boost::shared_ptr<Strip> mActiveStrip;
169 Ogre::BillboardChain* mBillboardLines;
170 Ogre::ManualObject* mPixelLines;
172 Ogre::MaterialPtr mMaterial;
174 Ogre::ColourValue mColor;
Declaration of VisualizationObject.
General point class template.
Definition: Point.h:133
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Definition: VisualizationObject.h:71
Renders one or more line strips.
Definition: LineStripObject.h:80
bool isVisible() const
Definition: LineStripObject.h:90
#define MIRA_GUI_VISUALIZATION_EXPORT
Definition: GuiVisualizationExports.h:61
Definition: ImageObject.h:60