OpenSceneGraph
3.0.1
|
Base class for draggers. More...
Base class for draggers.
Concrete draggers implement the pick event handler and generate motion commands (translate, rotate, ...) and sends these command to all the DraggerCallbacks & Transforms that are connected to the Dragger that generates the commands.
typedef std::vector< osg::ref_ptr<Constraint> > osgManipulator::Dragger::Constraints |
typedef std::vector< osg::ref_ptr<DraggerCallback> > osgManipulator::Dragger::DraggerCallbacks |
osgManipulator::Dragger::Dragger | ( | ) | [protected] |
osgManipulator::Dragger::Dragger | ( | const Dragger & | rhs, |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) | [protected] |
virtual osgManipulator::Dragger::~Dragger | ( | ) | [protected, virtual] |
void osgManipulator::Dragger::addConstraint | ( | Constraint * | constraint | ) |
Referenced by osgManipulator::CommandManager::connect().
void osgManipulator::Dragger::addDraggerCallback | ( | DraggerCallback * | dc | ) |
void osgManipulator::Dragger::addTransformUpdating | ( | MatrixTransform * | transform | ) |
Referenced by osgManipulator::CommandManager::connect().
void osgManipulator::Dragger::dispatch | ( | MotionCommand & | command | ) |
int osgManipulator::Dragger::getActivationKeyEvent | ( | ) | const [inline] |
unsigned int osgManipulator::Dragger::getActivationModKeyMask | ( | ) | const [inline] |
virtual const CompositeDragger* osgManipulator::Dragger::getComposite | ( | ) | const [inline, virtual] |
Returns 0 if this Dragger is not a CompositeDragger.
Reimplemented in osgManipulator::CompositeDragger.
virtual CompositeDragger* osgManipulator::Dragger::getComposite | ( | ) | [inline, virtual] |
Returns 0 if this Dragger is not a CompositeDragger.
Reimplemented in osgManipulator::CompositeDragger.
Constraints& osgManipulator::Dragger::getConstraints | ( | ) | [inline] |
Referenced by osgManipulator::CommandManager::disconnect().
const Constraints& osgManipulator::Dragger::getConstraints | ( | ) | const [inline] |
bool osgManipulator::Dragger::getDraggerActive | ( | ) | const [inline] |
DraggerCallbacks& osgManipulator::Dragger::getDraggerCallbacks | ( | ) | [inline] |
const DraggerCallbacks& osgManipulator::Dragger::getDraggerCallbacks | ( | ) | const [inline] |
bool osgManipulator::Dragger::getHandleEvents | ( | ) | const [inline] |
Dragger* osgManipulator::Dragger::getParentDragger | ( | ) | [inline] |
const Dragger* osgManipulator::Dragger::getParentDragger | ( | ) | const [inline] |
virtual bool osgManipulator::Dragger::handle | ( | const osgGA::GUIEventAdapter & | ea, |
osgGA::GUIActionAdapter & | aa | ||
) | [virtual] |
virtual bool osgManipulator::Dragger::handle | ( | const PointerInfo & | , |
const osgGA::GUIEventAdapter & | , | ||
osgGA::GUIActionAdapter & | |||
) | [inline, virtual] |
Reimplemented in osgManipulator::CompositeDragger, and osgManipulator::Translate1DDragger.
osgManipulator::Dragger::META_Node | ( | osgManipulator | , |
Dragger | |||
) | [inline] |
Set/Get parent dragger.
For simple draggers parent points to itself. For composite draggers parent points to the parent dragger that uses this dragger.
virtual bool osgManipulator::Dragger::receive | ( | const MotionCommand & | command | ) | [virtual] |
void osgManipulator::Dragger::removeConstraint | ( | Constraint * | constraint | ) |
void osgManipulator::Dragger::removeDraggerCallback | ( | DraggerCallback * | dc | ) |
void osgManipulator::Dragger::removeTransformUpdating | ( | MatrixTransform * | transform | ) |
void osgManipulator::Dragger::setActivationKeyEvent | ( | int | key | ) | [inline] |
void osgManipulator::Dragger::setActivationModKeyMask | ( | unsigned int | mask | ) | [inline] |
void osgManipulator::Dragger::setDraggerActive | ( | bool | active | ) | [inline] |
void osgManipulator::Dragger::setHandleEvents | ( | bool | flag | ) |
virtual void osgManipulator::Dragger::setupDefaultGeometry | ( | ) | [inline, virtual] |
Setup default geometry for dragger.
Reimplemented in osgManipulator::Scale1DDragger, osgManipulator::Scale2DDragger, osgManipulator::Translate2DDragger, osgManipulator::Translate1DDragger, osgManipulator::RotateCylinderDragger, osgManipulator::RotateSphereDragger, and osgManipulator::TranslatePlaneDragger.
virtual void osgManipulator::Dragger::traverse | ( | osg::NodeVisitor & | ) | [virtual] |
Traverse downwards : calls children's accept method with NodeVisitor.
Reimplemented from osg::Group.
int osgManipulator::Dragger::_activationKeyEvent [protected] |
unsigned int osgManipulator::Dragger::_activationModKeyMask [protected] |
bool osgManipulator::Dragger::_activationPermittedByKeyEvent [protected] |
bool osgManipulator::Dragger::_activationPermittedByModKeyMask [protected] |
Constraints osgManipulator::Dragger::_constraints [protected] |
bool osgManipulator::Dragger::_draggerActive [protected] |
bool osgManipulator::Dragger::_handleEvents [protected] |
Dragger* osgManipulator::Dragger::_parentDragger [protected] |
![]() | Generated at Mon Oct 3 2011 12:39:47 for the OpenSceneGraph by doxygen 1.7.5. |