| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/sg/manipulator.h>

| VRS::Manipulator::Manipulator | ( | InputEvent::Button | button, | |
| InputEvent::Modifier | must_modifier = InputEvent::NoModifier, |
|||
| InputEvent::Modifier | must_not_modifier = InputEvent::NoModifier, |
|||
| Callback * | startCallback = (Callback *) 0, |
|||
| Callback * | motionCallback = (Callback *) 0, |
|||
| Callback * | endCallback = (Callback *) 0 | |||
| ) |
| virtual VRS::Manipulator::~Manipulator | ( | ) | [virtual] |
A manipulator starts if the specified mouse button is pressed. An interaction is process as long as button motion events are received. It is stopped if the mouse button is released. A manipulator sets up internally the condition objects required by the base class.
| virtual BehaviorNode::InvalidationHint VRS::Manipulator::dragStart | ( | int | x, | |
| int | y, | |||
| ButtonEvent * | e | |||
| ) | [pure virtual] |
| virtual BehaviorNode::InvalidationHint VRS::Manipulator::dragMotion | ( | int | x, | |
| int | y, | |||
| MotionEvent * | e | |||
| ) | [pure virtual] |
| virtual BehaviorNode::InvalidationHint VRS::Manipulator::dragEnd | ( | int | x, | |
| int | y, | |||
| ButtonEvent * | e | |||
| ) | [pure virtual] |
These methods implements the concrete manipulator functionality. They are overloaded by subclasses. `dragStart' is called if an event of type `ButtonEvent` is received which matches the button condition. `dragMotion' is called if the interaction has been started already and an `MotionEvent' has been received which matches the modifier conditions. `dragEnd' is called if the interaction has been started already and an event of type `ButtonEvent' has been received which matches the button condition. The return value specifies the redrawing code required by `handle'. (It specifies if the world, a canvas or nothing has to be redrawn).
Implemented in VRS::ApproachNavigation, VRS::AxonometricLookAtManipulator, VRS::GameNavigation, VRS::LookAtManipulator, VRS::Navigation, VRS::PaneManipulator, VRS::PhysicalNavigation, VRS::PlaneNavigation, VRS::Selector, and VRS::TrackBall.
| void VRS::Manipulator::setStartCallback | ( | Callback * | action | ) |
| Callback * VRS::Manipulator::getStartCallback | ( | ) | const [inline] |
The subclasses of `Manipulator' decide how to use the callbacks.
| void VRS::Manipulator::setMotionCallback | ( | Callback * | action | ) |
| Callback * VRS::Manipulator::getMotionCallback | ( | ) | const [inline] |
The subclasses of `Manipulator' decide how to use the callbacks.
| void VRS::Manipulator::setEndCallback | ( | Callback * | action | ) |
| Callback * VRS::Manipulator::getEndCallback | ( | ) | const [inline] |
The subclasses of `Manipulator' decide how to use the callbacks.
| VRS::Manipulator::VRS_TYPEINFO | ( | Manipulator | , | |
| Interaction | ||||
| ) |
| VRS::Manipulator::VRS_SERIALIZABLE_ABSTRACT_CLASS | ( | Manipulator | ) |
| virtual int VRS::Manipulator::start | ( | Event * | ) | [protected, virtual] |
Reimplemented from VRS::Interaction.
| virtual int VRS::Manipulator::process | ( | Event * | ) | [protected, virtual] |
Reimplemented from VRS::Interaction.
| virtual int VRS::Manipulator::end | ( | Event * | ) | [protected, virtual] |
Reimplemented from VRS::Interaction.