osgManipulator::Translate1DDragger Class Reference

Dragger for performing 1D translation. More...

Inheritance diagram for osgManipulator::Translate1DDragger:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 Translate1DDragger ()
 Translate1DDragger (const osg::Vec3 &s, const osg::Vec3 &e)
virtual bool handle (const PointerInfo &pi, const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
 Handle pick events on dragger and generate TranslateInLine commands.
void setupDefaultGeometry ()
 Setup default geometry for dragger.
void setColor (const osg::Vec4 &color)
 Set/Get color for dragger.
const osg::Vec4 getColor () const
void setPickColor (const osg::Vec4 &color)
 Set/Get pick color for dragger.
const osg::Vec4 getPickColor () const
void setCheckForNodeInNodePath (bool onOff)

Protected Member Functions

virtual ~Translate1DDragger ()

Protected Attributes

osg::ref_ptr
< LineProjector
_projector
osg::Vec3 _startProjectedPoint
osg::Vec4 _color
osg::Vec4 _pickColor
bool _checkForNodeInNodePath


Detailed Description

Dragger for performing 1D translation.

Constructor & Destructor Documentation

osgManipulator::Translate1DDragger::Translate1DDragger (  ) 

osgManipulator::Translate1DDragger::Translate1DDragger ( const osg::Vec3 s,
const osg::Vec3 e 
)

virtual osgManipulator::Translate1DDragger::~Translate1DDragger (  )  [protected, virtual]


Member Function Documentation

virtual bool osgManipulator::Translate1DDragger::handle ( const PointerInfo pi,
const osgGA::GUIEventAdapter ea,
osgGA::GUIActionAdapter us 
) [virtual]

Handle pick events on dragger and generate TranslateInLine commands.

Reimplemented from osgManipulator::Dragger.

void osgManipulator::Translate1DDragger::setupDefaultGeometry (  ) 

Setup default geometry for dragger.

void osgManipulator::Translate1DDragger::setColor ( const osg::Vec4 color  )  [inline]

Set/Get color for dragger.

const osg::Vec4 osgManipulator::Translate1DDragger::getColor (  )  const [inline]

void osgManipulator::Translate1DDragger::setPickColor ( const osg::Vec4 color  )  [inline]

Set/Get pick color for dragger.

Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked.

const osg::Vec4 osgManipulator::Translate1DDragger::getPickColor (  )  const [inline]

void osgManipulator::Translate1DDragger::setCheckForNodeInNodePath ( bool  onOff  )  [inline]


Member Data Documentation

osg::ref_ptr< LineProjector > osgManipulator::Translate1DDragger::_projector [protected]

osg::Vec3 osgManipulator::Translate1DDragger::_startProjectedPoint [protected]

osg::Vec4 osgManipulator::Translate1DDragger::_color [protected]

osg::Vec4 osgManipulator::Translate1DDragger::_pickColor [protected]

bool osgManipulator::Translate1DDragger::_checkForNodeInNodePath [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:42 2007 for the OpenSceneGraph by doxygen 1.5.3.