VR-Link API Documentation for HLA Evolved
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 constructor
virtual ~DtEntityStateRepository ()
 destructor
 DtEntityStateRepository (const DtEntityStateRepository &orig)
 copy constructor
DtEntityStateRepositoryoperator= (const DtEntityStateRepository &orig)
 assignment operator
virtual void setForceId (DtForceType force)
 Set the force type.
virtual DtForceType forceId () const
 The force type.
virtual void setGuise (const DtEntityType &type)
 Set the alternate entity type or guise.
virtual const DtEntityTypeguise () const
 The alternate entity type or guise.
virtual void setFrozen (bool onOff)
 Set the frozen attribute.
virtual bool frozen () const
 The frozen state of the entity.
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
 The marking text attribute.
virtual void setMaskedCloaked (bool onOff)
 Sets masked/cloaked appearance bit (introduced in DIS enums 2005 doc).
virtual bool maskedCloaked () const
 Returns the masked/cloaked appearance bit.
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
 Set an appearance attribute.
virtual void setClock (DtClock *clock)
 Overrides DtBaseEntityStateRepository's setClock method.
virtual void enableDiGuyStateRepository ()
 Enable the creation and use of the DIGuy state repository.
virtual bool isDiGuyPublisherNeeded () const
 Indicates that a DIGuyObject publisher should be created.
virtual void printDataToStream (std::ostream &stream) const
 prints the state data to the specified stream.
virtual bool powerPlantOn () const
 Set/Get whether entity's power plant is on or not.
virtual void setPowerPlantOn (bool onOff)
 Set/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/Get light state of entity.
virtual DtLightState lightState () const
 Set/Get whether entity's power plant is on or not.
virtual void setDensity (DtDensityType dens)
 Set/Get density state of entity. (Environment entities).
virtual DtDensityType density () const
 Set/Get density state of entity. (Environment entities).
virtual void setRampDeployed (bool onOff)
 Set/Get whether entity has ramp deployed or not.
virtual bool rampDeployed () const
 Set/Get whether entity has ramp deployed or not.
virtual void setSmokePlumePresent (bool onOff)
 Set/Get whether a smoke plume is present or not.
virtual bool smokePlumePresent () const
 Set/Get whether a smoke plume is present or not.
virtual void setTentDeployed (bool onOff)
 Set/Get whether a tent is deployed or not.
virtual bool tentDeployed () const
 Set/Get whether a tent is deployed or not.
virtual void setTrailState (DtTrailState s)
 Set/Get trailing effect state.
virtual DtTrailState trailState () const
 Set/Get trailing effect state.
virtual void setCamouflageType (DtCamouflageType type)
 Set/Get camouflage type.
virtual DtCamouflageType camouflageType () const
 Set/Get camouflage type.
virtual void setFirePowerDisabled (bool onOff)
 Set/Get whether entity is fire power disabled or not.
virtual bool firePowerDisabled () const
 Set/Get whether entity is fire power disabled or not.
virtual void setIsConcealed (bool onOff)
 Set/Get whether entity is concealed or not.
virtual bool isConcealed () const
 Set/Get whether entity is concealed or not.
virtual void setAfterburnerOn (bool onOff)
 Set/Get whether entity has after burner on or not.
virtual bool afterburnerOn () const
 Set/Get whether entity has after burner on or not.
virtual void setHasAmmunitionSupplyCap (bool onOff)
 Set/Get whether entity has ammunition supply capability or not.
virtual bool hasAmmunitionSupplyCap () const
 Set/Get whether entity has ammunition supply capability or not.
virtual void setLauncherRaised (bool onOff)
 Set/Get whether entity has launcher raised or not.
virtual bool launcherRaised () const
 Set/Get whether entity has launcher raised or not.
virtual void setLauncherFlashPresent (bool onOff)
 Set/Get whether launcher flash is present or not.
virtual bool launcherFlashPresent () const
 Set/Get whether launcher flash is present or not.
virtual void setPrimaryWeaponState (DtWeaponState s)
 Set/Get primary weapon deployment state.
virtual DtWeaponState primaryWeaponState () const
 Set/Get primary weapon deployment state.
virtual void setSecondaryWeaponState (DtWeaponState s)
 Set/Get secondary weapon deployment state.
virtual DtWeaponState secondaryWeaponState () const
 Set/Get secondary weapon deployment state.
virtual void setComplianceState (DtComplianceState s)
 Set/Get life form compliance state.
virtual DtComplianceState complianceState () const
 Set/Get life form compliance state.
virtual void setAntennaRaised (bool upDown)
 Set/Get Antenna Raised status.
virtual bool antennaRaised () const
 Set/Get Antenna Raised status.
virtual void setMissionKill (bool yesNo)
 Set/Get Mission Kill status.
virtual bool missionKill () const
 Set/Get Mission Kill status.
virtual void setInternalHeatSource (bool onOff)
 Set/Get internal Heat Source status.
virtual bool internalHeatSource () const
 Set/Get internal Heat Source status.
virtual const
DtArticulatedPartCollection
artPartList () const
 Initialize articulated parts.
virtual
DtArticulatedPartCollection
artPartList ()
 Initialize articulated parts.
virtual const
DtAttachedPartCollection
attPartList () const
 Get the attached parts list.
virtual DtAttachedPartCollectionattPartList ()
 Get the attached parts list.
virtual void setInfraRedSigRepIndex (DtU16 value)
 Set/Get infra-red signature representation index.
virtual DtU16 infraRedSigRepIndex () const
 Set/Get infra-red signature representation index.
virtual void setAcousticSigRepIndex (DtU16 value)
 Set/Get acoustic signature representation index.
virtual DtU16 acousticSigRepIndex () const
 Set/Get acoustic signature representation index.
virtual void setRadarSigRepIndex (DtU16 value)
 Set/Get radar signature representation index.
virtual DtU16 radarSigRepIndex () const
 Set/Get radar signature representation index.
void setNumPropulsionSystems (DtU16 value)
 Set/Get number of propulsion systems.
DtU16 numPropulsionSystems () const
 Set/Get number of propulsion systems.
void setNumNozzleSystems (DtU16 value)
 Set/Get number of nozzle systems.
DtU16 numNozzleSystems () const
 Set/Get number of nozzle systems.
bool setPropulsionSystem (int index, const DtPropulsionSystem &record)
 Set/Get a propulsion system data record.
bool getPropulsionSystem (int index, DtPropulsionSystem &record) const
 Set/Get a propulsion system data record.
bool setNozzleSystem (int index, const DtVectoringNozzleSystem &record)
 Set/Get a vectoring nozzle system data record.
bool getNozzleSystem (int index, DtVectoringNozzleSystem &record) const
 Set/Get a vectoring nozzle system data record.
virtual void setMeasuredSpeed (DtU16 value)
 Set/Get measured speed.
virtual DtU16 measuredSpeed () const
 Set/Get measured speed.
virtual void setCapabilities (DtU32 cap)
 Set/Get the capabilities field.
virtual DtU32 capabilities () const
 Set/Get the capabilities field.
virtual void setEntityId (const DtEntityIdentifier &id)
 DI GUY attribute extensions.
virtual void setDiGuyStateRepository (DtDIGuyObjectStateRepository *diGuyStateRep)
 In HLA 2010 going forward, the extensions are conveyed through a separate DIGuyObject instance.
virtual
DtDIGuyObjectStateRepository
diGuyStateRepository ()
 DI GUY attribute extensions.
virtual void setDiGuyAppearance (const DtString &val)
 Set/Get the DIGuy appearance (body appearance when using separate SR).
virtual const DtStringdiGuyAppearance () const
 Set/Get the DIGuy appearance (body appearance when using separate SR).
virtual void setDiGuyArc (const std::vector< char > &val)
 Set/Get the DIGuy appearance (not supported when using separate SR).
virtual const std::vector< char > & diGuyArc () const
 Set/Get the DIGuy appearance (not supported when using separate SR).
virtual void setDiGuyParent (const DtEntityIdentifier &val)
 Set/Get the DIGuy parent (not supported when using separate SR).
virtual const DtEntityIdentifierdiGuyParent () const
 Set/Get the DIGuy parent (not supported when using separate SR).
virtual void setDiGuyType (const DtString &newDiGuyType, const DtString &newDiGuyAppearance)
 Set/Get the DIGuy type.
virtual void setDiGuyType (const DtString &val)
 Set/Get the DIGuy type.
virtual const DtStringdiGuyType () const
 Set/Get the DIGuy type.
virtual void setDiGuyBodyAppearance (const DtString &val)
 Set/Get the DIGuy body appearance (only supported using separate DIGuy SR).
virtual const DtStringdiGuyBodyAppearance () const
 Set/Get the DIGuy body appearance (only supported using separate DIGuy SR).
virtual void setDiGuyHeadAppearance (const DtString &val)
 Set/Get the DIGuy head appearance (only supported using separate DIGuy SR).
virtual const DtStringdiGuyHeadAppearance () const
 Set/Get the DIGuy head appearance (only supported using separate DIGuy SR).
virtual void setDiGuyItemAppearance (const DtString &val)
 Set/Get the DIGuy item appearance (only supported using separate DIGuy SR).
