VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
MyEntityStateRep Class Reference

Because this example adds a concept that did not already exist in VR-Link's DtEntityStateRepository class, we create this subclass of DtEntityStateRepository that adds the concept of mass. More...

+ Inheritance diagram for MyEntityStateRep:
+ Collaboration diagram for MyEntityStateRep:

Public Member Functions

virtual void setMass (float mass)
 Set the mass.
virtual float mass () const
 Return the mass.
virtual void printData () const
 Virtual function override: print the state rep's data.
virtual DtStateRepositoryclone (bool copy=false) const
 Copy shallow (false) or deep (true).
- Public Member Functions inherited from DtEntityStateRepository
 DtEntityStateRepository ()
 Default CTOR.
 DtEntityStateRepository (const DtEntityStateRepository &orig)
 Copy CTOR.
virtual ~DtEntityStateRepository ()
 Virtual DTOR.
DtEntityStateRepositoryoperator= (const DtEntityStateRepository &orig)
 Assignment operator.
virtual void setForceId (DtForceType force)
 Set the force type.
virtual DtForceType forceId () const
 Get the force type.
virtual void setGuise (const DtEntityType &type)
 Set the alternate entity type or guise.
virtual const DtEntityTypeguise () const
 Get the alternate entity type or guise.
virtual void setMarkingCharSet (int charSet)
 Set the character set used for the marking.
virtual int markingCharSet () const
 The character set used for the marking.
virtual void setMarkingText (const char *text)
 Set the marking text attribute.
virtual const char * markingText () const
 Get the marking text attribute.
virtual void setInfraRedSigRepIndex (DtU16 value)
 Set infra-red signature representation index.
virtual DtU16 infraRedSigRepIndex () const
 Get infra-red signature representation index.
virtual void setAcousticSigRepIndex (DtU16 value)
 Set acoustic signature representation index.
virtual DtU16 acousticSigRepIndex () const
 Get acoustic signature representation index.
virtual void setRadarSigRepIndex (DtU16 value)
 Set radar signature representation index.
virtual DtU16 radarSigRepIndex () const
 Get radar signature representation index.
virtual void setCapabilities (DtU32 cap)
 Set the capabilities field.
virtual DtU32 capabilities () const
 Get the capabilities field.
virtual void setMeasuredSpeed (DtU16 value)
 Set measured speed.
virtual DtU16 measuredSpeed () const
 Get measured speed.
void setNumPropulsionSystems (DtU16 value)
 Set number of propulsion systems (Non-virtual - Used in CTOR).
DtU16 numPropulsionSystems () const
 Get number of propulsion systems (Non-virtual - Used in CTOR).
void setNumNozzleSystems (DtU16 value)
 Set number of nozzle systems (Non-virtual - Used in CTOR).
DtU16 numNozzleSystems () const
 Get number of nozzle systems (Non-virtual - Used in CTOR).
bool setPropulsionSystem (int index, const DtPropulsionSystem &record)
 Set a propulsion system data record (Non-virtual - Used in CTOR).
bool getPropulsionSystem (int index, DtPropulsionSystem &record) const
 Get a propulsion system data record (Non-virtual - Used in CTOR).
bool setNozzleSystem (int index, const DtVectoringNozzleSystem &record)
 Set a vectoring nozzle system data record (Non-virtual - Used in CTOR).
bool getNozzleSystem (int index, DtVectoringNozzleSystem &record) const
 Get a vectoring nozzle system data record (Non-virtual - Used in CTOR).
virtual void setClock (DtClock *clock)
 Overrides DtBaseEntityStateRepository's setClock method.
virtual void printDataToStream (std::ostream &stream) const
 prints the state data to the specified stream.
virtual void setAppearance (DtU32 app)
 Set the appearance bit field, use with care.
virtual DtU32 appearance () const
 Return the appearance bit field, use this with care.
virtual void setAppearanceAttribute (const DtAppearAttribute attr, const DtAppearAttrVal val)
 Set an appearance attribute.
virtual DtAppearAttrVal appearanceAttribute (const DtAppearAttribute attr) const
 Get an appearance attribute.
virtual void setFrozen (bool onOff)
 Set the frozen state of the entity.
virtual bool frozen () const
 Get the frozen state of the entity.
virtual void setPowerPlantOn (bool onOff)
 Set whether entity's power plant is on or not.
virtual bool powerPlantOn () const
 Get whether entity's power plant is on or not.
virtual void setDamageState (DtDamageState s)
 Set the damage state.
virtual DtDamageState damageState () const
 Get the damage state.
virtual void setEngineSmokeOn (bool onOff)
 Set whether engine smoke is on or not.
virtual bool engineSmokeOn () const
 Get whether engine smoke is on or not.
