![]() |
VR-Forces 4.10 Class Documentation
|
The DtScriptedMovementObject will contain information about an object that can be used for scripted movement. More...
Public Types | |
| enum | CompletionRule { Detonate = 1, DetonateAndRemove, Remove, StayAroundAtCurrentSpeed, StayAroundAndStop } |
| enum | ClampType { PhaseGroundClampHighFidelity = 1, PhaseGroundClampLowFidelity = 2, PhaseAltitudeIsAboveTerrain = 3, PhaseGroundClampGeodeticNone = 4, PhaseClampWhileAltitudeChangeIsZero = 5, PhasePhasedArrayRadarFaceCartesian = 6, PhaseGroundClampTopographicNone = 7 } |
Public Member Functions | |
| DtScriptedMovementPhase () | |
| CTOR. More... | |
| virtual | ~DtScriptedMovementPhase () |
| DTOR. More... | |
| DtScriptedMovementPhase (const DtScriptedMovementPhase &) | |
| Copy constructor. More... | |
| DtScriptedMovementPhase & | operator= (const DtScriptedMovementPhase &) |
| Assignment operator. More... | |
| virtual void | setMovementFile (const std::string &) |
| Sets the movement file to use. More... | |
| virtual const std::string & | movementFile () const |
| virtual void | setFileConfiguration (const std::string &) |
| Sets the configuration to use as defined in the configurations loaded at simulation startup. More... | |
| virtual const std::string & | fileConfiguration () const |
| virtual void | setCompletionRule (CompletionRule) |
| Sets what to do with the object when the movement is complete. More... | |
| virtual CompletionRule | completionRule () const |
| virtual void | setClampType (ClampType) |
| Sets how to clamp the object. More... | |
| virtual ClampType | clampType () const |
| virtual void | setEntityType (const DtEntityType &) |
| Sets the type of object to create as part of this phase. More... | |
| virtual DtEntityType | entityType () const |
| virtual bool | canBePerformed (double deltaTime) const |
| Returns true if the phase can be performed at this simTime. More... | |
| virtual bool | canStillBePerformed (double deltatTime) const |
| Returns true if the phase can still be performed, even though it might not be able to be performed yet. More... | |
| virtual bool | loadMovementFile (const DtFilename &rootPath, const std::string &, int rowsToLoad=-1) |
| Load the movement file and return true if loaded. More... | |
| virtual bool | isLoaded () const |
| Returns whether or not file is loaded. More... | |
| virtual double | simTime (int row) const |
| Returns the sim time (in seconds) at the specified row. File must be loaded, else will return 0. More... | |
| virtual DtVector | bodyOffsetVector (int row) const |
| Returns the body offset vector at the specified row. If file is not loaded will return NULL vector. More... | |
| virtual DtTaitBryan | orientationOffset (int row) const |
| Returns the orientation offset for a given row. More... | |
| virtual void | setSimulationStartTimeOffset (double t) |
| Offset time to add to the simTime in the given row. Default is 0. More... | |
| virtual double | simulationStartTimeOffset () const |
| Offset time. More... | |
| virtual void | setFileConfiguration (const DtString &) |
| Sets a new file configuration for this phase. More... | |
| const DtMovementFile & | movementFileData () const |
| Returns movement file. More... | |
| DtMovementFile & | movementFileData () |
Protected Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
| When the class Archive corresponds to an output archive, the & operator is defined similar to <<. More... | |
Protected Attributes | |
| std::string | myMovementFile |
| CompletionRule | myCompletionRule |
| ClampType | myClampType |
| std::string | myEntityType |
| std::string | myFileConfiguration |
| DtMovementFile | myMovementFileData |
| DtScriptedMovementFileConfiguration | myScriptedMovementFileConfiguration |
| double | mySimulationStartTimeOffset |
Friends | |
| class | boost::serialization::access |
| Serialization/Deserialization //! More... | |
The DtScriptedMovementObject will contain information about an object that can be used for scripted movement.
This file will contain classes to define the configuration for the csv file being loaded as well as the phases of deployment and movement of scripted objectsInformation is saved in XML format The DtScriptedMovementPhase class defines a deployment phase for this scripted object. Each phase will create a new object and assign a movement file to it. The phase will be considered to be started at the first rows time in the movement file, offset from when the scripted movement began. The times are considered simulation time offsets
| DtScriptedMovementPhase::DtScriptedMovementPhase | ( | ) |
CTOR.
|
virtual |
DTOR.
| DtScriptedMovementPhase::DtScriptedMovementPhase | ( | const DtScriptedMovementPhase & | ) |
Copy constructor.
| DtScriptedMovementPhase& DtScriptedMovementPhase::operator= | ( | const DtScriptedMovementPhase & | ) |
Assignment operator.
|
virtual |
Sets the movement file to use.
The file is considered relative to where the original scripted movement object was loaded from. If there is no path for the original scripted movement object the applications start path will be used
|
virtual |
|
virtual |
Sets the configuration to use as defined in the configurations loaded at simulation startup.
If configuration file does not exist will use default based on movement file extension
|
virtual |
|
virtual |
Sets what to do with the object when the movement is complete.
Default is DetonateAndRemove
|
virtual |
|
virtual |
Sets how to clamp the object.
|
virtual |
|
virtual |
Sets the type of object to create as part of this phase.
|
virtual |
Returns true if the phase can be performed at this simTime.
Movement file must be loaded for this check to succeed
Returns true if the phase can still be performed, even though it might not be able to be performed yet.
|
virtual |
Load the movement file and return true if loaded.
If rowsToLoad is -1 loads all rows, else just loads up the number of specified rows
|
virtual |
Returns whether or not file is loaded.
Returns the sim time (in seconds) at the specified row. File must be loaded, else will return 0.
Returns the body offset vector at the specified row. If file is not loaded will return NULL vector.
|
virtual |
Returns the orientation offset for a given row.
Assumed to be offset from current orientation. The orientation returned is in topographic projection
|
virtual |
Offset time to add to the simTime in the given row. Default is 0.
|
virtual |
Offset time.
|
virtual |
Sets a new file configuration for this phase.
|
inline |
Returns movement file.
|
inline |
|
inlineprotected |
When the class Archive corresponds to an output archive, the & operator is defined similar to <<.
Likewise, when the class Archive is a type of input archive the & operator is defined similar to >>.
|
friend |
Serialization/Deserialization //!
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |