OpenCOVER
Public Member Functions | List of all members
opencover::coLine Class Reference

#include <coLine.h>

Public Member Functions

 coLine (osg::Vec3 point1, osg::Vec3 point2, bool show=false, osg::Vec4 color=osg::Vec4(1, 0, 0, 1))
 
virtual ~coLine ()
 
virtual void update (osg::Vec3 point1, osg::Vec3 point2)
 
osg::Vec3 getPosition () const
 
osg::Vec3 getDirectionVector () const
 
bool getShortestLineDistance (const osg::Vec3 &lp1, const osg::Vec3 &lp2, double &shortestDistance) const
 
bool getPointsOfShortestDistance (const osg::Vec3 &lp1, const osg::Vec3 &lp2, osg::Vec3 &pointLine1, osg::Vec3 &pointLine2) const
 
void setColor (osg::Vec4 color)
 
void show ()
 
void hide ()
 

Constructor & Destructor Documentation

◆ coLine()

opencover::coLine::coLine ( osg::Vec3  point1,
osg::Vec3  point2,
bool  show = false,
osg::Vec4  color = osg::Vec4(1, 0, 0, 1) 
)

◆ ~coLine()

virtual opencover::coLine::~coLine ( )
virtual

Member Function Documentation

◆ getDirectionVector()

osg::Vec3 opencover::coLine::getDirectionVector ( ) const
inline

◆ getPointsOfShortestDistance()

bool opencover::coLine::getPointsOfShortestDistance ( const osg::Vec3 &  lp1,
const osg::Vec3 &  lp2,
osg::Vec3 &  pointLine1,
osg::Vec3 &  pointLine2 
) const

◆ getPosition()

osg::Vec3 opencover::coLine::getPosition ( ) const
inline

◆ getShortestLineDistance()

bool opencover::coLine::getShortestLineDistance ( const osg::Vec3 &  lp1,
const osg::Vec3 &  lp2,
double &  shortestDistance 
) const

◆ hide()

void opencover::coLine::hide ( )

◆ setColor()

void opencover::coLine::setColor ( osg::Vec4  color)

◆ show()

void opencover::coLine::show ( )

◆ update()

virtual void opencover::coLine::update ( osg::Vec3  point1,
osg::Vec3  point2 
)
virtual

The documentation for this class was generated from the following file: