![]() |
VR-Forces Developer's Guide
|
This class is the interface for import from or export to CSV files. This class will not interact with the simulation engine directory. The subclass vrfCSVScenarioDescriptionImporterExporter will perform that action based on what this class reads in from the file.
This CSV file will contain the following information (in column format): NAME - The name of the object ENUMERATION - The DIS enumeration FORCE - The object's FORCE SUPERIOR OR OVERLAY - The name of the superior or overlay this object is on, or blank if none POINTS - Triplets of points in DDS (degrees) LAT/LON/ALT
This file will extend the import/export class by interfacing with the simulation engine to incorporate scenario information

Protected Member Functions | |
| virtual bool | exportOrganization (const std::map< std::string, std::string > &exportData, const DtMsdlHierarchyPropertyMappings &) |
| virtual void | determineAltitude (const DtVector &local, DtGeodeticCoord &geod, bool useAGL) |
| virtual bool | exportTacticalGraphics (const std::map< std::string, std::string > &exportData, const DtMsdlHierarchyPropertyMappings &) |
| virtual bool | complete () const |
| virtual bool | importOrganization () |
| virtual bool | importTacticalGraphics () |
| virtual bool | prepareOrganizationCreationOrder (ObjectInformation *element) |
| virtual void | processCreateObjects () |
| virtual void | createEntity (ObjectInformation *) |
| virtual void | createTacticalGraphic (ObjectInformation *) |
| virtual DtString | deconflictName (const DtString &, int kind) |
Static Protected Member Functions | |
| static void | createObjectsCallback (void *) |
Protected Attributes | |
| std::vector< ObjectInformation * > | myOrganizedHierarchy |
| std::vector< ObjectInformation * > | myOrganizationCreationOrder |
| DtSimulationServices * | mySimulationServices |
Protected Attributes inherited from DtCsvScenarioDescriptionImporterExporter | |
| bool | myIsAgl |
| std::string | myOptionalName |
Protected Attributes inherited from DtScenarioDescriptionImporterExporter | |
| DtScenario | myScenario |
| std::string | myError |
| DtObjectParser * | myParser |
| DtForceType | myDesiredForce |
| DtVrfCsvScenarioDescriptionImporterExporter::DtVrfCsvScenarioDescriptionImporterExporter | ( | DtSimulationServices * | ) |
| DtVrfCsvScenarioDescriptionImporterExporter::DtVrfCsvScenarioDescriptionImporterExporter | ( | const DtVrfCsvScenarioDescriptionImporterExporter & | ) |
|
virtual |
DTOR.
|
virtual |
Clone to create a new copy of the object. Will be used as a "clean" version for import.
Reimplemented from DtCsvScenarioDescriptionImporterExporter.
|
virtual |
Imports into the simulation.
Reimplemented from DtCsvScenarioDescriptionImporterExporter.
|
virtual |
Imports from the simulation into internal structures.
Reimplemented from DtCsvScenarioDescriptionImporterExporter.
|
protectedvirtual |
Exports the entities and aggregates into internal structures.
|
protectedvirtual |
|
protectedvirtual |
Exports the tactical graphics into internal structures.
|
protectedvirtual |
Returns true if myOrganizationCreationOrder is 0 length.
Reimplemented from DtScenarioDescriptionImporterExporter.
|
protectedvirtual |
Schedule aggregates/entities for creation.
|
protectedvirtual |
Schedule tactical graphics for creation.
|
protectedvirtual |
Recursively add elements in order to be created – entities then containing superiors. Once all elements from a hierarchy have been scheduled to be create, set marker to wait until next tick to create other elements.
|
staticprotected |
Creates objects.
|
protectedvirtual |
|
protectedvirtual |
Creates an entity or an aggregate. If an aggregate will also aggregate entities into the hierarchy.
|
protectedvirtual |
Creates a tactical graphic object.
|
protectedvirtual |
Deconflicts duplicate names if they appear in the object manager. Will simply prepend a <n>_ to the name.
|
protected |
Hierarchy with top level nodes and tactical graphics only. This is what will be used to create the objects in the simulation.
|
protected |
Order in which to create organization items or tactical graphics. Empty elements will signal to stop the creation for this tick and continue next tick.
|
protected |