Blue Project
Kyle,Nigel,Jamie
 All Classes Files Functions Variables Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
App Class Reference

Application framework. More...

#include <App.h>

Inheritance diagram for App:

Public Member Functions

 App (const GApp::Settings &settings=GApp::Settings())
 
virtual void endProgram ()
 Sets m_endProgram to true. More...
 
virtual void loadScene (const String &sceneName) override
 We changed this method so that it would not popup a loading scene method. More...
 
virtual void onAI () override
 
virtual void onCleanup () override
 
virtual bool onEvent (const GEvent &e) override
 
virtual void onGraphics2D (RenderDevice *rd, Array< shared_ptr< Surface2D > > &surface2D) override
 We retooled this method to both support video recording when the recording boolean is set to true and to support changes in time to the terrain by getting the next art piece from our Art variable and then loading that the png and reloading the scene. More...
 
virtual void onGraphics3D (RenderDevice *rd, Array< shared_ptr< Surface > > &surface3D) override
 
virtual void onInit () override
 
virtual void onNetwork () override
 
virtual void onPose (Array< shared_ptr< Surface > > &posed3D, Array< shared_ptr< Surface2D > > &posed2D) override
 
void onRenderButton ()
 
void onResolutionChange ()
 
virtual void onSimulation (RealTime rdt, SimTime sdt, SimTime idt) override
 
virtual void onUserInput (UserInput *ui) override
 
void onVideoButton ()
 This method is called when the video button is pressed. More...
 
void readHeightField (shared_ptr< Image > grayscale, String offFile, float vertScale, float horScale, float textScale)
 

Protected Member Functions

void makeGUI ()
 Called from onInit. More...
 

Protected Attributes

shared_ptr< ArtartGenerator
 
float artTimeIncrement
 
float framesToCapture
 
RealTime m_lastLightingChangeTime
 
RayTracer::Settings m_rayTracerSettings
 
RayTracer::Stats m_rayTracerStats
 
GuiDropDownList * m_resolutionList
 
float ourTime
 
shared_ptr< RayTracerrayTracer
 
bool recording
 
bool runTerChanger
 
shared_ptr< G3D::VideoOutput > video
 

Detailed Description

Application framework.

Constructor & Destructor Documentation

App::App ( const GApp::Settings &  settings = GApp::Settings())

Member Function Documentation

void App::endProgram ( )
virtual

Sets m_endProgram to true.

void App::loadScene ( const String &  sceneName)
overridevirtual

We changed this method so that it would not popup a loading scene method.

Unfortunately, the original method refers to and modifies private variables of GApp which we are no longer able to update as before. We did not notice any changes in vbehavior from omitting those private variable changes however.

void App::makeGUI ( )
protected

Called from onInit.

void App::onAI ( )
overridevirtual
void App::onCleanup ( )
overridevirtual
bool App::onEvent ( const GEvent &  e)
overridevirtual
void App::onGraphics2D ( RenderDevice *  rd,
Array< shared_ptr< Surface2D > > &  surface2D 
)
overridevirtual

We retooled this method to both support video recording when the recording boolean is set to true and to support changes in time to the terrain by getting the next art piece from our Art variable and then loading that the png and reloading the scene.

void App::onGraphics3D ( RenderDevice *  rd,
Array< shared_ptr< Surface > > &  surface3D 
)
overridevirtual
void App::onInit ( )
overridevirtual
void App::onNetwork ( )
overridevirtual
void App::onPose ( Array< shared_ptr< Surface > > &  posed3D,
Array< shared_ptr< Surface2D > > &  posed2D 
)
overridevirtual
void App::onRenderButton ( )
void App::onResolutionChange ( )
void App::onSimulation ( RealTime  rdt,
SimTime  sdt,
SimTime  idt 
)
overridevirtual
void App::onUserInput ( UserInput *  ui)
overridevirtual
void App::onVideoButton ( )

This method is called when the video button is pressed.

It creates a raytracer to use, creates the art generator then sets the recording boolean to true. It also creates the video output which will be appending the images created from render.

void App::readHeightField ( shared_ptr< Image >  grayscale,
String  offFile,
float  vertScale,
float  horScale,
float  textScale 
)

Member Data Documentation

shared_ptr<Art> App::artGenerator
protected
float App::artTimeIncrement
protected
float App::framesToCapture
protected
RealTime App::m_lastLightingChangeTime
protected
RayTracer::Settings App::m_rayTracerSettings
protected
RayTracer::Stats App::m_rayTracerStats
protected
GuiDropDownList* App::m_resolutionList
protected
float App::ourTime
protected
shared_ptr<RayTracer> App::rayTracer
protected
bool App::recording
protected
bool App::runTerChanger
protected
shared_ptr<G3D::VideoOutput> App::video
protected

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