#include <Spaceball.h>
Inheritance diagram for Spaceball:
Public Types | |
enum | MoveMode { NORMAL, MAXAXIS, SCALING, ANIMATE, TRACKER, USER } |
enum for Spaceball movement modes. More... | |
Public Methods | |
Spaceball (VMDApp *) | |
constructor. More... | |
virtual | ~Spaceball (void) |
destructor. More... | |
virtual void | reset (void) |
reset the user interface (force update of all info displays). More... | |
virtual int | act_on_command (int, Command *) |
command execute update. More... | |
virtual int | check_event (void) |
check for and event, queue and return TRUE if one is found. More... | |
int | move_mode (MoveMode) |
set the current mode. More... | |
void | set_sensitivity (float s) |
set the sensitivity scaling factor. More... | |
void | set_null_region (int nr) |
set the null region, torque/displacement values below which no activity will occur. More... | |
void | set_max_stride (int ms) |
set the maximum animation stride allowed. More... | |
void | get_tracker_status (float &tx, float &ty, float &tz, float &rx, float &ry, float &rz, int &buttons) |
return the current spaceball event data, used by the UIVR SpaceballTracker interface. More... | |
Static Public Methods | |
const char * | get_mode_str (MoveMode mode) |
gets a string representing a mode's name. More... |
Definition at line 35 of file Spaceball.h.
|
enum for Spaceball movement modes.
Definition at line 38 of file Spaceball.h. Referenced by get_mode_str, and VMDApp::spaceball_set_mode. |
|
constructor.
Definition at line 219 of file Spaceball.C. |
|
destructor.
Definition at line 248 of file Spaceball.C. References NULL. |
|
command execute update.
Reimplemented from UIObject. Definition at line 290 of file Spaceball.C. |
|
check for and event, queue and return TRUE if one is found.
Reimplemented from UIObject. Definition at line 297 of file Spaceball.C. References Animation::ANIM_FORWARD1, Animation::ANIM_PAUSE, Animation::ANIM_REVERSE1, ANIMATE, VMDApp::animation_set_dir, VMDApp::animation_set_speed, VMDApp::animation_set_stride, UIObject::app, DisplayDevice::AUX, VMDApp::commandQueue, VMDApp::display, VMDApp::display_projection_is_perspective, DisplayDevice::EventCodes, MAXAXIS, move_mode, NORMAL, NULL, CommandQueue::runcommand, UIObject::runcommand, SCALING, VMDApp::scene_resetview, VMDApp::scene_rotate_by, VMDApp::scene_scale_by, VMDApp::scene_translate_by, DisplayDevice::spaceball, TRACKER, USER, and DisplayDevice::WIN_KBD. |
|
gets a string representing a mode's name.
Definition at line 639 of file Spaceball.C. References ANIMATE, MAXAXIS, MoveMode, NORMAL, SCALING, TRACKER, and USER. |
|
return the current spaceball event data, used by the UIVR SpaceballTracker interface.
Definition at line 656 of file Spaceball.C. Referenced by VMDApp::spaceball_get_tracker_status. |
|
set the current mode.
Definition at line 670 of file Spaceball.C. References TRACKER. Referenced by check_event, reset, and VMDApp::spaceball_set_mode. |
|
reset the user interface (force update of all info displays).
Reimplemented from UIObject. Definition at line 264 of file Spaceball.C. References move_mode, NORMAL, set_max_stride, set_null_region, and set_sensitivity. Referenced by Spaceball. |
|
set the maximum animation stride allowed.
Definition at line 102 of file Spaceball.h. Referenced by reset. |
|
set the null region, torque/displacement values below which no activity will occur.
Definition at line 97 of file Spaceball.h. Referenced by reset, and VMDApp::spaceball_set_null_region. |
|
set the sensitivity scaling factor.
Definition at line 91 of file Spaceball.h. Referenced by reset, and VMDApp::spaceball_set_sensitivity. |