VR-Engage  2.2
Loading...
Searching...
No Matches
vreRlJoyControllerDescriptor.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*******************************************************************************/
5
6//! \file vreRlJoyControllerDescriptor.h
7//! \ingroup vreVrfRtdobjparam
8//! \brief Rotary-wing joystick controller descriptor for VREngage
9//!
10//! This file defines the DtVreRlJoyControllerDescriptor class, which describes the
11//! configuration parameters for a rotary-wing joystick controller in VREngage.
12//! It contains information used to create and configure DtVreRlJoyController instances.
13
14#pragma once
15
17
19
20namespace RlCgfVrf
21{
22//! \brief Type string for VREngage rotary-wing joystick controller descriptor
23//!
24//! Constant used to identify this descriptor type in the simulation system.
25const char TS_JoyControllerDesc[] = "rotorlib-cgf-vr-engage-joy-controller-descriptor";
26//! \brief Rotary-wing joystick controller descriptor for VREngage
27//!
28//! This class describes the configuration parameters for a rotary-wing joystick
29//! controller in VREngage. It extends the base rotary-wing joystick device controller
30//! descriptor with helicopter-specific parameters and functionality.
33{
34public:
35 //! \brief Constructor
36 //! \param name The name of the descriptor
37 //! \param parentRegistry Parent registry for reader/writer functionality
38 //!
39 //! Initializes a new rotary-wing joystick controller descriptor with default values.
40 DtVreRlJoyControllerDescriptor(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0);
41
42 //! \brief Copy constructor
43 //! \param orig The source descriptor to copy from
44 //! \param parentRegistry Parent registry for reader/writer functionality
45 //!
46 //! Creates a new descriptor as a copy of the provided original descriptor.
48 const DtVreRlJoyControllerDescriptor& orig, DtReaderWriterRegistry* parentRegistry = 0);
49
50 //! \brief Assignment operator
51 //! \param orig The source descriptor to copy from
52 //! \return Reference to this descriptor after assignment
53 //!
54 //! Assigns the contents of the provided descriptor to this descriptor.
56
57 //! \brief Creates a clone of this descriptor
58 //! \param parentRegistry Parent registry for reader/writer functionality
59 //! \return Pointer to a new descriptor that is a clone of this one
60 //!
61 //! Creates a new descriptor as a deep copy of this descriptor.
62 virtual DtComponentDescriptor* clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
63
64 //! \brief Virtual destructor
65 //!
66 //! Cleans up resources used by the descriptor.
68
69 //! \brief Gets the descriptor type
70 //! \return The type string for this descriptor
71 //!
72 //! Returns TS_JoyControllerDesc as the descriptor type identifier.
73 //! This is used to create the descriptor when reading from an MTL file.
74 virtual DtString type() const override;
75
76 //! \brief Creator function for this descriptor type
77 //! \return Pointer to a new descriptor of this type
78 //!
79 //! Static factory function used for descriptor creation through the
80 //! DtSimComponentDescriptorFactory system.
81 static DtComponentDescriptor* creator();
82};
83} // namespace RlCgfVrf
virtual DtString type() const override
Gets the descriptor type.
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=0) const override
Creates a clone of this descriptor.
DtVreRlJoyControllerDescriptor & operator=(const DtVreRlJoyControllerDescriptor &orig)
Assignment operator.
DtVreRlJoyControllerDescriptor(const DtVreRlJoyControllerDescriptor &orig, DtReaderWriterRegistry *parentRegistry=0)
Copy constructor.
virtual ~DtVreRlJoyControllerDescriptor() override
Virtual destructor.
static DtComponentDescriptor * creator()
Creator function for this descriptor type.
DtVreRlJoyControllerDescriptor(const DtString &name, DtReaderWriterRegistry *parentRegistry=0)
Constructor.
Rotary wing joystick controller descriptor for VREngage.
Definition rotaryWingJoyDeviceControllerDescriptor.h:34
Export macros for the VREngage RTD object parameter library.
#define RTD_VRF_BACKEND_OBJPARAM_DLL
Platform-specific DLL export/import declaration.
Definition export.h:27
Definition vreRlActuator.h:40
const char TS_JoyControllerDesc[]
Type string for VREngage rotary-wing joystick controller descriptor.
Definition vreRlJoyControllerDescriptor.h:25
Rotary wing joystick controller descriptor for VREngage.