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

JoystickTool Class Reference

The 3d analog of a joystick. More...

#include <P_JoystickTool.h>

Inheritance diagram for JoystickTool:

Tool UIObject List of all members.

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


Detailed Description

The 3d analog of a joystick.

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.


Constructor & Destructor Documentation

JoystickTool::JoystickTool int    id,
VMDApp  ,
Displayable  
 

Definition at line 25 of file P_JoystickTool.C.


Member Function Documentation

void JoystickTool::do_event   [virtual]
 

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.

const float * JoystickTool::position   const [virtual]
 

return the position of this tool.

Reimplemented from Tool.

Definition at line 61 of file P_JoystickTool.C.

References Tool::position.

const char* JoystickTool::type_name   const [inline, virtual]
 

return the name of this tool. Must be unique to all Tool subclasses!

Implements Tool.

Definition at line 30 of file P_JoystickTool.h.


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