The Root IG Application object.
More...
|
| static DtVrvApplication * | get_last_instance () |
| | Returns the last DtVrvApplication created, regardless of DtDe. More...
|
| |
| static void | ShowSplashScreen (const std::string &imageName) |
| | Show a brief splash screen. More...
|
| |
| static void | ShowErrorMessage (const std::string &message, DtException *ex=0) |
| | Show a brief splash screen. More...
|
| |
| static DtVrvApplication * | findFromDe (DtDe &) |
| | If an IG is created by an application you can find the IG application which created/owns it. More...
|
| |
| static bool | parseDisplayEngineParameter (const std::string &argument, int &port, std::string &address, std::string &displayConfig) |
| | Parse a display engine command line argument. More...
|
| |
| static std::string | displayEngineParameterFormatting () |
| | Get the format of the display engine parameter. More...
|
| |
| static void | setShowErrorMessageDialog (bool show) |
| | set the show error message dialog flag. If true errors will show a dialog, if false they will print to console. More...
|
| |
| static bool | showErrorMessageDialog () |
| | get the show error message dialog flag. If true errors will show a dialog, if false they will print to console. More...
|
| |
|
| static void | handleFileError (const std::string &filename, const std::string &fileType) |
| | Handle when a file specified on the command line can't be read. More...
|
| |
| static void | bindViews (const std::vector< std::string > &filenames, makVrv::DtDeInitializer::ObserverStateMap &aMap) |
| | Places all views into the supplied observer view map and binds to the supplied observer view. More...
|
| |
| static bool | loadObserverStateRecords (const std::string &file, makArchives::DtObserverStateRecordsList &list) |
| | Loads up observer state records from filename into specified list. More...
|
| |
| static void | loadViews (const std::vector< std::string > &filenames, makVrv::DtDeInitializer::ObserverStateMap &aMap) |
| | Places all views into the supplied observer view map. More...
|
| |
The Root IG Application object.
To run the IG simply create one, initialize it and call run.
*
* using namespace makVrv;
*
* int main(int argc,char** argv)
* {
* }
*
*
- Examples
-
Type for a function object that transforms an app config in some way.
| makVrv::DtVrvApplication::DtVrvApplication |
( |
| ) |
|
Constructor.
Calls loadPluginsAndCreateIgInstance().
| virtual makVrv::DtVrvApplication::~DtVrvApplication |
( |
| ) |
|
|
virtual |
| static void makVrv::DtVrvApplication::ShowSplashScreen |
( |
const std::string & |
imageName | ) |
|
|
static |
Show a brief splash screen.
This functionality relies on launching an external splash screen process.
| static void makVrv::DtVrvApplication::ShowErrorMessage |
( |
const std::string & |
message, |
|
|
DtException * |
ex = 0 |
|
) |
| |
|
static |
Show a brief splash screen.
This functionality relies on application specific ability to show an error message. This function may block if user input is required. If an exception is provided the error messages are displayed.
Get the page configuration which may be altered by plugins.
Get the menu configuration which may be altered by plugins.
Get the toolbar configuration which may be altered by plugins.
| DtDe& makVrv::DtVrvApplication::de |
( |
| ) |
|
| virtual void makVrv::DtVrvApplication::initialize |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
virtual |
| virtual void makVrv::DtVrvApplication::run |
( |
| ) |
|
|
virtual |
If an IG is created by an application you can find the IG application which created/owns it.
- Returns
- 0 if the de was not created by a DtDe.
| static bool makVrv::DtVrvApplication::parseDisplayEngineParameter |
( |
const std::string & |
argument, |
|
|
int & |
port, |
|
|
std::string & |
address, |
|
|
std::string & |
displayConfig |
|
) |
| |
|
static |
Parse a display engine command line argument.
- Parameters
-
| Output | port will be set to -1 if no port is specified. |
- Returns
- true or false if the argument was properly parsed.
| static std::string makVrv::DtVrvApplication::displayEngineParameterFormatting |
( |
| ) |
|
|
static |
Get the format of the display engine parameter.
Add a configuration transformer that runs at command line processor level priority.
| virtual void makVrv::DtVrvApplication::installPrePluginTransform |
( |
const ApplicationTransform & |
transform, |
|
|
const std::string & |
id |
|
) |
| |
|
virtual |
Add a transformer that runs before plug-ins are loaded.
| virtual void makVrv::DtVrvApplication::installPostPluginTransform |
( |
const ApplicationTransform & |
transform, |
|
|
const std::string & |
id |
|
) |
| |
|
virtual |
Add a transformer that runs after plug-ins are loaded.
| virtual void makVrv::DtVrvApplication::installPostAssembleTransform |
( |
const ApplicationTransform & |
transform, |
|
|
const std::string & |
id |
|
) |
| |
|
virtual |
Add a transformer that runs after the application is assembled and before the DtDe is initialized.
| static void makVrv::DtVrvApplication::handleFileError |
( |
const std::string & |
filename, |
|
|
const std::string & |
fileType |
|
) |
| |
|
static |
Handle when a file specified on the command line can't be read.
Places all views into the supplied observer view map and binds to the supplied observer view.
Loads up observer state records from filename into specified list.
Places all views into the supplied observer view map.
| virtual void makVrv::DtVrvApplication::writeGuiConfiguration |
( |
| ) |
|
|
virtual |
Writes the toolbars and panels layout in the UI so they can be restored next time the app is loaded.
Reimplemented in makVrf::DtVrfGuiApplication.
| virtual bool makVrv::DtVrvApplication::updateCurrentGuiConfiguration |
( |
| ) |
|
|
virtual |
Provide access to the plugin manager.
| virtual void makVrv::DtVrvApplication::slot_sceneTerrainLoaded |
( |
const DtUnicode & |
terrain | ) |
|
|
virtual |
slots for the DtScene signals so the scenes/terrains can get added to the recent terrains list
| virtual void makVrv::DtVrvApplication::slot_sceneTerrainSaved |
( |
const std::string & |
terrain | ) |
|
|
virtual |
| virtual void makVrv::DtVrvApplication::slot_sceneToBeLoaded |
( |
const std::string & |
terrain | ) |
|
|
virtual |
| virtual void makVrv::DtVrvApplication::slot_sceneLoaded |
( |
const std::string & |
terrain | ) |
|
|
virtual |
| virtual void makVrv::DtVrvApplication::slot_sceneSaved |
( |
const std::string & |
terrain | ) |
|
|
virtual |
| virtual std::list<std::string>& makVrv::DtVrvApplication::getRecentTerrains |
( |
| ) |
|
|
virtual |
| virtual bool makVrv::DtVrvApplication::getShowStartupScreen |
( |
| ) |
const |
|
virtual |
| virtual void makVrv::DtVrvApplication::setShowStartupScreen |
( |
bool |
show | ) |
|
|
virtual |
| static void makVrv::DtVrvApplication::setShowErrorMessageDialog |
( |
bool |
show | ) |
|
|
static |
set the show error message dialog flag. If true errors will show a dialog, if false they will print to console.
| static bool makVrv::DtVrvApplication::showErrorMessageDialog |
( |
| ) |
|
|
static |
get the show error message dialog flag. If true errors will show a dialog, if false they will print to console.
| virtual void makVrv::DtVrvApplication::loadPluginModules |
( |
| ) |
|
|
protectedvirtual |
| virtual void makVrv::DtVrvApplication::assemble |
( |
| ) |
|
|
protectedvirtual |
| virtual void makVrv::DtVrvApplication::createDefaultDisplayEngineConfiguration |
( |
| ) |
|
|
protectedvirtual |
Create default engine configurations if none exist.
Helper method that returns an embedded display config.
| virtual void makVrv::DtVrvApplication::createDefaultObserverConfiguration |
( |
| ) |
|
|
protectedvirtual |
Create default observer configurations if none exist.
| virtual void makVrv::DtVrvApplication::loadSavedGuiState |
( |
| ) |
|
|
protectedvirtual |
| virtual void makVrv::DtVrvApplication::addRecentTerrain |
( |
const std::string & |
terrain | ) |
|
|
protectedvirtual |
add a terrain/scene to the list of recent terrains.
| const int makVrv::DtVrvApplication::MAX_RECENT_TERRAIN_COUNT = 20 |
|
static |
| DtDe* makVrv::DtVrvApplication::myDe |
|
protected |
| bool makVrv::DtVrvApplication::myIsSceneLoading |
|
protected |
| bool makVrv::DtVrvApplication::theShowErrorMessageDialog |
|
staticprotected |
The documentation for this class was generated from the following file:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf4-10-branch/include/vrvCore/DtVrvApplication.h