virtual void setFlamesPresent (bool onOff)
 Set whether flames are present or not.
virtual bool flamesPresent () const
 Get whether flames are present or not.
virtual void setHasFuelSupplyCap (bool onOff)
 Set whether entity has fuel supplying capability.
virtual bool hasFuelSupplyCap () const
 Get whether entity has fuel supplying capability.
virtual void setHasRecoveryCap (bool onOff)
 Set whether entity has recovery capability.
virtual bool hasRecoveryCap () const
 Get whether entity has recovery capability.
virtual void setHasRepairCap (bool onOff)
 Set whether entity has repair capability.
virtual bool hasRepairCap () const
 Get whether entity has repair capability.
virtual void setHatchState (DtHatchState s)
 Set the entity's hatch state.
virtual DtHatchState hatchState () const
 Get the entity's hatch state.
virtual void setImmobilized (bool onOff)
 Set whether the entity is immobilized or not.
virtual bool immobilized () const
 Get whether the entity is immobilized or not.
virtual void setLifeformState (DtLifeformState s)
 Set entity life form state.
virtual DtLifeformState lifeformState () const
 Get entity life form state.
virtual void setLightState (DtLightType s, bool onOff)
 Set light state of entity.
virtual bool lightState (DtLightType s) const
 Get light state of entity.
virtual void setLightState (DtLightState s)
 Set light state of entity.
virtual DtLightState lightState () const
 Get light state of entity.
virtual void setDensity (DtDensityType dens)
 Set density state of entity (Environment entities).
virtual DtDensityType density () const
 Get density state of entity (Environment entities).
virtual void setRampDeployed (bool onOff)
 Set whether entity has ramp deployed or not.
virtual bool rampDeployed () const
 Get whether entity has ramp deployed or not.
virtual void setSmokePlumePresent (bool onOff)
 Set whether a smoke plume is present or not.
virtual bool smokePlumePresent () const
 Get whether a smoke plume is present or not.
virtual void setTentDeployed (bool onOff)
 Set whether a tent is deployed or not.
virtual bool tentDeployed () const
 Get whether a tent is deployed or not.
virtual void setTrailState (DtTrailState s)
 Set trailing effect state.
virtual DtTrailState trailState () const
 Get trailing effect state.
virtual void setCamouflageType (DtCamouflageType type)
 Set camouflage type.
virtual DtCamouflageType camouflageType () const
 Get camouflage type.
virtual void setFirePowerDisabled (bool onOff)
 Set whether entity is fire power disabled or not.
virtual bool firePowerDisabled () const
 Get whether entity is fire power disabled or not.
virtual void setIsConcealed (bool onOff)
 Set whether entity is concealed or not.
virtual bool isConcealed () const
 Get whether entity is concealed or not.
virtual void setAfterburnerOn (bool onOff)
 Set whether entity has after burner on or not.
virtual bool afterburnerOn () const
 Get whether entity has after burner on or not.
virtual void setHasAmmunitionSupplyCap (bool onOff)
 Set whether entity has ammunition supply capability or not.
virtual bool hasAmmunitionSupplyCap () const
 Get whether entity has ammunition supply capability or not.
virtual void setLauncherRaised (bool onOff)
 Set whether entity has launcher raised or not.
virtual bool launcherRaised () const
 Get whether entity has launcher raised or not.
virtual void setLauncherFlashPresent (bool onOff)
 Set whether launcher flash is present or not.
virtual bool launcherFlashPresent () const
 Get whether launcher flash is present or not.
virtual void setPrimaryWeaponState (DtWeaponState s)
 Set primary weapon deployment state.
virtual DtWeaponState primaryWeaponState () const
 Get primary weapon deployment state.
virtual void setSecondaryWeaponState (DtWeaponState s)
 Set secondary weapon deployment state.
virtual DtWeaponState secondaryWeaponState () const
 Get secondary weapon deployment state.
virtual void setComplianceState (DtComplianceState s)
 Set life form compliance state.
virtual DtComplianceState complianceState () const
 Get life form compliance state.
virtual void setAntennaRaised (bool upDown)
 Set Antenna Raised status.
virtual bool antennaRaised () const
 Get Antenna Raised status.
virtual void setMissionKill (bool yesNo)
 Set Mission Kill status.
virtual bool missionKill () const
 Get Mission Kill status.
virtual void setInternalHeatSource (bool onOff)
 Set internal Heat Source status.
virtual bool internalHeatSource () const
 Get internal Heat Source status.
virtual void setMaskedCloaked (bool onOff)
 Set masked/cloaked appearance bit (introduced in DIS enums 2005 doc).
virtual bool maskedCloaked () const
 Get masked/cloaked appearance bit (introduced in DIS enums 2005 doc).
virtual const
DtArticulatedPartCollection
artPartList () const
virtual
DtArticulatedPartCollection
artPartList ()
virtual const
DtAttachedPartCollection
attPartList () const
virtual DtAttachedPartCollectionattPartList ()
virtual void setEntityId (const DtEntityIdentifier &id)
 Set the entity's identifier.
virtual void setDiGuyStateRepository (DtDIGuyObjectStateRepository *diGuyStateRep)
 Set the DIGuy state repository containing the DIGuy attribute extensions.
virtual
DtDIGuyObjectStateRepository
diGuyStateRepository ()
 Get the DIGuy state repository containing the DIGuy attribute extensions.
virtual void enableDiGuyObject (bool enable=true)
 Enable the creation and use of the DIGuy object.
virtual bool isEnabledDiGuyObject ()
 Signals if we will be using the DIGuy object.
virtual void setDiGuyAppearance (const DtString &val)
 Set the DIGuy appearance (body appearance in DI-Guy 13 or later).
virtual const DtStringdiGuyAppearance () const
 Get the DIGuy appearance (body appearance in DI-Guy 13 or later).
virtual void setDiGuyArc (const std::vector< char > &val)
 Set the DIGuy appearance (not supported in DI-Guy 13 and later).
virtual const std::vector< char > & diGuyArc () const
 Get the DIGuy appearance (not supported in DI-Guy 13 and later).
virtual void setDiGuyParent (const DtEntityIdentifier &val)
 Set the DIGuy parent (not supported in DI-Guy 13 and later).
virtual const DtEntityIdentifierdiGuyParent () const
 Get the DIGuy parent (not supported in DI-Guy 13 and later).
virtual void setDiGuyType (const DtString &newDiGuyType, const DtString &newDiGuyAppearance)
 Set/Get the DIGuy type.
virtual void setDiGuyType (const DtString &val)
 Set the entity's identifier.
virtual const DtStringdiGuyType () const
 Get the DIGuy type.
virtual void setDiGuyBodyAppearance (const DtString &val)
 Set the DIGuy body appearance (only supported in DI-Guy 13 and later).
virtual const DtStringdiGuyBodyAppearance () const
 Get the DIGuy body appearance (only supported in DI-Guy 13 and later).
virtual void setDiGuyBodyWeight (double val)
 Set the DIGuy body weight.
virtual double diGuyBodyWeight () const
 Get the DIGuy body weight.
virtual void setDiGuyHeadAppearance (const DtString &val)
 Set the DIGuy head appearance (only supported in DI-Guy 13 and later).
virtual const DtStringdiGuyHeadAppearance () const
 Get the DIGuy head appearance (only supported in DI-Guy 13 and later).
virtual void setDiGuyItemAppearance (const DtString &val)
 Set the DIGuy item appearance (only supported in DI-Guy 13 and later).
virtual const DtStringdiGuyItemAppearance () const
 Get the DIGuy item appearance (only supported in DI-Guy 13 and later).
virtual bool setDiGuyAccessoryAppearance (unsigned int index, const DtString &val)
 Set the DIGuy accessory appearance (only supported in DI-Guy 13 and later).
virtual const DtStringdiGuyAccessoryAppearance (unsigned int index) const
 Get the DIGuy accessory appearance (only supported in DI-Guy 13 and later).
virtual void setDiGuyAccessoryAppearanceCount (unsigned int index)
 Set the DIGuy accessory appearance count (only supported in DI-Guy 13 and later).
virtual unsigned int diGuyAccessoryAppearanceCount () const
 Get the DIGuy accessory appearance count (only supported in DI-Guy 13 and later).
virtual void setDiGuyAction (const DtString &val)
 Set the DIGuy action.
virtual void setDiGuyAction (const DtString &val, bool paused, double speed=0.0, bool useActionPositioning=false, const DtVector &offset=DtVector(0, 0, 0))
 Set the DIGuy action, paused state, and speed with optional offset and useActionPositioning flag.
virtual const DtStringdiGuyAction () const
 Get the DIGuy action.
virtual const DtStringdiGuyAction (bool &paused) const
 Get the DIGuy action and paused status.
virtual void setDiGuyActionPaused (bool paused)
 Set DIGuy action paused.
virtual bool isDiGuyActionPaused () const
 Get DIGuy action paused.
virtual void setDiGuyActionSpeed (double speed)
 Set DIGuy action speed.
virtual double diGuyActionSpeed () const
 Get DIGuy action speed.
virtual void setDiGuyVisible (bool visibile)
 Set DIGuy visible status (only supported in DI-Guy 13 and later).
virtual bool isDiGuyVisible () const
 Get DIGuy visible status (only supported in DI-Guy 13 and later).
virtual void setDiGuyCharacterScale (const DtVector &scale)
 Set DIGuy character scale (only supported in DI-Guy 13 and later).
virtual const DtVectordiGuyCharacterScale () const
 Get DIGuy character scale (only supported in DI-Guy 13 and later).
virtual void addDiGuyShapeVariation (unsigned int linkIndex, unsigned int shapeIndex, const DtDiGuyPixelData &pixelData)
virtual void removeDiGuyShapeVariation (unsigned int linkIndex, unsigned int shapeIndex)
virtual const DtDiGuyPixelDatadiGuyShapeVariation (unsigned int linkIndex, unsigned int shapeIndex, bool &dataIsValid) const
virtual bool getDiGuyShapeVariation (unsigned int linkIndex, unsigned int shapeIndex, DtDiGuyPixelData &pixelData) const
virtual void setDiGuyShapeVariations (const DtDiGuyLinkShapeMap &shapeVariations)
virtual const DtDiGuyLinkShapeMapdiGuyShapeVariations () const
virtual unsigned int diGuyRank () const
virtual void setDiGuyRank (unsigned int val)
virtual unsigned int diGuyUnit () const
virtual void setDiGuyUnit (unsigned int val)
virtual unsigned int diGuyPersonalUnit () const
virtual void setDiGuyPersonalUnit (unsigned int val)
virtual const DtStringdiGuyName () const
virtual void setDiGuyName (DtString val)
- Public Member Functions inherited from DtBaseEntityStateRepository
 DtBaseEntityStateRepository ()
 default constructor
virtual ~DtBaseEntityStateRepository ()
 destructor
 DtBaseEntityStateRepository (const DtBaseEntityStateRepository &orig)
 copy constructor
DtBaseEntityStateRepositoryoperator= (const DtBaseEntityStateRepository &orig)
 assignment operator
void setTimeStampType (DtTimeStampType type)
 Set/Get flag indicating whether we're using absolute timestamps for dead reckoning.
DtTimeStampType timeStampType () const
virtual void setHlaObjectManager (DtHlaObjectManager *mgr)
 Set the HLA/DIS object manager.
virtual void setAmAsSeenByRemote (bool val)
 Mark this state repository as an AsSeenByRemote copy.
virtual const DtDcmbodyToGeoc (DtTime aTime) const
 Get the body to geocentric coordinate matrix.
virtual const DtDcmbodyToGeoc () const
 Get the body to geocentric coordinate matrix.
virtual const DtDcmrelativeBodyToHost (DtTime aTime) const
 Get the body to host DCM.
virtual const DtDcmrelativeBodyToHost () const
 Get the body to host DCM.
virtual const DtEntityIdentifierentityId () const
 The entity's identifier.
virtual void setEntityType (const DtEntityType &type)
 Set the entity type.
virtual const DtEntityTypeentityType () const
 The entity type.
virtual void setFederateId (const DtFederateId &id)
 Set the federate ID (part of entity ID).
virtual const DtFederateIdfederateId () const
 The federate ID (part of entity ID).
virtual void useDeadReckoner (DtDeadReckoner *dr)
 Tells the DtBaseEntity to use dr as its DtApproximator, and to notify it when DR algorithm changes.
virtual void useRelativeDeadReckoner (DtDeadReckoner *dr)
 Tells the DtBaseEntity to use dr as its DtApproximator, and to notify it when DR algorithm changes.
virtual void useDeadReckoner (bool yesNo=true)
 Create and use a new (private) dead-reckoner as our approximator.
virtual void useRelativeDeadReckoner (bool yesNo=true)
 Create and use a new (private) dead-reckoner as our approximator.
virtual DtDeadReckonerusingDeadReckoner ()
 If the ESR is using a dead reckoner, returns it. Else returns NULL.
virtual DtDeadReckonerusingRelativeDeadReckoner ()
 If the ESR is using a dead reckoner, returns it. Else returns NULL.
virtual void useSmoother (DtSmoother *sm)
 Tells the ESR to use sm as its approximator, and to notify it when DR algorithm changes.
virtual void useRelativeSmoother (DtSmoother *sm)
 Tells the ESR to use sm as its approximator, and to notify it when DR algorithm changes.
virtual void useSmoother (bool yesNo=true)
 Create and use a new (private) smoother as our approximator.
virtual void useRelativeSmoother (bool yesNo=true)
 Create and use a new (private) smoother as our approximator.
virtual DtSmootherusingSmoother ()
 If the ESR is using a smoother, returns it. Else returns NULL.
virtual DtSmootherusingRelativeSmoother ()
 If the ESR is using a smoother, returns it. Else returns NULL.
