VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Types | Protected Attributes
makVrv::DtOsgSegmentPickable Class Reference

Create a series of cylinders that can be used as pickable on lines that only have osg width. Pass in the parent to the constructor so it can be added appropriately.

Classes

struct  PickableSegment
 

Public Member Functions

 DtOsgSegmentPickable (osg::Group *parent)
 
virtual ~DtOsgSegmentPickable ()
 
virtual void updateFromGeometry (const std::vector< osg::Vec3 > &geometry, const std::vector< double > &lineWidths)
 
virtual void updateFromGeometry (const osg::Vec3Array &geometry, const std::vector< double > &lineWidths)
 
virtual void removeAll ()
 

Protected Types

typedef std::vector
< PickableSegment
PickableSegments
 

Protected Attributes

osg::Group * myParent
 
osg::ref_ptr< osg::Group > myPickableTransform
 
PickableSegments myPickableSegments
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtOsgSegmentPickable::DtOsgSegmentPickable ( osg::Group *  parent)

CTOR.

virtual makVrv::DtOsgSegmentPickable::~DtOsgSegmentPickable ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtOsgSegmentPickable::updateFromGeometry ( const std::vector< osg::Vec3 > &  geometry,
const std::vector< double > &  lineWidths 
)
virtual

Reworks segments for given geometry (if segment sizes are different)

virtual void makVrv::DtOsgSegmentPickable::updateFromGeometry ( const osg::Vec3Array &  geometry,
const std::vector< double > &  lineWidths 
)
virtual

Reworks segments for given geometry (if segment sizes are different)

virtual void makVrv::DtOsgSegmentPickable::removeAll ( )
virtual

Removes all segments.

Member Data Documentation

osg::Group* makVrv::DtOsgSegmentPickable::myParent
protected
osg::ref_ptr<osg::Group> makVrv::DtOsgSegmentPickable::myPickableTransform
protected
PickableSegments makVrv::DtOsgSegmentPickable::myPickableSegments
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)