|
| InteractiveFrameDnD (Viewer *viewer, dart::gui::osg::InteractiveFrame *frame) |
| Constructor.
|
|
virtual | ~InteractiveFrameDnD ()=default |
| Virtual destructor.
|
|
InteractiveFrame * | getFrame () const |
| Get the frame associated with this DnD.
|
|
void | update () override |
| Called when mouse events are being handled.
|
|
void | move () override |
| Called to specify how the Entity should be moved.
|
|
void | saveState () override |
| Called when a point gets picked, and is used to save the current state of the Entity.
|
|
Public Member Functions inherited from dart::gui::osg::DragAndDrop |
| DragAndDrop (Viewer *viewer, dart::dynamics::Entity *entity) |
| Constructor.
|
|
virtual | ~DragAndDrop () |
| Virtual destructor.
|
|
dart::dynamics::Entity * | getEntity () const |
| Get the Entity that this DragAndDrop is associated with.
|
|
void | setObstructable (bool _obstructable) |
| If true is passed in, this object will only be drag and droppable if there are no other objects between its picked point and the camera. More...
|
|
bool | isObstructable () const |
| If this is true, then this object will only be drag and droppable if there are no other objects between its picked point and the camera. More...
|
|
virtual void | release () |
| Called when the user lets go of the object that they are dragging and dropping. More...
|
|
virtual Eigen::Vector3d | getConstrainedDx () const |
| Default method for getting the translation requested by the user.
|
|
virtual Eigen::AngleAxisd | getConstrainedRotation () const |
| Default method for getting the rotation requested by the user.
|
|
void | unconstrain () |
| Remove all constraints from the dragging and dropping.
|
|
void | constrainToLine (const Eigen::Vector3d &slope) |
| Constrain translation to only occur along the given slope, or constrain rotation to only occur about the given slope. More...
|
|
void | constrainToPlane (const Eigen::Vector3d &normal) |
| Constrain translation to only occur within the plane defined by the given normal, or constrain rotation to only occur about the given normal. More...
|
|
bool | isMoving () const |
| Returns the mAmMoving flag.
|
|
void | setRotationOption (RotationOption option) |
| Set the option for triggering rotations instead of translations.
|
|
RotationOption | getRotationOption () const |
| Get the current rotation option for this DnD.
|
|
void | setRotationModKey (::osgGA::GUIEventAdapter::ModKeyMask rotationModKey) |
| Set the modkey that will be used to toggle rotation for this DnD.
|
|
::osgGA::GUIEventAdapter::ModKeyMask | getRotationModKey () const |
| Get the modkey that will be used to toggle rotation for this DnD.
|
|
virtual | ~Subject () |
| Destructor will notify all Observers that it is destructing.
|
|
virtual | ~Observer () |
| Destructor will notify all Subjects that it is destructing.
|
|