|
VR-Engage
2.2
|
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>
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="") |
| DtInputDevice * | create (std::string name) |
| CreatorMap & | creatorMap () |
| DtFactory () | |
| virtual | ~DtFactory () |
| void | addCreator (std::string name="") |
| DtInputDevice * | create (std::string name) |
| CreatorMap & | creatorMap () |
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 |
| makVre::DtInputDeviceFactory::DtInputDeviceFactory | ( | ) |
Constructor.
Initializes the factory and registers default device creators
|
overridevirtual |
Virtual destructor.
|
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.
|
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.