#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 223 of file P_SensorConfig.C. References Matrix4::identity, NULL, and PARSE_FOR_DEVICE. |
|
Definition at line 339 of file P_SensorConfig.C. |
|
Name of the device that will be returned.
Definition at line 332 of file P_SensorConfig.C. Referenced by Tool::add_buttons, Tool::add_feedback, and Tool::add_tracker. |
|
Definition at line 328 of file P_SensorConfig.C. Referenced by VMDTracker::start. |
|
Accessor routines for device config parameters.
Definition at line 316 of file P_SensorConfig.C. Referenced by VRPNFeedback::do_start, and Feedback::start. |
|
Definition at line 335 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 300 of file P_SensorConfig.C. References NULL, and PARSE_FOR_NAMES. Referenced by generic_get_names, and UIVR::get_device_names. |
|
Definition at line 336 of file P_SensorConfig.C. |
|
Definition at line 320 of file P_SensorConfig.C. Referenced by VMDTracker::start. |
|
Definition at line 334 of file P_SensorConfig.C. |
|
Definition at line 324 of file P_SensorConfig.C. Referenced by VMDTracker::start. |
|
Definition at line 312 of file P_SensorConfig.C. Referenced by VMDTracker::start. |
|
Definition at line 337 of file P_SensorConfig.C. Referenced by VRPNTracker::do_start, CaveTracker::do_start, and Buttons::start. |
|
Definition at line 333 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 308 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 342 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 350 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 370 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 379 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 361 of file P_SensorConfig.C. Referenced by SpaceballTracker::do_start, MobileTracker::do_start, require_cave_name, and require_freevr_name. |