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

Public Member Functions | |
| DtScriptVrfObject (const DtString &name, 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 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 | 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 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 (interger) | |
| virtual std::string | getDamageState () const |
| Returns the current damage state as: none slight moderate destroyed. | |
| virtual bool | isDestroyed () const |
| Returns whether or not this entity is destroyed. | |
| virtual bool | isEmbarked () const |
| Returns whether or not this item is embarked on any other item. | |
| virtual DtScriptVrfObject | getEmbarkedOn () const |
| virtual std::list < DtScriptVrfObject > | getEmbarkedObjects (void) const |
| virtual std::list < DtScriptVrfObject > | getSubordinates (void) const |
| Returns the object this object is embarked on. | |
| virtual std::list < DtScriptVrfObject > | getCapableSubordinates (void) const |
| virtual std::list< DtLocation3D > | getLocations3D (void) const |
| virtual std::string | getName () const |
| virtual double | getHeading () const |
| 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 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. | |
| virtual DtLocation3D | getLocation3D () const |
| Script API functions. | |
| virtual double | getSpeed () const |
| Returns the objects current speed in meters/second. | |
| virtual DtVector3D | getDirection3D () const |
| Vector info about entity. | |
| virtual DtVector3D | getVelocity3D () const |
| Velocity of entity, meters/sec. | |
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 () |
Static Public Member Functions | |
| static DtAsciiSerializable * | creator () |
| Inherited from DtAsciiSerializable. Returns a new object of this type with default values. | |
Protected Member Functions | |
| void | testValid () const |
| Makes sure the object is valid. If not, throws exception. | |
| void | addObjectAboutToBeRemovedCallback () |
| Adds the object about to be removed callback. | |
| void | removeObjectAboutToBeRemovedCallback () |
| Removes the object about to be removed callback. | |
| virtual void | processObjectAboutToBeRemoved (DtVrfObject *) |
Static Protected Member Functions | |
| static void | objectAboutToBeRemovedCallback (DtVrfObject *, void *usr) |
Protected Attributes | |
| DtString | myEntityName |
| DtVrfObject * | myObject |
| bool | myDeleted |
| DtSimManager * | mySimManager |
| DtScriptVrfObject::DtScriptVrfObject | ( | const DtString & | name, |
| 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 |
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 |
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 |
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 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 (interger)
|
virtual |
Returns the current damage state as: none slight moderate destroyed.
|
virtual |
Returns whether or not this entity is destroyed.
|
virtual |
Returns whether or not this item is embarked on any other item.
|
virtual |
|
virtual |
|
virtual |
Returns the object this object is embarked on.
Even if not embarked will return an object, however, it will not be valid
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| 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 |
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.
|
protected |
Makes sure the object is valid. If not, throws exception.
|
protected |
Adds the object about to be removed callback.
|
protected |
Removes the object about to be removed callback.
|
staticprotected |
|
protectedvirtual |
|
protected |
|
mutableprotected |
|
protected |
|
protected |