#include <Interactor.h>
Base class for all interactors. Interactors are sofa subgraphs used to apply actions to the scene, typically through user interaction. More...
Base class for all interactors. Interactors are sofa subgraphs used to apply actions to the scene, typically through user interaction.
Note that they are not necessarily moved using the mouse, since there is no mouse or window coordinates in the API.
Protected Attributes | |
Node::SPtr | _interactionNode |
Scene node used to implement this. More... | |
PickedPoint | _pickedPoint |
The point attached to this. More... | |
Public Member Functions | |
Interactor (const PickedPoint &picked) | |
virtual | ~Interactor () |
virtual void | attach (SofaScene *) |
Insert this in the scene as a child of the given node. If overloaded, this function should be called at the beginning of the overloaded function. More... | |
virtual void | detach () |
Remove this from the scene, without destroying it. If overloaded, this function should be called at the end of the overloaded function. More... | |
virtual Vec3 | getPoint ()=0 |
Current interaction point. More... | |
virtual void | setPoint (const Vec3 &p)=0 |
Displace the interaction to the given point. More... | |
Node::SPtr | getNode () |
Root of the interactor graph. More... | |
const PickedPoint & | getPickedPoint () const |
Simulated point attached to this. More... | |
|
protected |
Scene node used to implement this.
|
protected |
The point attached to this.
sofa::simplegui::Interactor::Interactor | ( | const PickedPoint & | picked | ) |
|
virtual |
|
virtual |
Insert this in the scene as a child of the given node. If overloaded, this function should be called at the beginning of the overloaded function.
Reimplemented in sofa::simplegui::SpringInteractor.
|
virtual |
Remove this from the scene, without destroying it. If overloaded, this function should be called at the end of the overloaded function.
Reimplemented in sofa::simplegui::SpringInteractor.
|
inline |
Root of the interactor graph.
|
inline |
Simulated point attached to this.
|
pure virtual |
Current interaction point.
Implemented in sofa::simplegui::SpringInteractor.
|
pure virtual |
Displace the interaction to the given point.
Implemented in sofa::simplegui::SpringInteractor.