virtual DtThresholderthresholder ()
 Returns the SR's thresholder, which contains thresholds needed for encoding.
virtual const DtThresholderthresholder () const
 Returns a const reference the SR's thresholder, which contains thresholds needed for encoding.
virtual DtClockclock () const
 The clock being used for dead reckoning calculations.
virtual void setTimeForSets (DtTime time)
virtual DtTime timeForSets () const
void computeSpatialFromRelativeSpatial ()
 If this unit has a host, update the esr to reflect the current state of the host.
DtBaseEntityStateRepositoryhostEsr () const
 Returns null if there isn't a host.
virtual void setAll (const DtVector &loc, const DtVector32 &vel, const DtTaitBryan &ori, const DtVector32 &acc, const DtVector32 &rotVel, DtTime t)
 Coherently set all DR parameters, thus avoiding DR computations associated with a partial set.
virtual void setAll (const DtVector &loc, const DtVector32 &vel, const DtTaitBryan &ori, const DtVector32 &acc, const DtVector32 &rotVel)
 Coherently set all DR parameters, thus avoiding DR computations associated with a partial set.
virtual void setLocation (const DtVector &location, DtTime aTime)
 Set the location of the center of mass in geocentric world coordinates at aTime.
virtual void setLocation (const DtVector &location)
 Set the location of the center of mass in geocentric world coordinates at current simulation time, as set in clock()->simTime().
virtual const DtVectorlocation (DtTime aTime) const
 The location in geocentric world coordinates at aTime.
virtual const DtVectorlocation () const
 The location in geocentric world coordinates at the current simulation time, as set in clock()->simTime().
virtual const DtVectorlastSetLocation () const
 Return the value last passed to setLocation, regardless of whether we have an approximator.
virtual void setVelocity (const DtVector32 &Velocity, DtTime aTime)
 Set the velocity in meters per second at aTime.
virtual void setVelocity (const DtVector32 &Velocity)
 The velocity in meters per second at the current simulation time, as set in clock()->simTime().
virtual const DtVector32velocity (DtTime aTime) const
 The velocity in meters per second at aTime.
virtual const DtVector32velocity () const
 The velocity at the current simulation time, as set in clock()->simTime().
virtual const DtVector32lastSetVelocity () const
 Return the value last passed to setVelocity, regardless of whether we have an approximator.
virtual void setAcceleration (const DtVector32 &Acceleration, DtTime aTime)
 Sets the acceleration at aTime.
virtual void setAcceleration (const DtVector32 &Acceleration)
 Sets the acceleration at the current simulation time, as set in clock()->simTime().
virtual const DtVector32acceleration (DtTime aTime) const
 Return the acceleration at aTime.
virtual const DtVector32acceleration () const
 The acceleration at the current simulation time, as set in clock()->simTime().
virtual const DtVector32lastSetAcceleration () const
 The value last passed to setAcceleration, regardless of whether we have an approximator.
virtual void setOrientation (const DtTaitBryan &orient, DtTime aTime)
 Set the orientation at aTime.
virtual void setOrientation (const DtTaitBryan &orient)
 Set the orientation at the current simulation time, as set in clock()->simTime().
virtual const DtTaitBryanorientation (DtTime aTime) const
 The orientation at the passed time.
virtual const DtTaitBryanorientation () const
 The orientation at the current simulation time, as set in clock()->simTime().
virtual const DtTaitBryanlastSetOrientation () const
 The value last passed to setOrientation, regardless of whether we have an approximator.
virtual void setRotationalVelocity (const DtVector32 &BodyRates, DtTime aTime)
 Set the rotational velocity of an entity at aTime.
virtual void setRotationalVelocity (const DtVector32 &BodyRates)
 Set the rotational velocity of an entity at the current simulation time, as set in clock()->simTime().
virtual const DtVector32rotationalVelocity (DtTime aTime) const
 The rotational velocity of an entity at aTime.
virtual const DtVector32rotationalVelocity () const
 The rotational velocity of an entity at the current simulation time, as set in clock()->simTime().
virtual const DtVector32lastSetRotationalVelocity () const
 Return the value last passed to setRotationalVelocity, regardless of whether we have an approximator.
virtual void setAlgorithm (DtDeadReckonTypes alg)
 Set the dead reckoning algorithm.
virtual DtDeadReckonTypes algorithm () const
 The dead reckoning algorithm.
virtual void setRelativeLocation (const DtVector &location, DtTime aTime)
 Set the location of the center of mass in world coordinates at the given time.
virtual void setRelativeLocation (const DtVector &location)
 Set the location of the center of mass in world coordinates at the simTime as set by clock()->simTime().
