|
VR-Engage
2.2
|
DtGroundJoyTurretController extends the turret slew controller with joystick input capabilities, allowing direct manual control of ground vehicle turrets. It implements the DtJoystickControllerInterface to process input from joystick devices and translate it to appropriate turret control outputs.
Uses Descriptor Type: DtTurretJoyDeviceControllerDescriptor
#include <groundJoyTurretController.h>
Public Member Functions | |
| DtGroundJoyTurretController (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtGroundJoyTurretController () override |
| virtual const char * | type () const override |
Static Public Member Functions | |
| static DtSimComponent * | creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
Protected Member Functions | |
| virtual void | calcAndSetPortValues (const DtString &functionGroup, const DtString &function, double value, bool repeat) override |
| virtual void | joystickConnected () override |
| virtual void | joystickDisconnected () override |
Private Member Functions | |
| DtGroundJoyTurretController () | |
| DtGroundJoyTurretController & | operator= (const DtGroundJoyTurretController &orig) |
| DtGroundJoyTurretController (const DtGroundJoyTurretController &orig) | |
| makVre::DtGroundJoyTurretController::DtGroundJoyTurretController | ( | const DtString & | name, |
| DtLocalObject * | owner, | ||
| DtSimulationServices * | simManager, | ||
| DtComponentDescriptor * | desc, | ||
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor.
| name | The name of this component |
| owner | The local object that owns this component |
| simManager | The simulation services manager |
| desc | Component descriptor with configuration parameters |
| parentRegistry | Optional parent registry for reader/writer functionality |
Creates a new ground turret joystick controller component with the specified parameters.
Referenced by DtGroundJoyTurretController(), and operator=().
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the ground turret joystick controller component.
|
private |
Default constructor (not implemented)
Default constructor is private and not implemented to prevent creation of instances without proper initialization.
|
private |
Copy constructor (not implemented)
Copy constructor is private and not implemented to prevent copy construction.
References DtGroundJoyTurretController().
|
overridevirtual |
Gets the type identifier for this component.
Implements the DtSimComponent::type() method to return the type identifier for this component.
|
static |
Factory method to create a new instance of this component.
| name | The name for the new component |
| owner | The local object that will own this component |
| simManager | The simulation services manager |
| desc | Optional component descriptor |
| parentRegistry | Optional parent registry for reader/writer functionality |
Static factory method used by the component creation system to instantiate new instances of this component type.
|
overrideprotectedvirtual |
Processes joystick input and updates output ports.
| functionGroup | The function group identifier for the input |
| function | The specific function identifier within the group |
| value | The input value from the joystick |
| repeat | Flag indicating if this is a repeated input |
Implements the DtJoystickControllerInterface method to process joystick input and update the controller's output ports accordingly for turret control.
|
overrideprotectedvirtual |
Handles joystick connection event.
Called when a joystick is connected to the system. Activates joystick control mode for this turret controller.
|
overrideprotectedvirtual |
Handles joystick disconnection event.
Called when a joystick is disconnected from the system. Deactivates joystick control mode for this turret controller.
|
private |
Assignment operator (not implemented)
Assignment operator is private and not implemented to prevent assignment.
References DtGroundJoyTurretController().