CDisplayModule Class Reference

handles general display(layout tracking, initalizing display systems), timers and resource issues(paths). More...

#include <DisplayModule.h>

Inheritance diagram for CDisplayModule:

CModule CSingleton

List of all members.

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 CDisplayModuleGetInstance ()
 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!


Detailed Description

handles general display(layout tracking, initalizing display systems), timers and resource issues(paths).

also manages CEGUI related common issues, such as registering widgets


Member Function Documentation

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


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

Generated on Fri Jun 13 19:46:38 2008 for OPSIMUS by  doxygen 1.5.5