virtual const DtVectorrelativeLocation (DtTime aTime) const
 The relativeLocation of the entity with respect to the hostGlobalId() or "Host" at the given time.
virtual const DtVectorrelativeLocation () const
 The relativeLocation of the entity with respect to the hostGlobalId() or "Host" at simTime as set by clock()->simTime().
virtual const DtVectorlastSetRelativeLocation () const
 Return the value last passed to setLocation, regardless of whether we have an approximator.
virtual void setRelativeVelocity (const DtVector32 &Velocity, DtTime aTime)
 Set the relative velocity of the entity in meters per second with respect to the host at aTime.
virtual void setRelativeVelocity (const DtVector32 &Velocity)
 Set the relative velocity of the entity in meters per second with respect to the host at simTime.
virtual const DtVector32relativeVelocity (DtTime aTime) const
 The relative velocity of the entity with respect to the host at aTime.
virtual const DtVector32relativeVelocity () const
 The relative velocity of the entity with respect to the host at simTime.
virtual const DtVector32lastSetRelativeVelocity () const
 Return the value last passed to setVelocity, regardless of whether we have an approximator.
virtual void setRelativeAcceleration (const DtVector32 &Acceleration, DtTime aTime)
 Set the relative acceleration of the entity with respect to the host at aTime.
virtual void setRelativeAcceleration (const DtVector32 &Acceleration)
 Set the relative acceleration of the entity with respect to the host at simTime.
virtual const DtVector32relativeAcceleration (DtTime aTime) const
 The relativeAcceleration of the entity with respect to the host at aTime.
virtual const DtVector32relativeAcceleration () const
 The relativeAcceleration of the entity with respect to the host at simTime.
virtual const DtVector32lastSetRelativeAcceleration () const
 Return the value last passed to setAcceleration, regardless of whether we have an approximator.
virtual void setRelativeOrientation (const DtTaitBryan &orient, DtTime aTime)
 Set the relative orientation of the entity with respect to the host.
virtual void setRelativeOrientation (const DtTaitBryan &orient)
 Set the relative orientation of the entity with respect to the host.
virtual const DtTaitBryanrelativeOrientation (DtTime aTime) const
 The relative orientation of the entity with respect to the host.
virtual const DtTaitBryanrelativeOrientation () const
 The relative orientation of the entity with respect to the host.
virtual const DtTaitBryanlastSetRelativeOrientation () const
 Return the value last passed to setOrientation, regardless of whether we have an approximator.
virtual void setRelativeRotationalVelocity (const DtVector32 &BodyRates, DtTime aTime)
 Set the relative rotational velocity.
virtual void setRelativeRotationalVelocity (const DtVector32 &BodyRates)
 Set the relative rotational velocity.
virtual const DtVector32relativeRotationalVelocity (DtTime aTime) const
 The relative rotational velocity.
virtual const DtVector32relativeRotationalVelocity () const
 The relative rotational velocity.
virtual const DtVector32lastSetRelativeRotationalVelocity () const
 Return the value last passed value to setRotationalVelocity, regardless of whether we have an approximator.
virtual void setRelativeFrozen (bool onOff)
 Set relative frozen.
virtual bool relativeFrozen () const
 Returns if the entity is frozen.
virtual void setRelativeAlgorithm (DtDeadReckonTypes alg)
 Set the dead reckoning algorithm.
virtual DtDeadReckonTypes relativeAlgorithm () const
 The dead reckoning algorithm.
virtual const
DtGlobalObjectDesignator
hostGlobalId () const
 Returns the globalID of the attached host.
virtual void setHostGlobalId (const DtGlobalObjectDesignator &id)
 Sets the globalId of the attached host.
virtual void clearHostGlobalId ()
 Unattaches this entity from its host.
virtual const DtNaturenature () const
 The nature of this entity to the host.
virtual void setNature (const DtNature newVal)
 Sets the nature of this entity to the host.
virtual const DtPositionpartPosition () const
 The Part Position this entity is preforming on the host.
virtual void setPartPosition (const DtPosition newVal)
 Sets the Part Position this entity is preforming on the host.
virtual const DtStationNamestationName () const
 The station name this entity is assigned to on the host.
virtual void setStationName (const DtStationName newVal)
 Sets the station name this entity is assigned to on the host.
virtual const DtU16stationNumber () const
 The station number this entity is assigned to on the host.
virtual void setStationNumber (const DtU16 newVal)
 Sets the station number this entity is assigned to on the host.
virtual const DtVectorrelativePosition () const
 The relative position on the host.
virtual void setRelativePosition (const DtVector &newVal)
 Set the relative position on the host.
virtual const DtFloat32range () const
 The range to the host.
virtual void setRange (const DtFloat32 newVal)
 Set the range to the host.
