AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxSensor::SensorManager Class Referenceabstract

Class which controls all sensors, initialization, destruction etc. More...

#include <SensorManager.h>

+ Inheritance diagram for agxSensor::SensorManager:

Public Types

enum  Priority { HIGHEST_PRIORITY = 2147483647, LOWEST_PRIORITY = 10000, DEFAULT_PRIORITY = 1073741824 }
 Specifies the ranges of the priority which can be assigned to a singleton at the time of creation. More...
 

Public Member Functions

 SensorManager ()
 
virtual std::string getClassName () const =0
 
OIS::InputManager * getInputManager ()
 
int getPriority () const
 Return the shutdown priority of the singleton instance. More...
 
bool init (agx::Int mWin)
 Initializes the SensorManager with a valid window pointer. More...
 
virtual void shutdown () override
 Implement this method to cleanup your Singleton class. More...
 

Static Public Member Functions

static bool hasShutdown ()
 
static SensorManager * instance ()
 

Protected Member Functions

virtual ~SensorManager ()
 
void _shutdown ()
 

Detailed Description

Class which controls all sensors, initialization, destruction etc.

Definition at line 33 of file SensorManager.h.

Member Enumeration Documentation

enum agx::Singleton::Priority
inherited

Specifies the ranges of the priority which can be assigned to a singleton at the time of creation.

Enumerator
HIGHEST_PRIORITY 

The highest priority that can be given to a singleton.

LOWEST_PRIORITY 

The lowest priority that can be given to a singleton.

DEFAULT_PRIORITY 

The default priority given to a singleton.

Definition at line 35 of file Singleton.h.

Constructor & Destructor Documentation

agxSensor::SensorManager::SensorManager ( )
virtual agxSensor::SensorManager::~SensorManager ( )
protectedvirtual

Member Function Documentation

void agx::Singleton::_shutdown ( )
protectedinherited
virtual std::string agx::Singleton::getClassName ( ) const
pure virtualinherited
OIS::InputManager* agxSensor::SensorManager::getInputManager ( )
Returns
a pointer to the internal OIS InputManager
int agx::Singleton::getPriority ( ) const
inherited

Return the shutdown priority of the singleton instance.

static bool agxSensor::SensorManager::hasShutdown ( )
static
bool agxSensor::SensorManager::init ( agx::Int  mWin)

Initializes the SensorManager with a valid window pointer.

A device will only react if this window is the current one (at least on windows). Under all other platforms mWin can be 0.

static SensorManager* agxSensor::SensorManager::instance ( )
static
Returns
a pointer to the SensorManager singleton.
virtual void agxSensor::SensorManager::shutdown ( )
overridevirtual

Implement this method to cleanup your Singleton class.

Reimplemented from agx::Singleton.


The documentation for this class was generated from the following file: