|
VR-Engage
2.2
|
This class extends the base actuator component descriptor with additional parameters specific to stabilized articulated parts in VREngage. It provides configuration for rotation limits, slew rates, stabilization settings, and player control roles.
Stabilized articulated part actuator descriptor for VREngage
This class extends the base actuator component descriptor with additional parameters specific to stabilized articulated parts in VREngage. It provides configuration for rotation limits, slew rates, stabilization settings, and player control roles.
#include <artPartActuatorDescriptor.h>
Public Member Functions | |
| DtVreStabilizedArtPartActuatorDescriptor (const DtString &componentName, DtReaderWriterRegistry *parentRegistry=0) | |
| DtVreStabilizedArtPartActuatorDescriptor (const DtVreStabilizedArtPartActuatorDescriptor &orig, DtReaderWriterRegistry *parentRegistry=0) | |
| DtVreStabilizedArtPartActuatorDescriptor & | operator= (const DtVreStabilizedArtPartActuatorDescriptor &orig) |
| virtual | ~DtVreStabilizedArtPartActuatorDescriptor () override |
| virtual DtString | type () const override |
| virtual DtComponentDescriptor * | clone (DtReaderWriterRegistry *parentRegistry=0) const override |
| virtual DtU16 | axis () const |
| virtual DtReal | maxSlewRate () const |
| virtual void | setMaxSlewRate (DtReal maxSlewRate) |
| virtual bool | hasLimits () const |
| virtual void | setHasLimits (bool hasLimits) |
| virtual DtReal | upperLimit () const |
| virtual DtReal | lowerLimit () const |
| virtual bool | invertSlew () const |
| virtual void | setInvertSlew (bool invert) |
| virtual bool | stabilizedByDefault () const |
| virtual void | setStabilizedByDefault (bool onOff) |
| virtual DtString | playerControlRole () const |
| virtual void | setPlayerControlRole (DtString role) |
Static Public Member Functions | |
| static DtComponentDescriptor * | creator () |
Protected Member Functions | |
| DtVreStabilizedArtPartActuatorDescriptor () | |
Protected Attributes | |
Configuration Parameters | |
These parameters are available for setting in the OPD files. The values are copied to the PSR so that the articulated part controller can access them during simulation. | |
| DtRwInt | myAxis |
| DtRwReal | myMaxSlewRate |
| DtRwBoolean | myHasLimits |
| DtRwReal | myLowerLimit |
| DtRwReal | myUpperLimit |
| DtRwBoolean | myInvertSlew |
| DtRwBoolean | myStabilizedByDefault |
| DtRwString | myPlayerControlRole |
| DtVreStabilizedArtPartActuatorDescriptor::DtVreStabilizedArtPartActuatorDescriptor | ( | 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 stabilized articulated part actuator descriptor with the specified name.
Referenced by DtVreStabilizedArtPartActuatorDescriptor(), and operator=().
| DtVreStabilizedArtPartActuatorDescriptor::DtVreStabilizedArtPartActuatorDescriptor | ( | const DtVreStabilizedArtPartActuatorDescriptor & | orig, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Copy constructor.
| orig | The source descriptor to copy from |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new stabilized articulated part actuator descriptor as a copy of the provided original.
References DtVreStabilizedArtPartActuatorDescriptor().
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the descriptor.
|
protected |
Default constructor (not implemented)
Default constructor is protected and not implemented to prevent creation of instances without proper initialization.
| DtVreStabilizedArtPartActuatorDescriptor & DtVreStabilizedArtPartActuatorDescriptor::operator= | ( | const DtVreStabilizedArtPartActuatorDescriptor & | orig | ) |
Assignment operator.
| orig | The source descriptor to copy from |
Assigns the contents of the provided descriptor to this one.
References DtVreStabilizedArtPartActuatorDescriptor().
|
overridevirtual |
Gets the type identifier for this descriptor.
Returns a unique type identifier string for this descriptor type.
|
overridevirtual |
Creates a clone of this descriptor.
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new stabilized articulated part actuator descriptor as a deep copy of this one.
|
virtual |
Gets the rotation axis for this actuator.
Returns the axis of rotation that this actuator controls.
|
virtual |
Gets the maximum slew rate.
Returns the maximum rate at which the articulated part can rotate.
Referenced by setMaxSlewRate().
|
virtual |
Sets the maximum slew rate.
| maxSlewRate | The maximum slew rate in radians per second |
Sets the maximum rate at which the articulated part can rotate.
References maxSlewRate().
|
virtual |
Checks if the actuator has rotation limits.
Returns whether the articulated part has limited rotation or can rotate freely.
Referenced by setHasLimits().
|
virtual |
Sets whether the actuator has rotation limits.
| hasLimits | True to enable rotation limits, false for free rotation |
Sets whether the articulated part has limited rotation or can rotate freely.
References hasLimits().
|
virtual |
Gets the upper rotation limit.
Returns the maximum clockwise rotation limit for this articulated part.
|
virtual |
Gets the lower rotation limit.
Returns the maximum counter-clockwise rotation limit for this articulated part.
|
virtual |
Checks if slew direction is inverted.
Returns whether the sense of input relative to slew direction is inverted.
|
virtual |
Sets whether slew direction is inverted.
| invert | True to invert slew direction, false otherwise |
Sets whether the sense of input relative to slew direction is inverted.
|
virtual |
Checks if stabilization is enabled by default.
Returns whether the articulated part is stabilized when initialized.
|
virtual |
Sets whether stabilization is enabled by default.
| onOff | True to enable stabilization by default, false otherwise |
Sets whether the articulated part is stabilized when initialized.
|
virtual |
Gets the player control role.
Returns the role string required for player control of this actuator.
|
virtual |
Sets the player control role.
| role | String identifying the player role required for control |
Sets the role string required for player control of this actuator.
|
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.
|
protected |
The rotation axis controlled by this actuator.
Defines which axis of rotation this actuator controls:
Default value: 0
|
protected |
Maximum rotation rate for the articulated part.
Maximum rate at which the articulated part can rotate. Units: radians/second
Default value: 0.0
|
protected |
Flag indicating whether rotation limits are enabled.
Indicates whether the articulated part has rotation limits or can rotate freely.
Default value: False
|
protected |
Lower (counter-clockwise) rotation limit.
The lower limit (maximum counter-clockwise rotation) of the articulated part. Zero is taken to be forward (1, 0, 0), and positive angles go clockwise when viewed from above (because the entity z-axis points down).
If the part can rotate 360 degrees, both lower and upper limits should be set to 0.0. If the part is fixed, this lower limit is taken to be the fixed position.
Units: radians Default value: 0.0
|
protected |
Upper (clockwise) rotation limit.
The upper limit (maximum clockwise rotation) of the articulated part. Zero is taken to be forward, and this parameter is ignored if the part is fixed.
If the part can rotate 360 degrees, both lower and upper limits should be set to 0.0.
Units: radians Default value: 0.0
|
protected |
Flag to invert slew direction.
When set to true, inverts the sense of input relative to slew direction.
Default value: False
|
protected |
Flag to enable stabilization by default.
Defines the initial state of articulated part stabilization. When stabilized, the part maintains its orientation in world space despite movement of the parent entity.
Default value: False
|
protected |
Player role required for control of this actuator.
Specifies the role string required for player control of this actuator. This allows for role-based access control to different articulated parts on a multi-crew entity.
Default value: "Gunner"