#include <DisplayModule.h>
Public Member Functions | |
void | Destroy () |
call this one when the application closes only | |
void | Init () |
initializes Ogre root, ogre common resources, display settings, creates te input handler and init gui system */ | |
void | UpdateActiveInterfaces () |
call this method when you know that some gui field needs to be updated using simulation data. | |
void | RequestShutdown (void) |
called when user wants to quit application | |
void | InsertLayout (CLayout *) |
inserts this layout to the stack | |
void | RemoveLayout (CLayout *) |
inserts this layout from the stack. | |
void | SetLayout (CLayout *) |
removes all layouts in the stack and places this one | |
void | TakeScreenshot () |
takes a screenshot and saves it in a file that increments its name thgrough iterations | |
void | InitSimSystem (Ogre::SceneManager **simScene) |
void | DestroySimSystem () |
removes Ogre managers, camerasi etc related to the simualtion system | |
void | DisableGuiWorld () |
removes non-gui render-queues (such as the one that manages meshes) from gui scene manager | |
void | EnableGuiWorld () |
displayes all render-queues in the gui scene manager | |
Static Public Member Functions | |
static CDisplayModule * | GetInstance () |
sub classes should implement this for easy access to self (which is a singleton) | |
Protected Member Functions | |
void | InitGuiSystem () |
void | InstallLayouts () |
create layout singleton object instancaes | |
void | RegisterWidgets () |
registers self-made widget classes | |
void | LoadFont (const CEGUI::String &logicalName, const CEGUI::String &fileName, const CEGUI::String &size, bool autoScaled=true, bool antiAliased=true) |
create a new font using logical name, filename and size | |
void | PrintChildNames (CEGUI::Window *win) |
given a window pointer, prints names of all windows attached to it (can be used to hack CEGUI widgets) | |
Protected Attributes | |
Ogre::Root * | mRoot |
Ogre root, a singleton. | |
Ogre::SceneManager * | mGuiSceneMgr |
The scene manager used for interfacing. | |
Ogre::SceneManager * | mSimSceneMgr |
The scene manager used for 3D simulation display. | |
Ogre::RenderWindow * | mRenderWindow |
Opsimus application window : there exists only one. | |
Ogre::Camera * | mGuiCamera |
a camera for the menu system | |
Ogre::String | mResourcePath |
resourcepath ("./ogre/") | |
CEGUI::System * | mGUISystem |
a main gate to GUI | |
vector< CLayout * > | layouts |
all layouts in the system | |
vector< CLayout * > | layoutsActive |
layouts which are attached to the root node. this one is used as a STACK! |
also manages CEGUI related common issues, such as registering widgets
void CDisplayModule::InitGuiSystem | ( | ) | [protected] |
load GUI resource group, create the scene manager, set the camera and viewport, create cegui renderer and cegui system, load fonts, create gui related meshes.
void CDisplayModule::InitSimSystem | ( | Ogre::SceneManager ** | simScene | ) |
call this every time a session is started apType affects the viewport