![]() |
VR-Forces 4.6.1 Class Documentation
|

Public Member Functions | |
| DtScriptVrfObject (const DtUUID &name, DtVrfObject *const vrfObject) | |
| DtScriptVrfObject (const DtUUID &name, DtSimManager *simManager, DtVrfObject *const vrfObject) | |
| DtScriptVrfObject (const DtScriptVrfObject &orig) | |
| DtScriptVrfObject & | operator= (const DtScriptVrfObject &orig) |
| ~DtScriptVrfObject () | |
| bool | operator== (const DtScriptVrfObject &orig) |
| virtual double | getHeightAboveTerrain () const |
| Gets the height above terrain, which is just ownship altitude - terrain altitude. | |
| virtual bool | hasLosToObject (const DtScriptVrfObject &target, bool &dataAvailable) const |
| Check LOS to a target entity through terrain and objects, except for ownship object and target object. | |
| virtual void | changeAttachment (const std::string &parentUUID) const |
| This allows the object to change its attachment without using the embarkation controller which is some circumstances is not desired. | |
| virtual bool | isPointInside (const DtLocation3D &point) const |
| Determine if the given point is inside the polygon described by the vertices (footprint) of this object. | |
| virtual bool | independentlyTasked () const |
| Returns true if item is independently tasked. | |
| virtual bool | hasLosToLocation (DtLocation3D &targetLoc, bool &dataAvailable) const |
| Check LOS to a location through terrain and objects, except for ownship object. | |
| virtual std::string | getEntityType () const |
| Return the entity type. | |
| virtual bool | isAggregate () const |
| Returns whether the object is an aggregate, using the object state repository definition of isAggregate(). | |
| virtual bool | isPseudoAggregate () const |
| Returns whether the object is an aggregate, using the object state repository definition of isAggregate() and the object is in a DtDisaggregated state. | |
| virtual std::string | getEchelonLevel () const |
| Returns the echelon level as a string. | |
| virtual std::string | getForceType () const |
| Returns entity force. | |
| virtual int | getForceEnumeration () const |
| Returns entity force enumeration (integer) | |
| virtual std::string | getDamageState () const |
| Returns the current damage state as: none slight moderate destroyed. | |
| virtual unsigned | getLifeformPosture () const |
| Returns the DIS enumerated value for the current lifeform posture. | |
| virtual unsigned | getAppearance () const |
| Returns the current appearance bits of the entity. | |
| virtual bool | isDestroyed () const |
| Returns whether or not this entity is destroyed. | |
| virtual bool | isInvisible () const |
| Returns whether or not this entity is invisible. | |
| virtual bool | isEmbarked () const |
| Returns whether or not this item is embarked on any other item. | |
| virtual void | attachToParent (DtScriptVrfObject &) const |
| Given an object which is a parent, attach to it (immedate embark) | |
| virtual bool | isOnTopOf (DtScriptVrfObject &) const |
| Will return true if this entity is near the top of the specified entity given the specified distance (in meters). | |
| virtual bool | isOnTopOfWithDistance (DtScriptVrfObject &, double) const |
| virtual DtScriptVrfObject | getEmbarkedOn () const |
| Parent this object is embarked on. | |
| virtual std::list < DtScriptVrfObject > | getEmbarkedObjects (void) const |
| virtual DtVectorOffset3D | getOffsetFromParent () const |
| virtual std::list < DtScriptVrfObject > | getSubordinates (void) const |
| Returns a list of the immediate subordinates of this aggregate. | |
| virtual std::list < DtScriptVrfObject > | getVrfSubordinates (bool isVrf) const |
| Returns a list of the vrf simulated immediate subordinates of this aggregate. | |
| virtual double | recalculatePhysicalFootprintFromSubordinates (const std::list< DtScriptVrfObject > &) const |
| Given the list of subordinates, return a DtRwReal that will contain the physical footprint (radius) of aggregate. | |
| virtual std::list < DtScriptVrfObject > | getAllSubordinates (void) const |
| Returns a list of all leaf (lowest level) nodes (subordinates) of this aggregate. | |
| virtual std::list < DtScriptVrfObject > | getAllVrfSubordinates (bool isVrf) const |
| virtual std::list < DtScriptVrfObject > | getCapableSubordinates (void) const |
| virtual std::list < DtScriptVrfObject > | getCapableVrfSubordinates (bool isVrf) const |
| virtual bool | isVrfSimulated () const |
| Returns true if this object is simulated by VR-Forces. | |
| virtual std::list< DtLocation3D > | getLocations3D (void) const |
| virtual std::string | getName () const |
| virtual std::string | getLabel () const |
| virtual void | setLabel (const std::string &) |
| virtual std::string | getExtendedLabel (int) const |
| virtual void | setExtendedLabel (int, const std::string &) |
| virtual std::string | getGlobalId () const |
| virtual std::string | getObjectId () const |
| virtual double | getHeading () const |
| virtual double | getPitch () const |
| virtual double | getRoll () const |
| virtual double | getDraft () const |
| void | terrainSurfaceDebug () |
| For debugging the terrain surface(s) at the entity's location. | |
| void | deleteObject () |
| Deletes object from simulation. | |
| bool | isDeleted () const |
| Returns true if the object has been deleted from the simulation. | |
| virtual bool | isValid () const |
| virtual bool | isLocal () const |
| Returns true if the object is local to the back-end the script is running on. | |
| virtual DtVectorOffset3D | getBoundingVolume (DtVectorOffset3D &offset) const |
| Returns the bounding volume and the bounding volume offset. | |
| virtual std::string | getNbcDamage (int &dmgPerSec, int &moppLvl) const |
| Returns the damage type, damage per second, and the MOPP level required to protect against the NBC contaminated area. | |
| virtual std::string | getNbcAgent () const |
| Returns the agent type of the NBC area. | |
| virtual bool | isBreached () const |
| Returns true if this is an engineering object which has been breached. | |
| virtual std::string | getExtendedData (const std::string &key) const |
| Returns the extended data with the given key, or an empty string if not found. | |
| virtual DtLocation3D | getClosestPointToLocation2D (const DtLocation3D &location, double &distance) const |
| Finds the closest point on the object's geometry to the given location. | |
| virtual DtLocation3D | getIntersectionPointWithLine2D (const DtLocation3D &point1, const DtLocation3D &point2, bool &hasIntersection) const |
| Calculates the point where the line defined by the two points intersects with the object. | |
| virtual bool | isActive () const |
| Returns true if this is an environmental and it is active. All others will be considered active. | |
| virtual std::string | getDiGuyHandItem () const |
| If object is lifeform with Diguy representation will return handitem if has one. | |
| virtual bool | isAnimationAvailable (const std::string &animationName) const |
| virtual void | setSimManager (DtSimManager *simManager) |
| Script API functions above. ////////////////////////////////////! | |
| virtual DtString | objectType () const |
| Should return the string name of this object. | |
| DtString | serialize () |
| Inherited from DtAsciiSerializable. Returns a string serialized version of this class. | |
| bool | deserialize (const DtString &data) |
| Inherited from DtAsciiSerializable. | |
| DtVrfObject * | vrfObject () const |
| For use by C++ side methods. | |
| void | testValid () const |
| Makes sure the object is valid. If not, throws exception. | |
| virtual DtLocation3D | getLocation3D () const |
| Script API functions. | |
| virtual double | getSpeed () const |
| Returns the objects current speed in meters/second. | |
| virtual std::string | getUUID () const |
| Returns the UUID of this object. | |
| virtual DtVector3D | getDirection3D () const |
| Vector info about entity. | |
| virtual DtVector3D | getVelocity3D () const |
| Velocity of entity, meters/sec. | |
| virtual void | setNavigationEnabled (bool) |
| virtual bool | getNavigationEnabled () const |
| virtual DtVectorOffset3D | getPartParentPosition (int) const |
| virtual DtLocation3D | getPartWorldPosition (int) const |
| virtual double | getPartPitch (int) const |
| virtual double | getPartPitchIncludingParent (int, bool includeParent=false) const |
| virtual double | getPartHeading (int) const |
| virtual double | getPartHeadingIncludingParent (int, bool includeParent=false) const |
| bool | hasStateProperty (const std::string &propertyName) |
| Checks to see if the property exists. | |
| bool | hasParameterProperty (const std::string &propertyName) |
Public Member Functions inherited from DtAsciiSerializable | |
| DtAsciiSerializable () | |
| The implementer of this interface should be sure to create a creator function to create an empty object that returns a pointer to this interface. | |
| DtAsciiSerializable (const DtAsciiSerializable &orig) | |
| virtual | ~DtAsciiSerializable () |
| virtual std::string | objectTypeC () const |
| Returns a std::string version of the objectType. | |
| virtual void | init (void *userData) |
| This function is called right after the object is constructed during the deserialization process, but before deserialize() is called. | |
Static Public Member Functions | |
| static DtAsciiSerializable * | creator () |
| Inherited from DtAsciiSerializable. Returns a new object of this type with default values. | |
| static DtScriptVrfObject | nullObject () |
| Returns a null object. | |
Static Public Member Functions inherited from DtObjectDebugger< DtScriptVrfObject > | |
| static DtObjectCounter::CounterType | ObjectCount () |
| static const DtObjectContainer * | ObjectContainer () |
Protected Attributes | |
| DtRwUUID | myUUID |
| DtSimManager * | mySimManager |
| DtVrfObjectDeletionHandle | myObjectDeletionHandle |
Additional Inherited Members | |
Protected Member Functions inherited from DtObjectDebugger< DtAsciiSerializable > | |
| DtObjectDebugger () | |
| DtObjectDebugger (const DtObjectDebugger &) | |
| ~DtObjectDebugger () | |
Protected Member Functions inherited from DtObjectDebugger< DtScriptVrfObject > | |
| DtObjectDebugger () | |
| DtObjectDebugger (const DtObjectDebugger &) | |
| ~DtObjectDebugger () | |
| DtScriptVrfObject::DtScriptVrfObject | ( | const DtUUID & | name, |
| DtVrfObject *const | vrfObject | ||
| ) |
| DtScriptVrfObject::DtScriptVrfObject | ( | const DtUUID & | name, |
| DtSimManager * | simManager, | ||
| DtVrfObject *const | vrfObject | ||
| ) |
| DtScriptVrfObject::DtScriptVrfObject | ( | const DtScriptVrfObject & | orig | ) |
| DtScriptVrfObject::~DtScriptVrfObject | ( | ) |
| DtScriptVrfObject& DtScriptVrfObject::operator= | ( | const DtScriptVrfObject & | orig | ) |
| bool DtScriptVrfObject::operator== | ( | const DtScriptVrfObject & | orig | ) |
|
virtual |
Script API functions.
////////////////////////////////////! Returns the location of the entity.
|
virtual |
Returns the objects current speed in meters/second.
|
virtual |
Returns the UUID of this object.
|
virtual |
Vector info about entity.
Note that these vectors can be converted to a "geocentric" DtVectorGeoc3D with DtVector3D::makeVectorGeoc3DAtLoc.
Returns a unit vector in the direction the entity is facing. In local, e.g. north-east-down, terms, not geocentric.
|
virtual |
Velocity of entity, meters/sec.
In local, e.g. north-east-down, terms, not geocentric.
|
virtual |
Gets the height above terrain, which is just ownship altitude - terrain altitude.
|
virtual |
Check LOS to a target entity through terrain and objects, except for ownship object and target object.
LOS is taken from the center of the observer (not a specific sensor location).
|
virtual |
This allows the object to change its attachment without using the embarkation controller which is some circumstances is not desired.
Simple change attachment will not make any assumptions about placement of the object unlike embarkation which calculates where it thinks this object should be. If the parentName is null then the object will be detached if it is currenly attached.
|
virtual |
Determine if the given point is inside the polygon described by the vertices (footprint) of this object.
This is intended for area control objects, but can be called on any object. Not guaranteed to be correct if the polygon is not convex. The algorithm effectively projects the points into a plane determined by the first two edges of the polygon. If the points are not all coplanar, there is some chance of error.
|
virtual |
Returns true if item is independently tasked.
|
virtual |
Check LOS to a location through terrain and objects, except for ownship object.
LOS is taken from the center of the observer (not a specific sensor location).
|
virtual |
Return the entity type.
|
virtual |
Returns whether the object is an aggregate, using the object state repository definition of isAggregate().
|
virtual |
Returns whether the object is an aggregate, using the object state repository definition of isAggregate() and the object is in a DtDisaggregated state.
|
virtual |
Returns the echelon level as a string.
Uses the DIS aggregate categories, amended by MAK (see objTypeEnums.h)
|
virtual |
Returns entity force.
|
virtual |
Returns entity force enumeration (integer)
|
virtual |
Accessor for navigation by gameware enabled/disabled
|
virtual |
|
virtual |
Returns the current damage state as: none slight moderate destroyed.
|
virtual |
Returns the DIS enumerated value for the current lifeform posture.
|
virtual |
Returns the current appearance bits of the entity.
|
virtual |
Returns whether or not this entity is destroyed.
|
virtual |
Returns whether or not this entity is invisible.
|
virtual |
Returns whether or not this item is embarked on any other item.
|
virtual |
Given an object which is a parent, attach to it (immedate embark)
|
virtual |
Will return true if this entity is near the top of the specified entity given the specified distance (in meters).
Default distance is the entities lattice offset in Z + .5 meters
|
virtual |
|
virtual |
Parent this object is embarked on.
|
virtual |
|
virtual |
|
virtual |
Returns a list of the immediate subordinates of this aggregate.
|
virtual |
Returns a list of the vrf simulated immediate subordinates of this aggregate.
|
virtual |
Given the list of subordinates, return a DtRwReal that will contain the physical footprint (radius) of aggregate.
|
virtual |
These routines will return part information as applied to this entity. Flags will indicate if the parent information is to be used as well
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Returns a list of all leaf (lowest level) nodes (subordinates) of this aggregate.
Will recurse over all subordinate aggregates getting their subordinates until only items that have no children are part of this list
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Returns true if this object is simulated by VR-Forces.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void DtScriptVrfObject::terrainSurfaceDebug | ( | ) |
For debugging the terrain surface(s) at the entity's location.
| void DtScriptVrfObject::deleteObject | ( | ) |
Deletes object from simulation.
| bool DtScriptVrfObject::isDeleted | ( | ) | const |
Returns true if the object has been deleted from the simulation.
|
virtual |
|
virtual |
Returns true if the object is local to the back-end the script is running on.
|
virtual |
Returns the bounding volume and the bounding volume offset.
|
virtual |
Returns the damage type, damage per second, and the MOPP level required to protect against the NBC contaminated area.
|
virtual |
Returns the agent type of the NBC area.
|
virtual |
Returns true if this is an engineering object which has been breached.
|
virtual |
Returns the extended data with the given key, or an empty string if not found.
|
virtual |
Finds the closest point on the object's geometry to the given location.
Also returns the distance to that point.
|
virtual |
Calculates the point where the line defined by the two points intersects with the object.
Sets hasIntersection to false if there is no intersection point.
|
virtual |
Returns true if this is an environmental and it is active. All others will be considered active.
| bool DtScriptVrfObject::hasStateProperty | ( | const std::string & | propertyName | ) |
Checks to see if the property exists.
It is OK to call the get... Lua API functions when the property doesn't exist; a warning is printed and a nil object is returned. Using this test is appropriate though when it is known ahead of time that the property might not exist for some entity.
| bool DtScriptVrfObject::hasParameterProperty | ( | const std::string & | propertyName | ) |
|
virtual |
If object is lifeform with Diguy representation will return handitem if has one.
|
virtual |
|
virtual |
Script API functions above. ////////////////////////////////////!
Used by the object serializer so that an instance of this object can call checkSelf()
|
virtual |
Should return the string name of this object.
The object name should not be part of the serialization unless you want it to be, but you should take it into account when implementing both functions.
Implements DtAsciiSerializable.
|
virtual |
Inherited from DtAsciiSerializable. Returns a string serialized version of this class.
Implements DtAsciiSerializable.
Inherited from DtAsciiSerializable.
Returns true if it could fill its members with the data contained in the string. False otherwise.
Implements DtAsciiSerializable.
|
static |
Inherited from DtAsciiSerializable. Returns a new object of this type with default values.
|
inline |
For use by C++ side methods.
Call testValid() to try and fill in object pointer (if does not exist) or throw an exception if it really doesn't
| void DtScriptVrfObject::testValid | ( | ) | const |
Makes sure the object is valid. If not, throws exception.
|
inlinestatic |
Returns a null object.
References DtUUID::nullUUID().
|
protected |
|
protected |
|
mutableprotected |