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

Detailed Description

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>

Inheritance diagram for makVre::DtGroundJoyTurretController:
[legend]

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 ()
 
DtGroundJoyTurretControlleroperator= (const DtGroundJoyTurretController &orig)
 
 DtGroundJoyTurretController (const DtGroundJoyTurretController &orig)
 

Constructor & Destructor Documentation

◆ DtGroundJoyTurretController() [1/3]

makVre::DtGroundJoyTurretController::DtGroundJoyTurretController ( const DtString & name,
DtLocalObject * owner,
DtSimulationServices * simManager,
DtComponentDescriptor * desc,
DtReaderWriterRegistry * parentRegistry = 0 )

Constructor.

Parameters
nameThe name of this component
ownerThe local object that owns this component
simManagerThe simulation services manager
descComponent descriptor with configuration parameters
parentRegistryOptional parent registry for reader/writer functionality

Creates a new ground turret joystick controller component with the specified parameters.

Referenced by DtGroundJoyTurretController(), and operator=().

◆ ~DtGroundJoyTurretController()

virtual makVre::DtGroundJoyTurretController::~DtGroundJoyTurretController ( )
overridevirtual

Virtual destructor.

Cleans up resources used by the ground turret joystick controller component.

◆ DtGroundJoyTurretController() [2/3]

makVre::DtGroundJoyTurretController::DtGroundJoyTurretController ( )
private

Default constructor (not implemented)

Default constructor is private and not implemented to prevent creation of instances without proper initialization.

◆ DtGroundJoyTurretController() [3/3]

makVre::DtGroundJoyTurretController::DtGroundJoyTurretController ( const DtGroundJoyTurretController & orig)
private

Copy constructor (not implemented)

Copy constructor is private and not implemented to prevent copy construction.

References DtGroundJoyTurretController().

Member Function Documentation

◆ type()

virtual const char * makVre::DtGroundJoyTurretController::type ( ) const
overridevirtual

Gets the type identifier for this component.

Returns
String identifying the component type (DtGroundJoyTurretControllerType)

Implements the DtSimComponent::type() method to return the type identifier for this component.

◆ creator()

static DtSimComponent * makVre::DtGroundJoyTurretController::creator ( const DtString & name,
DtLocalObject * owner,
DtSimulationServices * simManager,
DtComponentDescriptor * desc = 0,
DtReaderWriterRegistry * parentRegistry = 0 )
static

Factory method to create a new instance of this component.

Parameters
nameThe name for the new component
ownerThe local object that will own this component
simManagerThe simulation services manager
descOptional component descriptor
parentRegistryOptional parent registry for reader/writer functionality
Returns
Pointer to the newly created component

Static factory method used by the component creation system to instantiate new instances of this component type.

◆ calcAndSetPortValues()

virtual void makVre::DtGroundJoyTurretController::calcAndSetPortValues ( const DtString & functionGroup,
const DtString & function,
double value,
bool repeat )
overrideprotectedvirtual

Processes joystick input and updates output ports.

Parameters
functionGroupThe function group identifier for the input
functionThe specific function identifier within the group
valueThe input value from the joystick
repeatFlag 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.

◆ joystickConnected()

virtual void makVre::DtGroundJoyTurretController::joystickConnected ( )
overrideprotectedvirtual

Handles joystick connection event.

Called when a joystick is connected to the system. Activates joystick control mode for this turret controller.

◆ joystickDisconnected()

virtual void makVre::DtGroundJoyTurretController::joystickDisconnected ( )
overrideprotectedvirtual

Handles joystick disconnection event.

Called when a joystick is disconnected from the system. Deactivates joystick control mode for this turret controller.

◆ operator=()

DtGroundJoyTurretController & makVre::DtGroundJoyTurretController::operator= ( const DtGroundJoyTurretController & orig)
private

Assignment operator (not implemented)

Returns
Reference to this object

Assignment operator is private and not implemented to prevent assignment.

References DtGroundJoyTurretController().


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