VR-Forces 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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)