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 |
osgManipulator::Translate1DDragger::Translate1DDragger | ( | ) |
virtual osgManipulator::Translate1DDragger::~Translate1DDragger | ( | ) | [protected, virtual] |
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] |
osg::Vec4 osgManipulator::Translate1DDragger::_color [protected] |
bool osgManipulator::Translate1DDragger::_checkForNodeInNodePath [protected] |