Public Member Functions | |
Translate2DDragger () | |
Translate2DDragger (const osg::Plane &plane) | |
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 |
Protected Member Functions | |
virtual | ~Translate2DDragger () |
Protected Attributes | |
osg::ref_ptr < PlaneProjector > | _projector |
osg::Vec3 | _startProjectedPoint |
osg::Vec4 | _color |
osg::Vec4 | _pickColor |
osg::ref_ptr < osg::PolygonOffset > | _polygonOffset |
osgManipulator::Translate2DDragger::Translate2DDragger | ( | ) |
osgManipulator::Translate2DDragger::Translate2DDragger | ( | const osg::Plane & | plane | ) |
virtual osgManipulator::Translate2DDragger::~Translate2DDragger | ( | ) | [protected, virtual] |
virtual bool osgManipulator::Translate2DDragger::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::Translate2DDragger::setupDefaultGeometry | ( | ) |
Setup default geometry for dragger.
void osgManipulator::Translate2DDragger::setColor | ( | const osg::Vec4 & | color | ) | [inline] |
Set/Get color for dragger.
const osg::Vec4 osgManipulator::Translate2DDragger::getColor | ( | ) | const [inline] |
void osgManipulator::Translate2DDragger::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::Translate2DDragger::getPickColor | ( | ) | const [inline] |
osg::Vec4 osgManipulator::Translate2DDragger::_color [protected] |