11#include <osg/Geometry>
13#include <util/coExport.h>
26 osg::ref_ptr<osg::Vec3Array> _vertices;
27 osg::ref_ptr<osg::Vec4Array> _colors;
28 osg::ref_ptr<osg::Geometry> _geom;
29 osg::ref_ptr<osg::Geode> _geode;
35 coLine(osg::Vec3 point1, osg::Vec3 point2,
bool show =
false, osg::Vec4 color = osg::Vec4(1,0,0,1));
39 virtual void update(osg::Vec3 point1, osg::Vec3 point2);
Definition: ARToolKit.h:33
bool getShortestLineDistance(const osg::Vec3 &lp1, const osg::Vec3 &lp2, double &shortestDistance) const
void setColor(osg::Vec4 color)
osg::Vec3 getPosition() const
Definition: coLine.h:42
virtual void update(osg::Vec3 point1, osg::Vec3 point2)
coLine(osg::Vec3 point1, osg::Vec3 point2, bool show=false, osg::Vec4 color=osg::Vec4(1, 0, 0, 1))
osg::Vec3 getDirectionVector() const
Definition: coLine.h:48
bool getPointsOfShortestDistance(const osg::Vec3 &lp1, const osg::Vec3 &lp2, osg::Vec3 &pointLine1, osg::Vec3 &pointLine2) const