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

SensorConfig Class Reference

Provides a Sensor with configuration information by parsing one or more configuration files. More...

#include <P_SensorConfig.h>

List of all members.

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 Matrix4getright_rot () const
const Matrix4getleft_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...


Detailed Description

Provides a Sensor with configuration information by parsing one or more configuration files.

Definition at line 49 of file P_SensorConfig.h.


Constructor & Destructor Documentation

SensorConfig::SensorConfig const char *    thedevice
 

Constructor loads the .vmdsensors file.

Definition at line 223 of file P_SensorConfig.C.

References Matrix4::identity, NULL, and PARSE_FOR_DEVICE.

SensorConfig::~SensorConfig  
 

Definition at line 339 of file P_SensorConfig.C.


Member Function Documentation

const char * SensorConfig::getdevice   const
 

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.

const Matrix4 * SensorConfig::getleft_rot   const
 

Definition at line 328 of file P_SensorConfig.C.

Referenced by VMDTracker::start.

float SensorConfig::getmaxforce   const
 

Accessor routines for device config parameters.

Definition at line 316 of file P_SensorConfig.C.

Referenced by VRPNFeedback::do_start, and Feedback::start.

const char * SensorConfig::getname   const
 

Definition at line 335 of file P_SensorConfig.C.

Referenced by SpaceballTracker::do_start, and MobileTracker::do_start.

ResizeArray< JString * > * SensorConfig::getnames   [static]
 

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.

const char * SensorConfig::getnums   const
 

Definition at line 336 of file P_SensorConfig.C.

const float * SensorConfig::getoffset   const
 

Definition at line 320 of file P_SensorConfig.C.

Referenced by VMDTracker::start.

const char * SensorConfig::getplace   const
 

Definition at line 334 of file P_SensorConfig.C.

const Matrix4 * SensorConfig::getright_rot   const
 

Definition at line 324 of file P_SensorConfig.C.

Referenced by VMDTracker::start.

float SensorConfig::getscale   const
 

Definition at line 312 of file P_SensorConfig.C.

Referenced by VMDTracker::start.

const ResizeArray< int > * SensorConfig::getsensors   const
 

Definition at line 337 of file P_SensorConfig.C.

Referenced by VRPNTracker::do_start, CaveTracker::do_start, and Buttons::start.

const char * SensorConfig::gettype   const
 

Definition at line 333 of file P_SensorConfig.C.

Referenced by generic_get_names.

const char * SensorConfig::getUSL   const
 

Seems to be used to tell if the specified device was found or not.

Definition at line 308 of file P_SensorConfig.C.

int SensorConfig::have_one_sensor   const
 

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.

void SensorConfig::make_vrpn_address char *    buf const
 

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.

int SensorConfig::require_cave_name   const
 

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.

int SensorConfig::require_freevr_name   const
 

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.

int SensorConfig::require_local   const
 

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.


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