![]() |
VR-Forces Developer's Guide
|
This class represents the data gathered by a sensor about a particular single sensor contact. The DtRwSensorContactInfo class is a readable/writable class that can store itself and read itself from a file. Note that the entity ID is not written or read, since these change between scenario runs. The using code must manage the setting of entity IDs when loaded from a file.

Public Member Functions | |
| DtRwSensorContactInfo () | |
| DtRwSensorContactInfo (const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| DtRwSensorContactInfo (const DtSymbolString &name, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| DtRwSensorContactInfo (const DtRwSensorContactInfo &orig, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| virtual | ~DtRwSensorContactInfo () |
| DtRwSensorContactInfo & | operator= (const DtRwSensorContactInfo &orig) |
| virtual void | fixDetectionTimesFromDateAndTime (double currentSimTime, double currentDateAndTime) |
| virtual void | setSpotterMarkingText (const DtString &s) |
| virtual const DtString & | spotterMarkingText () const |
| virtual void | setContactMarkingText (const DtString &s) |
| virtual const DtString & | contactMarkingText () const |
| virtual const DtNLengthIntegerVector & | contactSources () const |
| virtual void | setContactSources (const DtNLengthIntegerVector &sources) |
| virtual bool | addContactSource (int source) |
| virtual bool | addContactSources (const DtNLengthIntegerVector &sources) |
| virtual DtRwSensorContactInfo * | clone () const |
| bool | operator== (const DtRwSensorContactInfo &) const |
| virtual const DtEntityIdentifier & | id () const |
| virtual void | setId (const DtEntityIdentifier &id) |
| virtual double | originalDetectionTime () const |
| virtual void | setOriginalDetectionTime (DtReal origTime) |
| virtual double | originalDetectionDateAndTime () const |
| virtual void | setOriginalDetectionDateAndTime (DtReal origTime) |
| virtual void | setLastTimeOfDetection (double time) |
| virtual double | lastDetectionTime () const |
| virtual void | setLastDateAndTimeOfDetection (double time) |
| virtual double | lastDetectionDateAndTime () const |
| virtual const DtUUID & | spotter () const |
| virtual void | setSpotter (const DtUUID &name) |
| virtual const DtUUID & | contact () const |
| virtual void | setContact (const DtUUID &name) |
| virtual int | combatIdentificationLevel () const |
| virtual void | setCombatIdentificationLevel (int level) |
| virtual double | detectionErrorRange () const |
| virtual void | setDetectionErrorRange (double dist) |
| virtual double | detectionErrorHorizontal () const |
| virtual void | setDetectionErrorHorizontal (double angle) |
| virtual double | detectionErrorVertical () const |
| virtual void | setDetectionErrorVertical (double angle) |
| virtual void | setContactIsCurrentlyDetected (bool) |
| virtual bool | isContactCurrentlyDetected () const |
| virtual void | setContactPosition (const DtVector &vector) |
| virtual DtVector | contactPosition () const |
| virtual void | setContactOrientation (const DtTaitBryan &orientation) |
| virtual DtTaitBryan | contactOrientation () const |
| virtual void | setContactVelocity (const DtVector &velocity) |
| virtual DtVector | contactVelocity () const |
| virtual void | setContactType (const DtObjectType &type) |
| virtual DtObjectType | contactType () const |
| virtual void | setContactForce (const DtForceType &force) |
| virtual DtForceType | contactForce () const |
| virtual void | setContactFormation (const DtAggregateFormation formation) |
| virtual DtAggregateFormation | contactFormation () const |
| virtual DtString | contactFormationString () const |
| virtual void | setContactActivity (const DtString &activity) |
| virtual const DtString & | contactActivity () const |
| virtual void | setContactAppearance (const DtAppearance &app) |
| virtual const DtAppearance & | contactAppearance () const |
| virtual DtAppearance & | contactAppearance () |
| virtual void | setContactRadius (DtReal radius) |
| virtual DtReal | contactRadius () const |
| virtual void | setHealthPercentage (DtReal) |
| virtual DtReal | healthPercentage () const |
| virtual void | setIsBreached (bool) |
| virtual bool | isBreached () const |
| virtual void | setContactExpirationTime (DtReal contactExpirationTime) |
| virtual DtReal | contactExpirationTime () const |
| virtual void | removeContactSource (int source) |
| virtual int | findContactSource (int source) |
Public Member Functions inherited from DtReaderWriter | |
| DtReaderWriter () | |
| DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtReaderWriter & | operator= (const DtReaderWriter &orig) |
| bool | operator== (const DtReaderWriter &) const |
| bool | operator!= (const DtReaderWriter &rhs) |
| virtual | ~DtReaderWriter () |
| virtual void | putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| virtual void | postPutSelf () |
| virtual void | prePutSelf () |
| virtual void | getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| virtual void | postGetSelf () |
| virtual void | preGetSelf () |
| virtual void | writeSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| virtual DtSymbolString | name () const |
| virtual void | addAlias (const DtSymbolString &alias) |
| virtual void | addAlias (const DtString &alias) |
| virtual bool | hasAlias (const DtSymbolString &alias) |
| virtual const aliasContainer & | aliases () const |
| virtual void | setReadonly (bool flag) |
| bool | isReadonly () const |
| virtual void | reset () |
| virtual int | alignment () const |
| virtual bool | variableIsBound () const |
| virtual void | unbindVariable () |
| virtual void | setName (const DtString &) |
| virtual const char * | readerWriterType () const |
| virtual const char * | xmlType () const |
| virtual DtString | prettyPrint () const |
| std::string | debugText () const |
| virtual void | bindVariables (DtVariableBindingsList variableBindings) |
| virtual std::list < DtVariableNameType > | unboundVariables () const |
| bool | invalid () const |
| virtual bool | hasChild (const DtReaderWriter *p) const |
| virtual bool | hasVariableReference () const |
| virtual void | bindLocalVariables (const DtVariableBindingsList &variableBindings) |
| virtual void | recordUpdateTime () const |
| virtual bool | changedSinceLastChecked () |
| virtual bool | peekChangedSinceLastChecked () const |
| virtual void | putData (std::string &fp, int indentLevel=0) |
| virtual DtlObjPtr | getData (DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) |
| virtual void | setValueSpecified (bool specified, bool recurse=false) |
| virtual bool | valueSpecified () const |
| virtual bool | isVariableReference () const |
| virtual void | setIsVariableReference (bool value) |
| virtual void | clearAllVariableReferenceFlags () |
| virtual DtSymbolString | variableName () const |
| virtual void | setVariableName (const DtSymbolString variableName) |
| virtual const DtReaderWriter * | defaultRWValue () const |
| virtual DtReaderWriter * | defaultRWValue () |
| virtual void | setDefaultRWValue (DtReaderWriter *) |
| virtual bool | checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| const DtReaderWriterRegistry & | registry () const |
| DtReaderWriterRegistry & | registry () |
| virtual DtPropertyInterface * | property () |
| virtual const DtPropertyInterface * | property () const |
| virtual DtString | toXml () const |
| virtual DtRwVariableBindings * | generateVariableBindings () const |
| virtual bool | toXml (const DtFilename &) const |
| virtual bool | fromXml (const DtString &) |
| virtual bool | fromXmlFile (const DtFilename &) |
| virtual void | putSelf (DtEnvironmentSP, DtEnvValueSP parent) const |
| virtual void | putData (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | getSelf (const DtEnvironmentSP, const DtEnvValueSP root, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | getData (const DtEnvironmentSP, const DtEnvValueSP, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings) |
| virtual void | getVariableReference (DtEnvironmentSP, DtEnvValueSP value) |
| DtRwSensorContactInfo::DtRwSensorContactInfo | ( | ) |
| DtRwSensorContactInfo::DtRwSensorContactInfo | ( | const DtString & | name, |
| DtReaderWriterRegistry *const | parentRegistry = NULL |
||
| ) |
| DtRwSensorContactInfo::DtRwSensorContactInfo | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry *const | parentRegistry = NULL |
||
| ) |
| DtRwSensorContactInfo::DtRwSensorContactInfo | ( | const DtRwSensorContactInfo & | orig, |
| DtReaderWriterRegistry *const | parentRegistry = NULL |
||
| ) |
|
virtual |
| DtRwSensorContactInfo& DtRwSensorContactInfo::operator= | ( | const DtRwSensorContactInfo & | orig | ) |
|
inlinevirtual |
Entity identifier for the contact. It is preferred to use contactName() instead.
|
inlinevirtual |
Entity identifier for the contact. It is preferred to use contactName() instead.
|
virtual |
If original detection time and last detection time are not set, updates them based on the original and last detection date and time. This is to correct for some scenarios created during a brief period when detection time values were not saved.
|
inlinevirtual |
First time the contact was spotted by the sensor.
|
virtual |
First time the contact was spotted by the sensor.
|
inlinevirtual |
First date and time the contact was spotted by the sensor.
|
inlinevirtual |
First date and time the contact was spotted by the sensor.
|
virtual |
The most recent time this contact was spotted by the sensor.
|
inlinevirtual |
The most recent time this contact was spotted by the sensor.
|
inlinevirtual |
The most recent date and time this contact was spotted by the sensor.
|
inlinevirtual |
The most recent date and time this contact was spotted by the sensor.
|
inlinevirtual |
Get/Set spotter.
|
inlinevirtual |
Get/Set spotter.
References DtReaderWriter::name().
|
inlinevirtual |
The spotter marking text for use if recorded in a logger tape and the UUID is not available.
|
inlinevirtual |
|
inlinevirtual |
The sensor contact.
Was: contactName
|
inlinevirtual |
Was: setContactName.
References DtReaderWriter::name().
|
inlinevirtual |
The contact marking text for use if recorded in a logger tape and the UUID is not available.
|
inlinevirtual |
|
inlinevirtual |
The combat Identification level associated with this sensor contact.
|
inlinevirtual |
The combat Identification level associated with this sensor contact.
References makVrv::vrvTacticalGraphicUtilities::level().
|
inlinevirtual |
Error range of the sensor that detected the contact. VRF default sensors set 0 for all error values, but other sensor models may fill in realistic values for their sensor.
Error range is specified in meters.
|
inlinevirtual |
Error range of the sensor that detected the contact. VRF default sensors set 0 for all error values, but other sensor models may fill in realistic values for their sensor.
Error range is specified in meters.
|
inlinevirtual |
Horizontal error is specified in radians.
|
inlinevirtual |
Error range of the sensor that detected the contact. VRF default sensors set 0 for all error values, but other sensor models may fill in realistic values for their sensor.
Error range is specified in meters.
References SGP4Funcs::angle().
|
inlinevirtual |
Vertical error is specified in radians.
|
inlinevirtual |
Error range of the sensor that detected the contact. VRF default sensors set 0 for all error values, but other sensor models may fill in realistic values for their sensor.
Error range is specified in meters.
References SGP4Funcs::angle().
|
virtual |
If true, this contact is currently detected by a sensor or by spot report. If false, this contact was previously detected, will age and timeout if the contact is not reacquired by a sensor. Defaults to true.
|
virtual |
If true, this contact is currently detected by a sensor or by spot report. If false, this contact was previously detected, will age and timeout if the contact is not reacquired by a sensor. Defaults to true.
|
virtual |
The perceived location of the contact. Specified in geocentric coordinates.
|
virtual |
The perceived location of the contact. Specified in geocentric coordinates.
|
virtual |
The perceived orientation of the contact. Specified in the geocentric reference frame.
|
virtual |
The perceived orientation of the contact. Specified in the geocentric reference frame.
|
virtual |
The perceived velocity of the contact. Specified in the geocentric reference frame.
|
virtual |
The perceived velocity of the contact. Specified in the geocentric reference frame.
|
virtual |
The perceived type of the contact being reported. Types may be only partially filled in, using -1 for fields that are unknown. So if we have a very low level of identification the type may only reflect a ground vehicle (1 (1 1 -1 -1 -1 -1 -1))
|
virtual |
The perceived type of the contact being reported. Types may be only partially filled in, using -1 for fields that are unknown. So if we have a very low level of identification the type may only reflect a ground vehicle (1 (1 1 -1 -1 -1 -1 -1))
|
virtual |
The perceived force of the contact being detected. Defaults to DtForceOther.
|
virtual |
The perceived force of the contact being detected. Defaults to DtForceOther.
|
virtual |
The perceived formation of the contact. Uses OtherFormation to indicate unknown formation. (the default)
|
virtual |
The perceived formation of the contact. Uses OtherFormation to indicate unknown formation. (the default)
|
virtual |
The perceived formation of the contact. Uses OtherFormation to indicate unknown formation. (the default)
|
virtual |
The perceived activity of the contact. This value is a string as defined by the implementor of this activity.
|
virtual |
The perceived activity of the contact. This value is a string as defined by the implementor of this activity.
|
virtual |
The appearance of the contact–alive or dead, lights on....
|
virtual |
The appearance of the contact–alive or dead, lights on....
|
virtual |
The appearance of the contact–alive or dead, lights on....
|
virtual |
The radius of the contact. Valid only for aggregates. Defaults to 0.
|
virtual |
The radius of the contact. Valid only for aggregates. Defaults to 0.
|
virtual |
The health percentage of the entity Defaults to 1.
|
virtual |
The health percentage of the entity Defaults to 1.
|
virtual |
Whether the object has been breached or not. Only valid for some object types. Defaults to false.
|
virtual |
Whether the object has been breached or not. Only valid for some object types. Defaults to false.
|
virtual |
The expiration time of the contact. Defaults to -1 (no expiration).
|
virtual |
The expiration time of the contact. Defaults to -1 (no expiration).
|
virtual |
The list of sources for the contact, ie infrared sensor, visual sensor, spot report...
|
virtual |
Add a contact source.
|
virtual |
Add multiple contact sources.
|
virtual |
Remove a contact source.
Returns index of the source type if found If not found returns -1.
|
virtual |
Returns a newly created clone of this class.
| bool DtRwSensorContactInfo::operator== | ( | const DtRwSensorContactInfo & | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
In world reference frame. (Geocentric)
|
protected |
In world reference frame. (Geocentric)
|
protected |
In world reference frame. (Geocentric)
|
protected |
|
protected |
|
protected |
|
protected |
Not currently used.
|
protected |
|
protected |
|
protected |
Only aggregate entities have a contact radius.
|
protected |
Percentage of health remaining.
|
protected |
Whether the object has been breached or not. Only valid for some object types.
|
protected |
Expiration time for the contact.
|
protected |
If true, this contact is currently detected by a sensor or by spot report. If false, this contact was previously detected, will age and timeout if the contact is not reacquired by a sensor.