The Nebula Device 3: App::ViewerApplication Class Reference

The Nebula Device 3

App::ViewerApplication Class Reference

#include <viewerapplication.h>

Inheritance diagram for App::ViewerApplication:

App::RenderApplication App::Application

Detailed Description

Derived from RenderApplication, adds support for Stages, Views and GraphicsEntities to the asynchronous render app.

(C) 2007 Radon Labs GmbH

Public Member Functions

 ViewerApplication ()
 constructor
virtual ~ViewerApplication ()
 destructor
virtual bool Open ()
 open the application
virtual void Close ()
 close the application
void SetLogFileEnabled (bool b)
 enable/disable log file creation
void SetOverrideRootDirectory (const Util::String &rootDir)
 override root-directory
void SetMountStandardArchivesEnabled (bool b)
 enable/disable standard archive mounting
virtual void Run ()
 run the application
void SetCompanyName (const Util::String &n)
 set company name
const Util::StringGetCompanyName () const
 get company name
void SetAppTitle (const Util::String &n)
 set application name
const Util::StringGetAppTitle () const
 get application name
void SetAppID (const Util::String &n)
 set application id
const Util::StringGetAppID () const
 get application id
void SetAppVersion (const Util::String &n)
 set application version
const Util::StringGetAppVersion () const
 get application version
void SetCmdLineArgs (const Util::CommandLineArgs &a)
 set command line args
const Util::CommandLineArgsGetCmdLineArgs () const
 get command line args
virtual void Exit ()
 exit the application, call right before leaving main()
bool IsOpen () const
 return true if app is open
int GetReturnCode () const
 get the return code

Protected Member Functions

virtual void OnProcessInput ()
 process input (called before rendering)
virtual void OnUpdateFrame ()
 update world
Util::String LookupProjectDirectory ()
 lookup the toolkit project key in the registry (Win32 only!)
void SetQuitRequested (bool b)
 set quit requested flag
bool IsQuitRequested () const
 return true if quit requested
virtual void OnConfigureDisplay ()
 called to configure display
virtual void OnSetupResourceMappers ()
 called to setup resource mappers
Timing::Time GetTime () const
 get current absolute time
Timing::Time GetFrameTime () const
 get current frame time
void SetReturnCode (int c)
 set return code

Member Function Documentation

void App::RenderApplication::OnSetupResourceMappers (  )  [protected, virtual, inherited]

called to setup resource mappers

Configure the resource mapper objects for the render thread. NOTE: ResourceMapper objects are created and configured here (the main thread) and then HANDED OVER to the render thread. DO NOT access ResourceMappers after Display::Open() is called. It's best to create ResourceMappers and then immediately forget about them.