#include <P_JoystickTool.h>
Inheritance diagram for JoystickTool:
Public Methods | |
JoystickTool (int id, VMDApp *, Displayable *) | |
virtual void | do_event () |
Subclasses should override this method to perform tool-specific actions every display loop. More... | |
const float * | position () const |
return the position of this tool. More... | |
const char * | type_name () const |
return the name of this tool. Must be unique to all Tool subclasses! More... |
This is a tool which creates the 3d analog of a joystick - pressing the button puts this tool into a relative mode, so it is kind of like flying a plane. Force-feedback compatible.
Definition at line 24 of file P_JoystickTool.h.
|
Definition at line 25 of file P_JoystickTool.C. |
|
Subclasses should override this method to perform tool-specific actions every display loop.
Reimplemented from Tool. Definition at line 30 of file P_JoystickTool.C. References Tool::dimension, Tool::forceoff, Tool::isgrabbing, Tool::let_go, Tool::position, Tool::sendforce, Tool::setconstraint, Tool::target, and TARGET_GRAB. |
|
return the position of this tool.
Reimplemented from Tool. Definition at line 61 of file P_JoystickTool.C. References Tool::position. |
|
return the name of this tool. Must be unique to all Tool subclasses!
Implements Tool. Definition at line 30 of file P_JoystickTool.h. |