Main Page | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

osgSensor::SensorMgr Class Reference

SensorMgr is a class for handling all sensor devices. More...

#include <SensorMgr.h>

List of all members.

Public Member Functions

void shutdown ()
bool init ()
void update ()
 Call update on all registrated sensors.
void registerSensor (osgSensor::Sensor *sensor)
 Registrate a sensor.
bool unRegisterSensor (osgSensor::Sensor *sensor)
 unregistrate a sensor.
Sensorfind (const std::string &name)

Static Public Member Functions

static SensorMgrinstance (void)
 Return the singleton object.


Detailed Description

SensorMgr is a class for handling all sensor devices.

All classes inherited from the Sensor class will automatically be registrated to this manager.

When SensorMgr::update() is called, all registrated Sensors update method will be called.

Same goes for SensorMgr::shutdown()


Member Function Documentation

Sensor* osgSensor::SensorMgr::find const std::string &  name  ) 
 

Find a named sensor and return it.

Returns:
return a pointer to the named sensor, NULL if no sensor is found

bool osgSensor::SensorMgr::init  ) 
 

Initializes the SensorManager.

void osgSensor::SensorMgr::shutdown  ) 
 

Shutdown all registrated sensors


The documentation for this class was generated from the following file:
Generated on Wed May 10 16:29:46 2006 for osgHaptics by  doxygen 1.4.4