OpenSceneGraph
3.0.1
|
Dragger for performing 1D translation. More...
Public Member Functions | |
Translate1DDragger () | |
META_OSGMANIPULATOR_Object (osgManipulator, Translate1DDragger) | |
Translate1DDragger (const osg::Vec3d &s, const osg::Vec3d &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::Vec3d | _startProjectedPoint |
osg::Vec4 | _color |
osg::Vec4 | _pickColor |
bool | _checkForNodeInNodePath |
Dragger for performing 1D translation.
osgManipulator::Translate1DDragger::Translate1DDragger | ( | ) |
osgManipulator::Translate1DDragger::Translate1DDragger | ( | const osg::Vec3d & | s, |
const osg::Vec3d & | e | ||
) |
virtual osgManipulator::Translate1DDragger::~Translate1DDragger | ( | ) | [protected, virtual] |
const osg::Vec4& osgManipulator::Translate1DDragger::getColor | ( | ) | const [inline] |
const osg::Vec4& osgManipulator::Translate1DDragger::getPickColor | ( | ) | const [inline] |
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.
osgManipulator::Translate1DDragger::META_OSGMANIPULATOR_Object | ( | osgManipulator | , |
Translate1DDragger | |||
) |
void osgManipulator::Translate1DDragger::setCheckForNodeInNodePath | ( | bool | onOff | ) | [inline] |
void osgManipulator::Translate1DDragger::setColor | ( | const osg::Vec4 & | color | ) | [inline] |
Set/Get color for dragger.
References osgManipulator::setMaterialColor().
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.
void osgManipulator::Translate1DDragger::setupDefaultGeometry | ( | ) | [virtual] |
Setup default geometry for dragger.
Reimplemented from osgManipulator::Dragger.
bool osgManipulator::Translate1DDragger::_checkForNodeInNodePath [protected] |
osg::Vec4 osgManipulator::Translate1DDragger::_color [protected] |
![]() | Generated at Mon Oct 3 2011 12:39:47 for the OpenSceneGraph by doxygen 1.7.5. |