Midterm: Team Cyber
 All Classes Files Functions Variables Typedefs Pages
Public Member Functions | Static Public Attributes | 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 onAI () override
 
void onBuildingTest ()
 
void onCityGeneration ()
 Generate city. More...
 
virtual void onCleanup () override
 
virtual bool onEvent (const GEvent &e) override
 
virtual void onGraphics2D (RenderDevice *rd, Array< shared_ptr< Surface2D > > &surface2D) override
 
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 ()
 Render a image using raytracer when the render button is clicked. More...
 
void onResolutionChange ()
 Update things when some item in the dropdown box is selected. More...
 
virtual void onSimulation (RealTime rdt, SimTime sdt, SimTime idt) override
 
virtual void onUserInput (UserInput *ui) override
 
void onVideoStart ()
 Linked to the video recording GUI, when called, resets m_framecount and set m_isRecording to true, refreshes the current scene to start recordind. More...
 

Static Public Attributes

static int m_lightsGui
 
static int m_pixelsGui
 
static float m_raytraceTimeGui
 
static int m_trianglesGui
 
static float m_triTreeTimeGui
 

Protected Member Functions

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

Protected Attributes

String m_cityConfig
 Config file used for city generation. More...
 
int m_endFrame
 Stop raytracing and outputting video after the specified end frame. More...
 
int m_frameCount
 Count the number of frames after the recording started. More...
 
bool m_isRecording
 Flag signalling whether we are recording a video or not. More...
 
RealTime m_lastLightingChangeTime
 
RayTracer::Settings m_rayTracerSettings
 settings to pass to RayTracer::render More...
 
RayTracer::Stats m_rayTracerStats
 stats of raytracing to be passed back by RayTracer::render More...
 
GuiDropDownList * m_resolutionList
 Dropdown list containing all the possible resolutions for the rendered image. More...
 
String m_saveFile
 Filename of the video we want to save. More...
 
int m_startFrame
 Start raytracing and outputting video after the specified start frame. More...
 
shared_ptr< VideoOutput > m_video
 Used to output video. More...
 

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::makeGUI ( )
protected

Called from onInit.

void App::onAI ( )
overridevirtual
void App::onBuildingTest ( )
void App::onCityGeneration ( )

Generate city.

void App::onCleanup ( )
overridevirtual
bool App::onEvent ( const GEvent &  e)
overridevirtual
void App::onGraphics2D ( RenderDevice *  rd,
Array< shared_ptr< Surface2D > > &  surface2D 
)
overridevirtual
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 ( )

Render a image using raytracer when the render button is clicked.

void App::onResolutionChange ( )

Update things when some item in the dropdown box is selected.

void App::onSimulation ( RealTime  rdt,
SimTime  sdt,
SimTime  idt 
)
overridevirtual
void App::onUserInput ( UserInput *  ui)
overridevirtual
void App::onVideoStart ( )

Linked to the video recording GUI, when called, resets m_framecount and set m_isRecording to true, refreshes the current scene to start recordind.

Member Data Documentation

String App::m_cityConfig
protected

Config file used for city generation.

int App::m_endFrame
protected

Stop raytracing and outputting video after the specified end frame.

int App::m_frameCount
protected

Count the number of frames after the recording started.

bool App::m_isRecording
protected

Flag signalling whether we are recording a video or not.

RealTime App::m_lastLightingChangeTime
protected
int App::m_lightsGui
static
int App::m_pixelsGui
static
RayTracer::Settings App::m_rayTracerSettings
protected

settings to pass to RayTracer::render

RayTracer::Stats App::m_rayTracerStats
protected

stats of raytracing to be passed back by RayTracer::render

float App::m_raytraceTimeGui
static
GuiDropDownList* App::m_resolutionList
protected

Dropdown list containing all the possible resolutions for the rendered image.

String App::m_saveFile
protected

Filename of the video we want to save.

int App::m_startFrame
protected

Start raytracing and outputting video after the specified start frame.

int App::m_trianglesGui
static
float App::m_triTreeTimeGui
static
shared_ptr<VideoOutput> App::m_video
protected

Used to output video.


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