20 #include <vlpi/articulatedPart.h>
28 class DtArticulatedPartStateComponent;
29 class DtArticulatedPartStateRepository;
71 virtual void postGetSelf()
override;
85 virtual DtArtPartType parentPartType()
const;
110 MergeRule rule = AllSpecifiedValues);
114 virtual DtArtPartType partType()
const;
115 virtual void setPartType(DtArtPartType type);
120 virtual DtVector attachPointWithRespectToObject()
const;
124 virtual DtVector bodyPosition()
const;
128 virtual DtVector localPosition()
const;
132 virtual DtVector endPointlocalPosition()
const;
136 virtual DtVector worldPosition()
const;
139 virtual DtTaitBryan bodyOrientation()
const;
142 virtual DtDcm localOrientationMatrix()
const;
161 DtReal azimuthNeutralOffset()
const;
162 void setAzimuthNeutralOffset(DtReal
offset,
bool isSpecified =
true);
163 bool isAzimuthNeutralOffsetSpecified()
const;
168 DtReal elevationNeutralOffset()
const;
169 void setElevationNeutralOffset(DtReal
offset,
bool isSpecified =
true);
170 bool isElevationNeutralOffsetSpecified()
const;
174 virtual void addParameterType(DtArtParamType paramType);
177 virtual void clearParameterTypes();
180 virtual bool hasParameterType(DtArtParamType paramType)
const;
189 virtual void setAllValuesUnspecified();
197 virtual void prePutSelf()
override;
204 virtual void setPublishOnLegionNetwork(
bool publish,
bool isWritable);
209 return myPublishOnLegionNetwork;
216 virtual void updateDataStorage(
const std::vector<DtArticulatedPart::ParameterMetric>& parameterMetrics);
221 virtual void setAttachPoint(
const DtVector& attachPoint,
bool isSpecified =
true)
override;
222 virtual void setEndPoint(
const DtVector& loc,
bool isSpecified =
true)
override;
223 virtual void setPosition(
double val,
bool isSpecified =
true)
override;
224 virtual void setPositionRate(
double val,
bool isSpecified =
true)
override;
225 virtual void setMaxPositionRate(
double val,
bool isSpecified =
true)
override;
226 virtual void setExtension(
double val,
bool isSpecified =
true)
override;
227 virtual void setExtensionRate(
double val,
bool isSpecified =
true)
override;
228 virtual void setMaxExtensionRate(
double val,
bool isSpecified =
true)
override;
229 virtual void setTranslation(
const DtVector& val,
bool isSpecified =
true)
override;
230 virtual void setMinTranslation(
const DtVector& val,
bool isSpecified =
true)
override;
231 virtual void setMaxTranslation(
const DtVector& val,
bool isSpecified =
true)
override;
232 virtual void setTranslationRate(
const DtVector& val,
bool isSpecified =
true)
override;
233 virtual void setMaxTranslationRate(
const DtVector& val,
bool isSpecified =
true)
override;
234 virtual void setAzimuth(
double angle,
bool isSpecified =
true)
override;
235 virtual void setMinAzimuth(
double angle,
bool isSpecified =
true)
override;
236 virtual void setMaxAzimuth(
double angle,
bool isSpecified =
true)
override;
237 virtual void setAzimuthRate(
double rate,
bool isSpecified =
true)
override;
238 virtual void setMaxAzimuthRate(
double rate,
bool isSpecified =
true)
override;
239 virtual void setElevation(
double angle,
bool isSpecified =
true)
override;
240 virtual void setMinElevation(
double angle,
bool isSpecified =
true)
override;
241 virtual void setMaxElevation(
double angle,
bool isSpecified =
true)
override;
242 virtual void setElevationRate(
double rate,
bool isSpecified =
true)
override;
243 virtual void setMaxElevationRate(
double rate,
bool isSpecified =
true)
override;
244 virtual void setRotation(
double angle,
bool isSpecified =
true)
override;
245 virtual void setMinRotation(
double angle,
bool isSpecified =
true)
override;
246 virtual void setMaxRotation(
double angle,
bool isSpecified =
true)
override;
247 virtual void setRotationRate(
double rate,
bool isSpecified =
true)
override;
248 virtual void setMaxRotationRate(
double rate,
bool isSpecified =
true)
override;
254 virtual void addPartDeletedCallback(
260 virtual void removePartDeletedCallback(
265 virtual void partUpdated();
269 void preventConfigValueReadAndWrite();
276 virtual void setParentsForAllParts();
280 virtual DtTaitBryan parentLocalOrientation()
const;
284 virtual void destroyLegionParts();
DtArtPartMap(const DtRwTemplatedMapPtr &orig, DtReaderWriterRegistry *parentRegistry=nullptr)
Definition: articulatedPartStateRepository.h:65
Definition: rwTemplatedList.h:213
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
LegionParameterMetrics myLegionParameterMetrics
Legion HLA instance handles for each parameter metric published by this part.
Definition: articulatedPartStateRepository.h:319
DtArtPartMap(const DtString &name, const DtRwTemplatedMapPtr &orig, DtReaderWriterRegistry *parentRegistry=nullptr)
Definition: articulatedPartStateRepository.h:59
DtArticulatedPartStateComponent * myParentComponent
Cached pointer to the parent entity's articulated part state component.
Definition: articulatedPartStateRepository.h:299
DtRwTemplatedIntList myParameterTypes
List of parameter types (e.g., position, azimuth, elevation) supported by this part.
Definition: articulatedPartStateRepository.h:309
bool publishOnLegionNetwork() const
Returns true if this part publishes state to the Legion HLA network.
Definition: articulatedPartStateRepository.h:207
In order to be a well defined state component, you must:
Definition: articulatedPartStateComponent.h:89
DtArtPartMap(const DtSymbolString &name, const DtRwTemplatedMapPtr &orig, DtReaderWriterRegistry *parentRegistry=nullptr)
Definition: articulatedPartStateRepository.h:62
DtArtPartMap(const DtString &name, DtReaderWriterRegistry *parentRegistry=nullptr, const DtString &keyName="key", const DtString &valueName="value", const DtString &elementName="item")
Definition: articulatedPartStateRepository.h:51
DtRwReal myAzimuthNeutralOffset
Azimuth neutral offset in radians; the azimuth is measured relative to this value.
Definition: articulatedPartStateRepository.h:304
Definition: readerWriterRegistry.h:39
unsigned long long UInt64
64-bit unsigned integer type.
Definition: stateDataTypes.h:19
virtual ~DtArtPartMap() override
Definition: articulatedPartStateRepository.h:69
UInt64 myArticulatedPartInstanceHandle
Legion HLA instance handle for this articulated part's network object.
Definition: articulatedPartStateRepository.h:315
DtArtPartMap()
Definition: articulatedPartStateRepository.h:50
DtStateData * myParentObject
The entity state data object that this part is ultimately attached to.
Definition: articulatedPartStateRepository.h:297
Definition: coordSystem.h:54
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:513
DtRwReal myElevationNeutralOffset
Elevation neutral offset in radians; the elevation is measured relative to this value.
Definition: articulatedPartStateRepository.h:306
DT_DLL_vrfutil double angle(double vec1[3], double vec2[3])
Definition: rwTemplatedMap.h:97
DtArticulatedPartStateRepositoryDeletedCallbackList myCallbackList
Callbacks invoked just before this part is destroyed.
Definition: articulatedPartStateRepository.h:321
DtRwInt myPartType
The DIS/RPR articulated part type identifier for this part.
Definition: articulatedPartStateRepository.h:291
Description: Readable, Writable int.
Definition: rwInt.h:25
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtArtPartMap(const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=nullptr, const DtString &keyName="key", const DtString &valueName="value", const DtString &elementName="item")
Definition: articulatedPartStateRepository.h:55
DtArtPartMap myParts
Map of child articulated part repositories attached to this part, keyed by part type.
Definition: articulatedPartStateRepository.h:294
const Coordinate_System * myCoordinateSystem
Coordinate system used for local and world position/orientation calculations.
Definition: articulatedPartStateRepository.h:288
A typed map of DtArticulatedPartStateRepository objects keyed by DIS/RPR part type. Used to store and access child parts attached to an entity or another articulated part.
Definition: articulatedPartStateRepository.h:46
The DtArticulatedPartStateRepository class is used to represent articulated parts for an entity...
Definition: articulatedPartStateRepository.h:40
#define DT_DLL_vrfStateData
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfStateDataDefines.h:29
bool myPublishOnLegionNetwork
True if this part publishes its state to the Legion HLA network.
Definition: articulatedPartStateRepository.h:311
A readable, writable type that holds an articulated part state.
Definition: rwArtPartState.h:26
void(* DtCallbackFunctionType)(DtArticulatedPartStateRepository *, void *)
The function signature of the callback function.
Definition: noArgumentCallbackList.h:94
std::map< int, UInt64 > LegionParameterMetrics
Maps parameter metric indices to their corresponding Legion HLA instance handles. ...
Definition: articulatedPartStateRepository.h:317
voidpf uLong offset
Definition: ioapi.h:42
DtArticulatedPartStateRepository * myParentPart
The parent articulated part this part is attached to, or null if attached directly to the entity...
Definition: articulatedPartStateRepository.h:301
bool myIsWritable
True if this part's Legion HLA instance is locally owned and writable.
Definition: articulatedPartStateRepository.h:313
DtArticulatedPartStateRepository::DtArtPartMap DtArtPartMap
Definition: articulatedPartStateRepository.h:324