virtual const DtFloat32bearing () const
 The bearing to host.
virtual void setBearing (const DtFloat32 newVal)
 Set the bearing to host.
virtual void setApproximator (DtApproximator *approx)
 Get and set the approximator used to provide approximated position and orientation information for the entity.
virtual DtApproximatorapproximator () const
 Get and set the approximator used to provide approximated position and orientation information for the entity.
virtual void setRelativeApproximator (DtApproximator *approx)
 Get and set the approximator used to provide approximated position and orientation information for the entity.
virtual DtApproximatorrelativeApproximator () const
 Get and set the approximator used to provide approximated position and orientation information for the entity.
- Public Member Functions inherited from DtStateRepository
 DtStateRepository ()
 default constructor
 DtStateRepository (const DtStateRepository &orig)
 copy constructor
virtual ~DtStateRepository ()
 destructor
DtStateRepositoryoperator= (const DtStateRepository &orig)
 assignment operator
virtual void setGlobalId (const DtString &id)
 Get/Set global identifier, or name.
virtual const DtStringglobalId () const
virtual void setLocalId (const DtObjectId &id)
 Get/Set local identifier, or handle.
virtual const DtObjectIdlocalId () const
virtual bool publishesAttribute (const RTI::AttributeHandle &val) const
 Returns true if the attribute is published.
virtual void setAttributeByHandle (const RTI::AttributeHandle &attrHdl, const char *attrValue, unsigned size)
 Set the attribute with the given handle.
virtual const char * getAttributeByHandle (const RTI::AttributeHandle &attrHdl, unsigned &size) const
 Get a pointer to attribute value for the attribute with the given handle.
virtual void setAttributeByName (const DtString &attrName, const char *attrValue, unsigned size, DtHlaObject *hlaObj)
 Set the attribute with the given name. Note that in order to do this you must provide a DtHlaObject.
virtual const char * getAttributeByName (const DtString &attrName, unsigned &size, DtHlaObject *hlaObj) const
 Get a pointer to attribute value for the attribute with the given name.
virtual const char * getAttributeByHandleIfUpdated (const RTI::AttributeHandle &attrHdl, unsigned &size) const
 Get a pointer to attribute value for the attribute with the given handle, but only if it's been updated since the last time we read it.
virtual
DtStateRepositoryExtension
stateRepositoryExtension (DtString srExtName) const
 Returns pointer to a DtStateRepositoryExtension object with the given name Returns 0 if no extension with given name is found.
virtual std::vector< DtStringstateRepositoryExtensionNames () const
 Returns a set of the registered state repository extension names.
virtual void setStateRepositoryExtensions (std::map< DtString, DtStateRepositoryExtension * > extensions)
 Returns pointer to a DtStateRepositoryExtension object with the given name Returns 0 if no extension with given name is found.
virtual const std::map
< DtString,
DtStateRepositoryExtension * > 
stateRepositoryExtensions () const
 Returns pointer to a DtStateRepositoryExtension object with the given name Returns 0 if no extension with given name is found.

Static Public Member Functions

static DtEntityStateRepositorycreate ()
 Create a MyEntityStateRep. Caller is responsible for deletion.

Protected Attributes

float myMass
- Protected Attributes inherited from DtEntityStateRepository
DtArticulatedPartCollection myArtPartList
DtAttachedPartCollection myAttPartList
DtForceType myForceId
DtEntityType myGuise
DtU32 myAppearance
int myMarkingCharSet
 The char set used for marking text. Defaults to 1.
DtString myMarkingText
 myMarkingText is an array of theMaxMarkingSize.
DtU32 myCapabilities
DtU16 myLiveEntityMeasuredSpeed
DtU16 myAcousticsSignatureIndex
DtU16 myInfaredSignatureIndex
DtU16 myRadarCrossSectionSignatureIndex
int myNumPropulsionSystemsData
int myNumVectoringNozzleSystemData
DtPropulsionSystemmyPropulsionSystemsDataList
DtVectoringNozzleSystemmyVectoringNozzleSystemDataList
std::vector< char > myDiGuyArc
 Legacy DIGuy extension attributes.
DtEntityIdentifier myDiGuyParent
DtDIGuyObjectStateRepositorymyDiGuyStateRep
bool myUseDiGuyObject
- Protected Attributes inherited from DtBaseEntityStateRepository
DtClockmyClock
 Clock to be used for dead reckoning calculations – it is set to the same clock used by the exConn.
DtApproximatormyApproximator
 Holds what's currently being used as our approximator.
DtApproximatormyRelativeApproximator
DtDeadReckonermyDeadReckoner
 Holds what was most recently passed to useDeadReckoner.
DtDeadReckonermyRelativeDeadReckoner
DtSmoothermySmoother
 Holds what was most recently passed to useSmoother.
DtSmoothermyRelativeSmoother
DtVector myLocation
 spatial attributes
DtVector32 myVelocity
DtVector32 myAcceleration
DtTaitBryan myOrientation
DtVector32 myRotationalVelocity
DtDeadReckonTypes myAlgorithm
bool myFrozen
DtVector myRelativeLocation
 relativeSpatial attributes
DtVector32 myRelativeVelocity
DtVector32 myRelativeAcceleration
DtTaitBryan myRelativeOrientation
DtVector32 myRelativeRotationalVelocity
DtDeadReckonTypes myRelativeAlgorithm
bool myRelativeFrozen
DtGlobalObjectDesignator myHostGlobalId
 isPartOf attributes Never set myHostGlobalId outside of the mutator function setHostGlobalId() this will invalidate myHostGlobalIdSetFlag which is used to determine if myHostGlobalId is valid, when it contains a 0:0:0 entityID.
bool myHostGlobalIdSetFlag
DtNature myNature
DtPosition myPartPosition
DtStationName myStationName
DtU16 myStationNumber
DtVector myRelativePosition
DtFloat32 myRange
DtFloat32 myBearing
DtHlaObjectManagermyObjectManager
 others
bool myAmAsSeenByRemote
 This flag is checked by the spatial attribute accessors and if it's false, calls computeSpatialFromRelativeSpatial()
DtVector myLastSetLocation
 place holder variables for spatial data.
DtVector32 myLastSetVelocity
DtVector32 myLastSetAcceleration
DtTaitBryan myLastSetOrientation
DtVector32 myLastSetRotationalVelocity
DtVector myLastSetRelativeLocation
 place holder variables for relative spatial data.
DtVector32 myLastSetRelativeVelocity
DtVector32 myLastSetRelativeAcceleration
DtTaitBryan myLastSetRelativeOrientation
DtVector32 myLastSetRelativeRotationalVelocity
DtDcm myBodyToGeoc
bool myBodyToGeocDirty
DtDcm myRelativeBodyToHost
bool myRelativeBodyToHostDirty
DtTimeStampType myTimeStampType
DtEntityIdentifier myEntityId
DtFederateId myFederateId
 Set by call to federateId.
DtEntityType myEntityType
DtThresholder myThresholder
DtTime myTimeForSets

Additional Inherited Members

- Public Types inherited from DtStateRepository
typedef std::map< DtString,
DtStateRepositoryExtension * > 
DtStateRepositoryExtensionMap
- Public Attributes inherited from DtStateRepository
DtString myGlobalId
DtObjectId myLocalId
std::map< RTI::AttributeHandle,
DtGenericAttributeInfo * > 
myAttributesByHandle
 Attributes by handle.
DtStateRepositoryExtensionMap myStateRepositoryExtensionMap
- Static Public Attributes inherited from DtStateRepository
static std::map< DtString,
DtSrExtCreatorFnc
theStateRepositoryExtensionCreatorMap
- Protected Member Functions inherited from DtEntityStateRepository
DtEntityStateRepositoryself () const
 Cast off const-ness for trivial internal change.
void internalSetMarkingText (const char *text)
 Set the marking text.
virtual void createDiGuyStateRep ()
 Create a DIGuy SR when needed.
- Static Protected Attributes inherited from DtBaseEntityStateRepository
static DtDeadReckonertheDfltDeadReckoner
 Static defaults.
static DtSmoothertheDfltSmoother
static DtDeadReckonertheDfltRelativeDeadReckoner
static DtSmoothertheDfltRelativeSmoother

Detailed Description

Because this example adds a concept that did not already exist in VR-Link's DtEntityStateRepository class, we create this subclass of DtEntityStateRepository that adds the concept of mass.

Member Function Documentation

DtStateRepository * MyEntityStateRep::clone ( bool  copy = false) const
inlinevirtual

Copy shallow (false) or deep (true).

Reimplemented from DtEntityStateRepository.

DtEntityStateRepository * MyEntityStateRep::create ( )
inlinestatic

Create a MyEntityStateRep. Caller is responsible for deletion.

Reimplemented from DtEntityStateRepository.

float MyEntityStateRep::mass ( ) const
inlinevirtual

Return the mass.

References myMass.

Referenced by printData().

void MyEntityStateRep::printData ( ) const
inlinevirtual

Virtual function override: print the state rep's data.

Reimplemented from DtEntityStateRepository.

References mass().

void MyEntityStateRep::setMass ( float  mass)
inlinevirtual

Set the mass.

References myMass.

Member Data Documentation

float MyEntityStateRep::myMass
protected

Referenced by mass(), and setMass().


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

Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (www.mak.com)