AGXDynamics  2.31.1.0
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

◆ Priority

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

◆ SensorManager()

agxSensor::SensorManager::SensorManager ( )

◆ ~SensorManager()

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

Member Function Documentation

◆ _shutdown()

void agx::Singleton::_shutdown ( )
protectedinherited

◆ getClassName()

virtual std::string agx::Singleton::getClassName ( ) const
pure virtualinherited

◆ getInputManager()

OIS::InputManager* agxSensor::SensorManager::getInputManager ( )
Returns
a pointer to the internal OIS InputManager

◆ getPriority()

int agx::Singleton::getPriority ( ) const
inherited

Return the shutdown priority of the singleton instance.

◆ hasShutdown()

static bool agxSensor::SensorManager::hasShutdown ( )
static

◆ init()

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.

◆ instance()

static SensorManager* agxSensor::SensorManager::instance ( )
static
Returns
a pointer to the SensorManager singleton.

◆ shutdown()

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: