|
VR-Engage
2.2
|
This class defines a descriptor for joystick controller components in VREngage. It extends the base joystick device controller descriptor to add configuration for port group assignment, allowing joystick inputs to be directed to appropriate control systems in the simulation.
#include <vreJoystickControllerDescriptor.h>
Public Member Functions | |
| DtVreJoystickControllerDescriptor (const DtString &componentName, DtReaderWriterRegistry *parentRegistry=0) | |
| DtVreJoystickControllerDescriptor (const DtSymbolString &componentName, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtVreJoystickControllerDescriptor (const DtVreJoystickControllerDescriptor &orig, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtVreJoystickControllerDescriptor () override |
| DtVreJoystickControllerDescriptor & | operator= (const DtVreJoystickControllerDescriptor &orig) |
| virtual DtString | type () const override |
| virtual DtComponentDescriptor * | clone (DtReaderWriterRegistry *parentRegistry=0) const override |
| virtual std::string | portGroupName () const |
| virtual void | setPortGroupName (std::string name) |
Static Public Member Functions | |
| static DtComponentDescriptor * | creator () |
Protected Attributes | |
| DtRwString | myPortGroupName |
Private Member Functions | |
| DtVreJoystickControllerDescriptor () | |
|
private |
Default constructor (not implemented)
Default constructor is private and not implemented to prevent creation of instances without proper initialization.
Referenced by DtVreJoystickControllerDescriptor(), and operator=().
| makVre::DtVreJoystickControllerDescriptor::DtVreJoystickControllerDescriptor | ( | const DtString & | componentName, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor with component name.
| componentName | The name of this component |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new joystick controller descriptor with the specified name.
| makVre::DtVreJoystickControllerDescriptor::DtVreJoystickControllerDescriptor | ( | const DtSymbolString & | componentName, |
| DtReaderWriterRegistry * | parentRegistry = NULL ) |
Constructor with component name as symbol string.
| componentName | The name of this component as a symbol string |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new joystick controller descriptor with the specified name.
| makVre::DtVreJoystickControllerDescriptor::DtVreJoystickControllerDescriptor | ( | const DtVreJoystickControllerDescriptor & | orig, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Copy constructor.
| orig | The source descriptor to copy from |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new joystick controller descriptor as a copy of the provided original.
References DtVreJoystickControllerDescriptor().
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the descriptor.
| DtVreJoystickControllerDescriptor & makVre::DtVreJoystickControllerDescriptor::operator= | ( | const DtVreJoystickControllerDescriptor & | orig | ) |
Assignment operator.
| orig | The source descriptor to copy from |
Assigns the contents of the provided descriptor to this one.
References DtVreJoystickControllerDescriptor().
|
overridevirtual |
Gets the type identifier for this descriptor.
Returns a unique type identifier string for this descriptor type. Will return DtVreJoystickControllerDescriptorType.
|
overridevirtual |
Creates a clone of this descriptor.
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new joystick controller descriptor as a deep copy of this one.
|
static |
Factory function to create a new instance of this descriptor.
Static factory function used by the descriptor creation system to instantiate new instances of this descriptor type.
|
virtual |
Gets the port group name.
Returns the name of the port group that this joystick controller is assigned to. Port groups are used to direct joystick inputs to appropriate control systems.
|
virtual |
Sets the port group name.
| name | String identifying the port group |
Sets the name of the port group that this joystick controller is assigned to. Port groups are used to direct joystick inputs to appropriate control systems.
|
protected |
Port group name.
The name of the port group that this joystick controller is assigned to. Port groups are used to direct joystick inputs to appropriate control systems.