#include <P_SensorConfig.h>
Public Methods | |
| SensorConfig (const char *thedevice) | |
| Constructor loads the .vmdsensors file. More... | |
| ~SensorConfig () | |
| const char * | getUSL () const |
| Seems to be used to tell if the specified device was found or not. More... | |
| const char * | getdevice () const |
| Name of the device that will be returned. More... | |
| float | getmaxforce () const |
| Accessor routines for device config parameters. More... | |
| float | getscale () const |
| const float * | getoffset () const |
| const Matrix4 * | getright_rot () const |
| const Matrix4 * | getleft_rot () const |
| const char * | gettype () const |
| const char * | getplace () const |
| const char * | getname () const |
| const char * | getnums () const |
| const ResizeArray< int > * | getsensors () const |
| int | have_one_sensor () const |
| Check that the config specifies only one sensor for the device; prints a nice warning message if it doesn't. More... | |
| int | require_local () const |
| Check that the place is local; print a nice warning if it isn't. More... | |
| int | require_cave_name () const |
| Check that the place and name are valid for a CAVE. More... | |
| int | require_freevr_name () const |
| Check that the place and name are valid for FreeVR. More... | |
| void | make_vrpn_address (char *buf) const |
| Create a vrpn address for the current name and place; store in buf. More... | |
Static Public Methods | |
| ResizeArray< JString * > * | getnames () |
| find the list of supported device names --- delete the list when done! More... | |
Definition at line 49 of file P_SensorConfig.h.
|
|
Constructor loads the .vmdsensors file.
Definition at line 218 of file P_SensorConfig.C. References Matrix4::identity, NULL, and PARSE_FOR_DEVICE. |
|
|
Definition at line 334 of file P_SensorConfig.C. |
|
|
Name of the device that will be returned.
Definition at line 327 of file P_SensorConfig.C. Referenced by Tool::add_buttons, Tool::add_feedback, and Tool::add_tracker. |
|
|
Definition at line 323 of file P_SensorConfig.C. Referenced by VMDTracker::start. |
|
|
Accessor routines for device config parameters.
Definition at line 311 of file P_SensorConfig.C. Referenced by VRPNFeedback::do_start, and Feedback::start. |
|
|
Definition at line 330 of file P_SensorConfig.C. Referenced by SpaceballTracker::do_start, and MobileTracker::do_start. |
|
|
find the list of supported device names --- delete the list when done!
Definition at line 295 of file P_SensorConfig.C. References NULL, and PARSE_FOR_NAMES. Referenced by generic_get_names, and UIVR::get_device_names. |
|
|
Definition at line 331 of file P_SensorConfig.C. |
|
|
Definition at line 315 of file P_SensorConfig.C. Referenced by VMDTracker::start. |
|
|
Definition at line 329 of file P_SensorConfig.C. |
|
|
Definition at line 319 of file P_SensorConfig.C. Referenced by VMDTracker::start. |
|
|
Definition at line 307 of file P_SensorConfig.C. Referenced by VMDTracker::start. |
|
|
Definition at line 332 of file P_SensorConfig.C. Referenced by VRPNTracker::do_start, CaveTracker::do_start, and Buttons::start. |
|
|
Definition at line 328 of file P_SensorConfig.C. Referenced by generic_get_names. |
|
|
Seems to be used to tell if the specified device was found or not.
Definition at line 303 of file P_SensorConfig.C. |
|
|
Check that the config specifies only one sensor for the device; prints a nice warning message if it doesn't.
Definition at line 337 of file P_SensorConfig.C. References ResizeArray< int >::num. Referenced by SpaceballTracker::do_start, VRPNTracker::do_start, VRPNFeedback::do_start, FreeVRTracker::do_start, CaveTracker::do_start, and MobileTracker::do_start. |
|
|
Create a vrpn address for the current name and place; store in buf.
Definition at line 345 of file P_SensorConfig.C. Referenced by VRPNTracker::do_start, VRPNFeedback::do_start, and VRPNButtons::do_start. |
|
|
Check that the place and name are valid for a CAVE.
Definition at line 369 of file P_SensorConfig.C. References require_local. Referenced by CaveTracker::do_start. |
|
|
Check that the place and name are valid for FreeVR.
Definition at line 378 of file P_SensorConfig.C. References require_local. Referenced by FreeVRTracker::do_start. |
|
|
Check that the place is local; print a nice warning if it isn't.
Definition at line 360 of file P_SensorConfig.C. Referenced by SpaceballTracker::do_start, MobileTracker::do_start, require_cave_name, and require_freevr_name. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002