VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtStartupDialogLogic Class Reference

Provides the logic for the DtStartupDialog. More...

Inheritance diagram for makVrv::DtStartupDialogLogic:
Inheritance graph
[legend]

Public Member Functions

 DtStartupDialogLogic (DtDe &de, DtStartupDialogInterface &iface)
 CTOR.
virtual ~DtStartupDialogLogic ()
 DTOR.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Protected Member Functions

virtual void slot_neverShowAgain (bool neverShow)
 Set to never show this dialog again.
virtual void slot_loadTerrain (const std::string &terrain, const int recentlyUsedIdx)
 Tell VR-Vantage to load terrain.
virtual void slot_selectedTerrainChanged (const std::string &terrain, const int recentlyUsedIdx)
 Tell the logic that the terrain changed so the dialog needs the description for this terrain.
bool processRecentTerrains ()
 Read the recent terrain list from the settings and populate the list.
bool processTerrain ()
 Read all of the terrain from the directory and populate the list.
bool processScenes ()
 Read all of the scenes from the directory and populate the list.
const std::string makeKey (const std::string &terrain, int idx)
 Creates a key to map into the maps. This is used to make the recent terrain names unique.
const std::string findDescription (const std::string &key)
 Looks in the sceneRecord or terrainRecord based on the key and returns the description for it.
void loadTerrainOrScene (const std::string &key)
 Get the path based on the key and load the terrain or scene associated with it.

Protected Attributes

DtDemyDe
DtStartupDialogInterfacemyInterface
DtSignalConnectionManager myConnections
std::map< std::string,
std::string > 
myTerrainNameToPathMap
std::map< std::string,
std::string > 
mySceneNameToPathMap
std::map< std::string,
std::string > 
myTerrainNameToDescription
std::map< std::string,
std::string > 
mySceneNameToDescription

Detailed Description

Provides the logic for the DtStartupDialog.

Constructor & Destructor Documentation

makVrv::DtStartupDialogLogic::DtStartupDialogLogic ( DtDe de,
DtStartupDialogInterface iface 
)

CTOR.

virtual makVrv::DtStartupDialogLogic::~DtStartupDialogLogic ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtStartupDialogLogic::slot_neverShowAgain ( bool  neverShow)
protectedvirtual

Set to never show this dialog again.

virtual void makVrv::DtStartupDialogLogic::slot_loadTerrain ( const std::string &  terrain,
const int  recentlyUsedIdx 
)
protectedvirtual

Tell VR-Vantage to load terrain.

virtual void makVrv::DtStartupDialogLogic::slot_selectedTerrainChanged ( const std::string &  terrain,
const int  recentlyUsedIdx 
)
protectedvirtual

Tell the logic that the terrain changed so the dialog needs the description for this terrain.

bool makVrv::DtStartupDialogLogic::processRecentTerrains ( )
protected

Read the recent terrain list from the settings and populate the list.

Returns
true if any terrains were processed.
bool makVrv::DtStartupDialogLogic::processTerrain ( )
protected

Read all of the terrain from the directory and populate the list.

Returns
true if any terrains were processed.
bool makVrv::DtStartupDialogLogic::processScenes ( )
protected

Read all of the scenes from the directory and populate the list.

Returns
true if any scenes were processed.
const std::string makVrv::DtStartupDialogLogic::makeKey ( const std::string &  terrain,
int  idx 
)
protected

Creates a key to map into the maps. This is used to make the recent terrain names unique.

const std::string makVrv::DtStartupDialogLogic::findDescription ( const std::string &  key)
protected

Looks in the sceneRecord or terrainRecord based on the key and returns the description for it.

void makVrv::DtStartupDialogLogic::loadTerrainOrScene ( const std::string &  key)
protected

Get the path based on the key and load the terrain or scene associated with it.

Member Data Documentation

DtDe& makVrv::DtStartupDialogLogic::myDe
protected
DtStartupDialogInterface& makVrv::DtStartupDialogLogic::myInterface
protected
DtSignalConnectionManager makVrv::DtStartupDialogLogic::myConnections
protected
std::map<std::string, std::string> makVrv::DtStartupDialogLogic::myTerrainNameToPathMap
protected
std::map<std::string, std::string> makVrv::DtStartupDialogLogic::mySceneNameToPathMap
protected
std::map<std::string, std::string> makVrv::DtStartupDialogLogic::myTerrainNameToDescription
protected
std::map<std::string, std::string> makVrv::DtStartupDialogLogic::mySceneNameToDescription
protected

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)