Application Class Reference

#include <Application.h>

List of all members.

Public Member Functions

 Application ()
 ~Application ()
bool run ()
appState getAppState ()
 Get current application state.
bool setAppState (appState _val)
 Set application state.
gameState getGameState ()
 Get current application state.
bool setGameState (gameState _val)
 Set application state.
Ogre::SceneManager * getOverlayManager ()
 Fetch overlay manager (GUI).
Ogre::SceneManager * getViewerManager ()
 Get viewer manager (used!).
Ogre::Real getTimeSinceLastFrame () const
 TimeSinceLastFrame - used for movement calculations.
InputHandlergetInputHandler ()
CameraManagergetCameraManager ()
ObjectManagergetObjectManager ()
PhysicsManagergetPhysicsManager ()
GUIgetGUI ()
const Ogre::Vector3 * getCraftPositionPtr ()
void setCraftPositionPtr (const Ogre::Vector3 *_val)
Ogre::ColourValue getColourValue ()
void setColourValue (Ogre::ColourValue &_val)

Static Public Member Functions

static ApplicationgetSingleton ()

Protected Member Functions

bool setup ()
bool configure ()
void chooseSceneManager ()
void createCameraManager ()
void createObjectManager ()
void createFrameListener ()
void createPhysicsManager ()
void createGUI ()
void createScene ()
void destroyScene ()
void createViewports ()
void setupResources ()
void createResourceListener ()
void loadResources ()
 Must at least do Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();.
void createInputHandler ()

Protected Attributes

Ogre::Root * m_root
Ogre::SceneManager * m_sceneManagerViewer
Ogre::SceneManager * m_sceneManagerOverlay
FrameListenerm_frameListener
Ogre::RenderWindow * m_window
Ogre::String m_resourcePath
Ogre::String m_configPath
Ogre::RenderTarget * m_renderTarget
Ogre::Light * m_light
InputHandlerm_inputHandler
CameraManagerm_cameraManager
ObjectManagerm_objectManager
PhysicsManagerm_physicsManager
GUIm_GUI
appState m_appState
gameState m_gameState
const Ogre::Vector3 * m_craftPositionPtr
Ogre::ColourValue m_colourValue

Static Protected Attributes

static Applications_self = 0

Detailed Description

Base application class.

Definition at line 28 of file Application.h.


Constructor & Destructor Documentation

Application::Application (  ) 

Definition at line 11 of file Application.cpp.

Application::~Application (  ) 

Definition at line 45 of file Application.cpp.


Member Function Documentation

void Application::chooseSceneManager (  )  [protected]

Definition at line 193 of file Application.cpp.

bool Application::configure (  )  [protected]

Definition at line 178 of file Application.cpp.

void Application::createCameraManager (  )  [protected]

Definition at line 200 of file Application.cpp.

void Application::createFrameListener (  )  [protected]

Definition at line 215 of file Application.cpp.

void Application::createGUI (  )  [protected]
void Application::createInputHandler (  )  [protected]

Definition at line 294 of file Application.cpp.

void Application::createObjectManager (  )  [protected]

Definition at line 205 of file Application.cpp.

void Application::createPhysicsManager (  )  [protected]

Definition at line 210 of file Application.cpp.

void Application::createResourceListener (  )  [protected]

Definition at line 282 of file Application.cpp.

void Application::createScene (  )  [protected]

Definition at line 299 of file Application.cpp.

void Application::createViewports (  )  [protected]

Definition at line 226 of file Application.cpp.

void Application::destroyScene (  )  [protected]

Definition at line 221 of file Application.cpp.

appState Application::getAppState (  ) 

Get current application state.

Definition at line 73 of file Application.cpp.

CameraManager * Application::getCameraManager (  ) 

Definition at line 349 of file Application.cpp.

Ogre::ColourValue Application::getColourValue (  ) 

Definition at line 379 of file Application.cpp.

const Ogre::Vector3 * Application::getCraftPositionPtr (  ) 

Definition at line 369 of file Application.cpp.

gameState Application::getGameState (  ) 

Get current application state.

Definition at line 99 of file Application.cpp.

GUI * Application::getGUI (  ) 

Definition at line 364 of file Application.cpp.

InputHandler * Application::getInputHandler (  ) 

Definition at line 344 of file Application.cpp.

ObjectManager * Application::getObjectManager (  ) 

Definition at line 354 of file Application.cpp.

Ogre::SceneManager * Application::getOverlayManager (  ) 

Fetch overlay manager (GUI).

Definition at line 120 of file Application.cpp.

PhysicsManager * Application::getPhysicsManager (  ) 

Definition at line 359 of file Application.cpp.

Application * Application::getSingleton (  )  [static]

Definition at line 36 of file Application.cpp.

Ogre::Real Application::getTimeSinceLastFrame (  )  const

TimeSinceLastFrame - used for movement calculations.

Definition at line 339 of file Application.cpp.

Ogre::SceneManager * Application::getViewerManager (  ) 

Get viewer manager (used!).

Definition at line 125 of file Application.cpp.

void Application::loadResources (  )  [protected]

Must at least do Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();.

Definition at line 288 of file Application.cpp.

bool Application::run (  ) 

Definition at line 51 of file Application.cpp.

bool Application::setAppState ( appState  _val  ) 

Set application state.

Definition at line 78 of file Application.cpp.

void Application::setColourValue ( Ogre::ColourValue &  _val  ) 

Definition at line 384 of file Application.cpp.

void Application::setCraftPositionPtr ( const Ogre::Vector3 *  _val  ) 

Definition at line 374 of file Application.cpp.

bool Application::setGameState ( gameState  _val  ) 

Set application state.

Definition at line 104 of file Application.cpp.

bool Application::setup (  )  [protected]

Definition at line 131 of file Application.cpp.

void Application::setupResources (  )  [protected]

Definition at line 250 of file Application.cpp.


Member Data Documentation

Definition at line 111 of file Application.h.

Definition at line 106 of file Application.h.

Ogre::ColourValue Application::m_colourValue [protected]

Definition at line 121 of file Application.h.

Ogre::String Application::m_configPath [protected]

Definition at line 100 of file Application.h.

const Ogre::Vector3* Application::m_craftPositionPtr [protected]

Definition at line 119 of file Application.h.

Definition at line 97 of file Application.h.

Definition at line 112 of file Application.h.

GUI* Application::m_GUI [protected]

Definition at line 109 of file Application.h.

Definition at line 105 of file Application.h.

Ogre::Light* Application::m_light [protected]

Definition at line 103 of file Application.h.

Definition at line 107 of file Application.h.

Definition at line 108 of file Application.h.

Ogre::RenderTarget* Application::m_renderTarget [protected]

Definition at line 101 of file Application.h.

Ogre::String Application::m_resourcePath [protected]

Definition at line 99 of file Application.h.

Ogre::Root* Application::m_root [protected]

Definition at line 93 of file Application.h.

Ogre::SceneManager* Application::m_sceneManagerOverlay [protected]

Definition at line 96 of file Application.h.

Ogre::SceneManager* Application::m_sceneManagerViewer [protected]

Definition at line 95 of file Application.h.

Ogre::RenderWindow* Application::m_window [protected]

Definition at line 98 of file Application.h.

Application * Application::s_self = 0 [static, protected]

Definition at line 123 of file Application.h.


The documentation for this class was generated from the following files:
Generated on Fri Aug 20 08:28:48 2010 for VecTRacer by  doxygen 1.6.3