VR-Forces 4.6 Class Documentation
 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. More...

Classes

struct  PickableSegment

Public Member Functions

 DtOsgSegmentPickable (osg::Group *parent)
 CTOR.
virtual ~DtOsgSegmentPickable ()
 DTOR.
virtual void updateFromGeometry (const std::vector< osg::Vec3 > &geometry, const std::vector< double > &lineWidths)
 Reworks segments for given geometry (if segment sizes are different)
virtual void updateFromGeometry (const osg::Vec3Array &geometry, const std::vector< double > &lineWidths)
 Reworks segments for given geometry (if segment sizes are different)
virtual void removeAll ()
 Removes all segments.

Protected Types

typedef std::vector
< PickableSegment
PickableSegments

Protected Attributes

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

Detailed Description

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

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 Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)