lux::LuxGui Class Reference

#include <wxluxgui.h>

Inheritance diagram for lux::LuxGui:

lux::LuxMainFrame

List of all members.

Public Member Functions

 LuxGui (wxWindow *parent, bool opengl)
void RenderScenefile (wxString filename)
void SetRenderThreads (int num)

Protected Member Functions

void OnMenu (wxCommandEvent &event)
void OnOpen (wxCommandEvent &event)
void OnExit (wxCloseEvent &event)
void OnError (wxLuxErrorEvent &event)
void OnTimer (wxTimerEvent &event)
void OnSpin (wxSpinEvent &event)
void OnCommand (wxCommandEvent &event)
void OnIconize (wxIconizeEvent &event)
void ChangeRenderState (LuxGuiRenderState state)
void LoadImages ()
void EngineThread (wxString filename)
void UpdateThread ()
void UpdateStatistics ()

Protected Attributes

int m_numThreads
boost::thread * m_engineThread
boost::thread * m_updateThread
bool m_opengl
LuxGuiRenderState m_guiRenderState
LuxGuiWindowState m_guiWindowState
wxProgressDialog * m_progDialog
wxWindow * m_renderOutput
wxTimer * m_loadTimer
wxTimer * m_renderTimer
wxTimer * m_statsTimer
wxBitmap m_splashbmp


Detailed Description

Definition at line 110 of file wxluxgui.h.


Constructor & Destructor Documentation

LuxGui::LuxGui ( wxWindow *  parent,
bool  opengl 
)


Member Function Documentation

void LuxGui::ChangeRenderState ( LuxGuiRenderState  state  )  [protected]

void LuxGui::EngineThread ( wxString  filename  )  [protected]

Definition at line 354 of file wxluxgui.cpp.

References LUX_INFO, LUX_NOERROR, luxError, luxStatistics(), luxWait(), and ParseFile().

Referenced by RenderScenefile().

void LuxGui::LoadImages (  )  [protected]

void LuxGui::OnCommand ( wxCommandEvent &  event  )  [protected]

void LuxGui::OnError ( wxLuxErrorEvent event  )  [protected]

void LuxGui::OnExit ( wxCloseEvent &  event  )  [protected, virtual]

void lux::LuxGui::OnIconize ( wxIconizeEvent &  event  )  [protected]

Definition at line 334 of file wxluxgui.cpp.

References lux::HIDDEN, m_guiWindowState, and lux::SHOWN.

void LuxGui::OnMenu ( wxCommandEvent &  event  )  [protected, virtual]

void LuxGui::OnOpen ( wxCommandEvent &  event  )  [protected, virtual]

Reimplemented from lux::LuxMainFrame.

Definition at line 218 of file wxluxgui.cpp.

References RenderScenefile().

void LuxGui::OnSpin ( wxSpinEvent &  event  )  [protected]

Definition at line 305 of file wxluxgui.cpp.

References SetRenderThreads().

void LuxGui::OnTimer ( wxTimerEvent &  event  )  [protected]

void LuxGui::RenderScenefile ( wxString  filename  ) 

Definition at line 342 of file wxluxgui.cpp.

References EngineThread(), m_engineThread, m_loadTimer, and m_progDialog.

Referenced by OnOpen().

void LuxGui::SetRenderThreads ( int  num  ) 

void LuxGui::UpdateStatistics (  )  [protected]

Definition at line 397 of file wxluxgui.cpp.

References Floor2Int(), luxStatistics(), lux::LuxMainFrame::m_statusBar, and cimg_library::stats().

Referenced by OnTimer().

void LuxGui::UpdateThread (  )  [protected]

Definition at line 376 of file wxluxgui.cpp.

References luxUpdateFramebuffer().

Referenced by OnTimer().


Member Data Documentation

boost::thread* lux::LuxGui::m_engineThread [protected]

Definition at line 140 of file wxluxgui.h.

Referenced by OnExit(), and RenderScenefile().

Definition at line 142 of file wxluxgui.h.

Referenced by ChangeRenderState(), OnExit(), OnMenu(), and OnTimer().

Definition at line 143 of file wxluxgui.h.

Referenced by OnIconize(), and OnTimer().

wxTimer* lux::LuxGui::m_loadTimer [protected]

Definition at line 147 of file wxluxgui.h.

Referenced by OnTimer(), and RenderScenefile().

int lux::LuxGui::m_numThreads [protected]

Definition at line 136 of file wxluxgui.h.

Referenced by OnTimer(), and SetRenderThreads().

bool lux::LuxGui::m_opengl [protected]

Definition at line 141 of file wxluxgui.h.

wxProgressDialog* lux::LuxGui::m_progDialog [protected]

Definition at line 145 of file wxluxgui.h.

Referenced by OnTimer(), and RenderScenefile().

wxWindow* lux::LuxGui::m_renderOutput [protected]

Definition at line 146 of file wxluxgui.h.

Referenced by OnCommand(), and OnMenu().

wxTimer* lux::LuxGui::m_renderTimer [protected]

Definition at line 148 of file wxluxgui.h.

Referenced by OnCommand(), and OnMenu().

wxBitmap lux::LuxGui::m_splashbmp [protected]

Definition at line 151 of file wxluxgui.h.

Referenced by LoadImages(), and OnMenu().

wxTimer* lux::LuxGui::m_statsTimer [protected]

Definition at line 149 of file wxluxgui.h.

Referenced by OnCommand(), and OnMenu().

boost::thread * lux::LuxGui::m_updateThread [protected]

Definition at line 140 of file wxluxgui.h.

Referenced by OnCommand(), OnExit(), and OnTimer().


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

Generated on Mon May 18 07:18:37 2009 for lux by  doxygen 1.5.7.1