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