#include <wxluxgui.h>
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 |
Definition at line 110 of file wxluxgui.h.
LuxGui::LuxGui | ( | wxWindow * | parent, | |
bool | opengl | |||
) |
Constructor
Definition at line 66 of file wxluxgui.cpp.
References ID_LOADUPDATE, ID_RENDERUPDATE, ID_STATSUPDATE, luxErrorHandler(), lux::LuxGuiErrorHandler(), lux::SHOWN, and lux::WAITING.
void LuxGui::ChangeRenderState | ( | LuxGuiRenderState | state | ) | [protected] |
Definition at line 98 of file wxluxgui.cpp.
References lux::FINISHED, ID_RESUMEITEM, ID_RESUMETOOL, ID_STOPITEM, ID_STOPTOOL, lux::IDLE, lux::LuxMainFrame::m_file, m_guiRenderState, lux::LuxMainFrame::m_render, lux::LuxMainFrame::m_renderToolBar, lux::LuxMainFrame::m_threadSpinCtrl, lux::RENDERING, and lux::WAITING.
Referenced by OnCommand(), and OnMenu().
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] |
Definition at line 140 of file wxluxgui.cpp.
References ID_RESUMEITEM, ID_RESUMETOOL, ID_STOPITEM, ID_STOPTOOL, info_png, luxicon_png, lux::LuxMainFrame::m_auinotebook, lux::LuxMainFrame::m_render, lux::LuxMainFrame::m_renderToolBar, m_splashbmp, output_png, render_png, resume_png, splash_png, stop_png, and wxMEMORY_BITMAP.
void LuxGui::OnCommand | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 309 of file wxluxgui.cpp.
References ChangeRenderState(), lux::FINISHED, ID_RENDERUPDATE, ID_STATSUPDATE, m_renderOutput, m_renderTimer, m_statsTimer, lux::LuxMainFrame::m_statusBar, and m_updateThread.
void LuxGui::OnError | ( | wxLuxErrorEvent & | event | ) | [protected] |
Definition at line 248 of file wxluxgui.cpp.
References lux::wxLuxErrorEvent::GetError(), LUX_ERROR, LUX_INFO, LUX_SEVERE, LUX_WARNING, and lux::LuxMainFrame::m_logTextCtrl.
void LuxGui::OnExit | ( | wxCloseEvent & | event | ) | [protected, virtual] |
Reimplemented from lux::LuxMainFrame.
Definition at line 230 of file wxluxgui.cpp.
References LUX_INFO, LUX_NOERROR, luxCleanup(), luxError, luxExit(), m_engineThread, m_guiRenderState, m_updateThread, and lux::WAITING.
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] |
Reimplemented from lux::LuxMainFrame.
Definition at line 182 of file wxluxgui.cpp.
References ChangeRenderState(), ID_RESUMEITEM, ID_RESUMETOOL, ID_STOPITEM, ID_STOPTOOL, lux::IDLE, luxPause(), luxStart(), luxStatistics(), m_guiRenderState, m_renderOutput, m_renderTimer, m_splashbmp, m_statsTimer, and lux::RENDERING.
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] |
void LuxGui::OnTimer | ( | wxTimerEvent & | event | ) | [protected] |
Definition at line 267 of file wxluxgui.cpp.
References lux::FINISHED, ID_LOADUPDATE, ID_RENDERUPDATE, ID_RESUMEITEM, ID_STATSUPDATE, LUX_INFO, LUX_NOERROR, luxAddThread(), luxError, luxStatistics(), m_guiRenderState, m_guiWindowState, m_loadTimer, m_numThreads, m_progDialog, lux::LuxMainFrame::m_statusBar, m_updateThread, lux::SHOWN, UpdateStatistics(), and UpdateThread().
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 | ) |
Definition at line 382 of file wxluxgui.cpp.
References luxAddThread(), luxRemoveThread(), luxStatistics(), m_numThreads, and lux::LuxMainFrame::m_threadSpinCtrl.
Referenced by OnSpin().
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().
boost::thread* lux::LuxGui::m_engineThread [protected] |
LuxGuiRenderState lux::LuxGui::m_guiRenderState [protected] |
Definition at line 142 of file wxluxgui.h.
Referenced by ChangeRenderState(), OnExit(), OnMenu(), and OnTimer().
LuxGuiWindowState lux::LuxGui::m_guiWindowState [protected] |
wxTimer* lux::LuxGui::m_loadTimer [protected] |
int lux::LuxGui::m_numThreads [protected] |
bool lux::LuxGui::m_opengl [protected] |
Definition at line 141 of file wxluxgui.h.
wxProgressDialog* lux::LuxGui::m_progDialog [protected] |
wxWindow* lux::LuxGui::m_renderOutput [protected] |
wxTimer* lux::LuxGui::m_renderTimer [protected] |
wxBitmap lux::LuxGui::m_splashbmp [protected] |
wxTimer* lux::LuxGui::m_statsTimer [protected] |
boost::thread * lux::LuxGui::m_updateThread [protected] |