VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrf::DtMsdlExporter Class Reference

The makVrf::DtMsdlExporter class will allow the user to specify any mappings that do not exist for entities/tactical graphics that appear in the VR-Forcees scenario. If everything is properly mapped then the process of export will begin without user interaction. The back-end will be queried for the current mappings file and the current entities/tactical graphics will be checked to see if there are mappings between dis enumeration and Sidc code.

Inheritance diagram for makVrf::DtMsdlExporter:
Inheritance graph
[legend]

Public Member Functions

 DtMsdlExporter (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
 
virtual ~DtMsdlExporter () override
 
virtual void exportFile (const QString &)
 

Public Attributes

QLabel * myDescription
 
QVBoxLayout * myEntitiesLayout
 
QLabel * myEntitiesLabel
 
QFrame * myEntitiesLine
 
QTreeWidget * myMissingEntitiesTree
 
QVBoxLayout * myTacticalGraphicsLayout
 
QLabel * myTacticalGraphicsLabel
 
QFrame * myTacticalGraphicsLine
 
QTreeWidget * myMissingTacticalGraphicsTree
 
QHBoxLayout * myButtonLayout
 
QPushButton * myOKButton
 
QPushButton * myCancelButton
 

Protected Member Functions

virtual bool exportableObject (const DtEntityType &t) const
 
virtual void processMsdlSidcMessage (DtSimMessage *m)
 
virtual void processMissingItems ()
 
virtual void accept () override
 
virtual QComboBox * createSidcSelectionWidget (bool forEntities)
 
virtual void setupMissingEntities ()
 
virtual void setupMissingTacticalGraphics ()
 
virtual void exportScenarioDescription ()
 
virtual void addMissingEntities ()
 
virtual void addMissingTacticalGraphics ()
 

Protected Attributes

makVrv::DtDe & myDe
 
DtFilename myMsdlFile
 
int myRequestId
 
DtMsdlHierarchyPropertyMappings myCurrentMappings
 
DtMsdlHierarchyPropertyMappings myNewMappings
 
std::map< std::string,
QTreeWidgetItem * > 
myMissingItems
 
std::map< std::string,
std::string > 
myMissingEntities
 
std::map< std::string,
std::string > 
myMissingTacticalGraphics
 

Constructor & Destructor Documentation

makVrf::DtMsdlExporter::DtMsdlExporter ( makVrv::DtDe &  de,
QWidget *  parent,
const Qt::WindowFlags &  flags = 0 
)
virtual makVrf::DtMsdlExporter::~DtMsdlExporter ( )
overridevirtual

Member Function Documentation

virtual void makVrf::DtMsdlExporter::exportFile ( const QString &  )
virtual

Will request of the currently selected back-end the current MSDL to Sidc code mappings. The MSDL scenario will then be exported. Any equipment or tactical graphics that do not have a valid mapping will be presented to the user for mapping. If no mappings are needed then the scenario will be sent to the back-end for export.

virtual bool makVrf::DtMsdlExporter::exportableObject ( const DtEntityType &  t) const
protectedvirtual

Returns true if object is exportable.

virtual void makVrf::DtMsdlExporter::processMsdlSidcMessage ( DtSimMessage *  m)
protectedvirtual
virtual void makVrf::DtMsdlExporter::processMissingItems ( )
protectedvirtual

Processes the missing items and puts this dialog into exec mode to allow user to select mappings for tactical graphics and entities.

virtual void makVrf::DtMsdlExporter::accept ( )
overrideprotectedvirtual

Called to accept this dialog, will start the import process.

virtual QComboBox* makVrf::DtMsdlExporter::createSidcSelectionWidget ( bool  forEntities)
protectedvirtual

Returns a new combo box with all potential Sidc codes items that can be selected.

virtual void makVrf::DtMsdlExporter::setupMissingEntities ( )
protectedvirtual

Setup section for missing entities to pick enumerations for.

virtual void makVrf::DtMsdlExporter::setupMissingTacticalGraphics ( )
protectedvirtual

Setup section for missing tactical graphics to pick enumerations for.

virtual void makVrf::DtMsdlExporter::exportScenarioDescription ( )
protectedvirtual

Sends message to back-end to export scenario description, including any mappings.

virtual void makVrf::DtMsdlExporter::addMissingEntities ( )
protectedvirtual

Iterates over entity states and adds missing entities to Sidc code mappings.

virtual void makVrf::DtMsdlExporter::addMissingTacticalGraphics ( )
protectedvirtual

Iterates over tactical graphics and adds missing tactical graphics to Sidc code mappings.

Member Data Documentation

QLabel* makVrf::DtMsdlExporter::myDescription
QVBoxLayout* makVrf::DtMsdlExporter::myEntitiesLayout
QLabel* makVrf::DtMsdlExporter::myEntitiesLabel
QFrame* makVrf::DtMsdlExporter::myEntitiesLine
QTreeWidget* makVrf::DtMsdlExporter::myMissingEntitiesTree
QVBoxLayout* makVrf::DtMsdlExporter::myTacticalGraphicsLayout
QLabel* makVrf::DtMsdlExporter::myTacticalGraphicsLabel
QFrame* makVrf::DtMsdlExporter::myTacticalGraphicsLine
QTreeWidget* makVrf::DtMsdlExporter::myMissingTacticalGraphicsTree
QHBoxLayout* makVrf::DtMsdlExporter::myButtonLayout
QPushButton* makVrf::DtMsdlExporter::myOKButton
QPushButton* makVrf::DtMsdlExporter::myCancelButton
makVrv::DtDe& makVrf::DtMsdlExporter::myDe
protected
DtFilename makVrf::DtMsdlExporter::myMsdlFile
protected
int makVrf::DtMsdlExporter::myRequestId
protected
DtMsdlHierarchyPropertyMappings makVrf::DtMsdlExporter::myCurrentMappings
protected
DtMsdlHierarchyPropertyMappings makVrf::DtMsdlExporter::myNewMappings
protected
std::map<std::string, QTreeWidgetItem*> makVrf::DtMsdlExporter::myMissingItems
protected
std::map<std::string, std::string> makVrf::DtMsdlExporter::myMissingEntities
protected
std::map<std::string, std::string> makVrf::DtMsdlExporter::myMissingTacticalGraphics
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)