Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Spaceball Class Reference

UIObject subclass for Spaceball-based motion control. More...

#include <Spaceball.h>

Inheritance diagram for Spaceball:

UIObject List of all members.

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...


Detailed Description

UIObject subclass for Spaceball-based motion control.

Definition at line 35 of file Spaceball.h.


Member Enumeration Documentation

enum Spaceball::MoveMode
 

enum for Spaceball movement modes.

Enumeration values:
NORMAL 
MAXAXIS 
SCALING 
ANIMATE 
TRACKER 
USER 

Definition at line 38 of file Spaceball.h.

Referenced by get_mode_str, and VMDApp::spaceball_set_mode.


Constructor & Destructor Documentation

Spaceball::Spaceball VMDApp  
 

constructor.

Definition at line 219 of file Spaceball.C.

References NULL, and reset.

Spaceball::~Spaceball void    [virtual]
 

destructor.

Definition at line 248 of file Spaceball.C.

References NULL.


Member Function Documentation

int Spaceball::act_on_command int   ,
Command  
[virtual]
 

command execute update.

Reimplemented from UIObject.

Definition at line 290 of file Spaceball.C.

int Spaceball::check_event void    [virtual]
 

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.

const char * Spaceball::get_mode_str MoveMode    mode [static]
 

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.

void Spaceball::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.

Definition at line 656 of file Spaceball.C.

Referenced by VMDApp::spaceball_get_tracker_status.

int Spaceball::move_mode MoveMode   
 

set the current mode.

Definition at line 670 of file Spaceball.C.

References TRACKER.

Referenced by check_event, reset, and VMDApp::spaceball_set_mode.

void Spaceball::reset void    [virtual]
 

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.

void Spaceball::set_max_stride int    ms [inline]
 

set the maximum animation stride allowed.

Definition at line 102 of file Spaceball.h.

Referenced by reset.

void Spaceball::set_null_region int    nr [inline]
 

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.

void Spaceball::set_sensitivity float    s [inline]
 

set the sensitivity scaling factor.

Definition at line 91 of file Spaceball.h.

Referenced by reset, and VMDApp::spaceball_set_sensitivity.


The documentation for this class was generated from the following files:
Generated on Wed Apr 24 02:45:11 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002