VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtInputDeviceFactory Class Reference

Detailed Description

This factory allows for the dynamic creation of input device objects based on their registered type names. It handles the registration of device creators and provides access to the list of available device types.

#include <inputDeviceFactory.h>

Inheritance diagram for makVre::DtInputDeviceFactory:
[legend]

Public Member Functions

 DtInputDeviceFactory ()
 
virtual ~DtInputDeviceFactory () override
 
virtual std::vector< std::string > registeredCreators ()
 
- Public Member Functions inherited from makVre::DtFactory< DtInputDevice >
 DtFactory ()
 
virtual ~DtFactory ()
 
void addCreator (std::string name="")
 
DtInputDevicecreate (std::string name)
 
CreatorMapcreatorMap ()
 
 DtFactory ()
 
virtual ~DtFactory ()
 
void addCreator (std::string name="")
 
DtInputDevicecreate (std::string name)
 
CreatorMapcreatorMap ()
 

Protected Member Functions

virtual void installDefaultDevices ()
 

Additional Inherited Members

- Public Types inherited from makVre::DtFactory< DtInputDevice >
using CreatorMap
 
using CreatorMap
 
- Protected Attributes inherited from makVre::DtFactory< DtInputDevice >
CreatorMap myCreators
 
CreatorMap myCreators
 

Constructor & Destructor Documentation

◆ DtInputDeviceFactory()

makVre::DtInputDeviceFactory::DtInputDeviceFactory ( )

Constructor.

Initializes the factory and registers default device creators

◆ ~DtInputDeviceFactory()

virtual makVre::DtInputDeviceFactory::~DtInputDeviceFactory ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ registeredCreators()

virtual std::vector< std::string > makVre::DtInputDeviceFactory::registeredCreators ( )
virtual

Gets a list of all registered input device type names.

Returns the names of all input device types that can be created by this factory. These names can be used with the create() method to instantiate specific device types.

Returns
Vector of strings containing registered device type names

◆ installDefaultDevices()

virtual void makVre::DtInputDeviceFactory::installDefaultDevices ( )
protectedvirtual

Registers the standard set of input device creators.

Called during construction to register all the default device types that should be available without additional plugins.


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