virtual const DtStringdiGuyItemAppearance () const
 Set/Get the DIGuy item appearance (only supported using separate DIGuy SR).
virtual void setDiGuyAccessoryAppearance (const DtString &val)
 Set/Get the DIGuy accessory appearance (only supported using separate DIGuy SR).
virtual const DtStringdiGuyAccessoryAppearance () const
 Set/Get the DIGuy accessory appearance (only supported using separate DIGuy SR).
virtual void setDiGuyAction (const DtString &val)
 Set/Get the DIGuy action.
virtual const DtStringdiGuyAction () const
 Set/Get the DIGuy accessory appearance (only supported using separate DIGuy SR).
virtual const DtStringdiGuyAction (bool &paused) const
 Gets the paused status also.
virtual void setDiGuyAction (const DtString &val, bool paused, double speed=0.0)
 Sets the paused and speed also.
virtual void setDiGuyActionPaused (bool paused)
 Set/Get DIGuy action paused.
virtual bool isDiGuyActionPaused () const
 Set/Get DIGuy action paused.
virtual double diGuyActionSpeed () const
 Set/Get DIGuy action speed (only supported using separate DIGuy SR).
virtual void setDiGuyActionSpeed (double speed)
 Set/Get DIGuy action speed (only supported using separate DIGuy SR).
virtual void setDiGuyVisible (bool visibile)
 Set/Get DIGuy visible status (only supported using separate DIGuy SR).
virtual bool isDiGuyVisible () const
 Set/Get DIGuy visible status (only supported using separate DIGuy SR).
virtual void addDiGuyShapeVariation (unsigned int linkIndex, unsigned int shapeIndex, const DtDiGuyPixelData &pixelData)
 Add/Remove/Get DIGuy shape variation data (only supported using separate DIGuy SR).
virtual void removeDiGuyShapeVariation (unsigned int linkIndex, unsigned int shapeIndex)
 Add/Remove/Get DIGuy shape variation data (only supported using separate DIGuy SR).
virtual const DtDiGuyPixelDatadiGuyShapeVariation (unsigned int linkIndex, unsigned int shapeIndex, bool &dataIsValid) const
 Add/Remove/Get DIGuy shape variation data (only supported using separate DIGuy SR).
virtual bool getDiGuyShapeVariation (unsigned int linkIndex, unsigned int shapeIndex, DtDiGuyPixelData &pixelData) const
 Add/Remove/Get DIGuy shape variation data (only supported using separate DIGuy SR).
virtual void setDiGuyShapeVariations (const DtDiGuyLinkShapeMap &shapeVariations)
 Add/Remove/Get DIGuy shape variation data (only supported using separate DIGuy SR).
virtual const DtDiGuyLinkShapeMapdiGuyShapeVariations () const
 Add/Remove/Get DIGuy shape variation data (only supported using separate DIGuy SR).
virtual const DtVectordiGuyCharacterScale () const
 Set/Get DIGuy character scale (only supported using separate DIGuy SR).
virtual void setDiGuyCharacterScale (const DtVector &scale)
 Set/Get DIGuy character scale (only supported using separate DIGuy SR).
- 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 setApproximator (DtApproximator *approx)
 Get and set the approximator used to provide approximated position and orientation information for the entity.
virtual DtApproximatorapproximator () const
virtual void setRelativeApproximator (DtApproximator *approx)
virtual DtApproximatorrelativeApproximator () const
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 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 DtVector &Velocity, DtTime aTime)
 Set the velocity in meters per second at aTime.
virtual void setVelocity (const DtVector &Velocity)
 The velocity in meters per second at the current simulation time, as set in clock()->simTime().
virtual const DtVectorvelocity (DtTime aTime) const
 The velocity in meters per second at aTime.
virtual const DtVectorvelocity () const
 The velocity at the current simulation time, as set in clock()->simTime().
virtual const DtVectorlastSetVelocity () const
 Return the value last passed to setVelocity, regardless of whether we have an approximator.
virtual void setAcceleration (const DtVector &Acceleration, DtTime aTime)
 Sets the acceleration at aTime.
virtual void setAcceleration (const DtVector &Acceleration)
 Sets the acceleration at the current simulation time, as set in clock()->simTime().
virtual const DtVectoracceleration (DtTime aTime) const
 Return the acceleration at aTime.
virtual const DtVectoracceleration () const
 The acceleration at the current simulation time, as set in clock()->simTime().
virtual const DtVectorlastSetAcceleration () 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 DtVector &BodyRates, DtTime aTime)
 Set the rotational velocity of an entity at aTime.
virtual void setRotationalVelocity (const DtVector &BodyRates)
 Set the rotational velocity of an entity at the current simulation time, as set in clock()->simTime().
