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 | Protected Member Functions | Protected Attributes
makVrv::DtStartupDialogLogic Class Reference

Provides the logic for the DtStartupDialog.

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

Public Member Functions

 DtStartupDialogLogic (DtDe &de, DtStartupDialogInterface &iface)
 
virtual ~DtStartupDialogLogic ()
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Protected Member Functions

virtual void slot_neverShowAgain (bool neverShow)
 
virtual void slot_loadTerrain (const std::string &terrain, const int recentlyUsedIdx)
 
virtual void slot_selectedTerrainChanged (const std::string &terrain, const int recentlyUsedIdx)
 
bool processRecentTerrains ()
 
bool processTerrain ()
 
bool processScenes ()
 
const std::string makeKey (const std::string &terrain, int idx)
 
const std::string findDescription (const std::string &key)
 
void loadTerrainOrScene (const std::string &key)
 

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
 

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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)