virtual const DtVectorrotationalVelocity (DtTime aTime) const
 The rotational velocity of an entity at aTime.
virtual const DtVectorrotationalVelocity () const
 The rotational velocity of an entity at the current simulation time, as set in clock()->simTime().
virtual const DtVectorlastSetRotationalVelocity () 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 DtVector &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 DtVector &Velocity)
 Set the relative velocity of the entity in meters per second with respect to the host at simTime.
virtual const DtVectorrelativeVelocity (DtTime aTime) const
 The relative velocity of the entity with respect to the host at aTime.
virtual const DtVectorrelativeVelocity () const
 The relative velocity of the entity with respect to the host at simTime.
virtual const DtVectorlastSetRelativeVelocity () const
 Return the value last passed to setVelocity, regardless of whether we have an approximator.
virtual void setRelativeAcceleration (const DtVector &Acceleration, DtTime aTime)
 Set the relative acceleration of the entity with respect to the host at aTime.
virtual void setRelativeAcceleration (const DtVector &Acceleration)
 Set the relative acceleration of the entity with respect to the host at simTime.
virtual const DtVectorrelativeAcceleration (DtTime aTime) const
 The relativeAcceleration of the entity with respect to the host at aTime.
virtual const DtVectorrelativeAcceleration () const
 The relativeAcceleration of the entity with respect to the host at simTime.
virtual const DtVectorlastSetRelativeAcceleration () 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 DtVector &BodyRates, DtTime aTime)
 Set the relative rotational velocity.
virtual void setRelativeRotationalVelocity (const DtVector &BodyRates)
 Set the relative rotational velocity.
virtual const DtVectorrelativeRotationalVelocity (DtTime aTime) const
 The relative rotational velocity.
virtual const DtVectorrelativeRotationalVelocity () const
 The relative rotational velocity.
virtual const DtVectorlastSetRelativeRotationalVelocity () 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.
- Public Member Functions inherited from DtStateRepository
virtual ~DtStateRepository ()
 destructor
DtStateRepositoryoperator= (const DtStateRepository &orig)
 assignment operator
virtual void setGlobalId (const DtGlobalObjectDesignator &id)
 Get/Set global identifier, or name.
virtual const
DtGlobalObjectDesignator
globalId () const
virtual void setLocalId (const DtObjectId &id)
 Get/Set local identifier, or handle.
virtual const DtObjectIdlocalId () const

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
DtString myMarkingText
 myMarkingText is an array of theMaxMarkingSize.
DtU32 myCapabilities
DtU16 myLiveEntityMeasuredSpeed
DtU16 myAcousticsSignatureIndex
DtU16 myInfaredSignatureIndex
DtU16 myRadarCrossSectionSignatureIndex
int myNumPropulsionSystemsData
int myNumVectoringNozzleSystemData
DtPropulsionSystemmyPropulsionSystemsDataList
DtVectoringNozzleSystemmyVectoringNozzleSystemDataList
DtString myDiGuyAction
 Legacy DIGuy extension attributes.
bool myDiGuyActionPaused
DtString myDiGuyAppearance
std::vector< char > myDiGuyArc
DtString myDiGuyType
DtEntityIdentifier myDiGuyParent
DtDIGuyObjectStateRepositorymyDiGuyStateRep
bool myUseDiGuyStateRep
bool myIsDiGuyPublisherNeeded
- 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
DtDeadReckonermyDfltDeadReckoner
 Created and deleted by this ESR if needed.
DtSmoothermyDfltSmoother
DtDeadReckonermyDfltRelativeDeadReckoner
DtSmoothermyDfltRelativeSmoother
DtVector myLocation
 spatial attributes
DtVector myVelocity
DtVector myAcceleration
DtTaitBryan myOrientation
DtVector myRotationalVelocity
DtDeadReckonTypes myAlgorithm
bool myFrozen
DtVector myRelativeLocation
 relativeSpatial attributes
DtVector myRelativeVelocity
DtVector myRelativeAcceleration
DtTaitBryan myRelativeOrientation
DtVector 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.
DtVector myLastSetVelocity
DtVector myLastSetAcceleration
DtTaitBryan myLastSetOrientation
DtVector myLastSetRotationalVelocity
DtVector myLastSetRelativeLocation
 place holder variables for relative spatial data.
DtVector myLastSetRelativeVelocity
DtVector myLastSetRelativeAcceleration
DtTaitBryan myLastSetRelativeOrientation
DtVector 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
- Protected Attributes inherited from DtStateRepository
DtGlobalObjectDesignator myGlobalId
DtObjectId myLocalId

Additional Inherited Members

- 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.

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 Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)