#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Tabs.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Menu_Button.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Menu_Bar.H>
#include <FL/Fl_Choice.H>
#include <FL/Fl_Value_Slider.H>
#include <FL/Fl_File_Chooser.H>
#include <FL/Fl_Image.H>
#include <FL/x.H>
#include <FL/filename.H>
#include <boost/thread.hpp>
#include "renderwindow.h"
Go to the source code of this file.
Defines | |
#define | STATUS_RENDER_NONE 0 |
#define | STATUS_RENDER_IDLE 1 |
#define | STATUS_RENDER_RENDER 2 |
Functions | |
void | AddThread () |
void | RemoveThread () |
void | RenderStart () |
void | RenderPause () |
int | RenderScenefile () |
void | message_window (const char *label, const char *msg) |
void | open_cb (Fl_Widget *, void *) |
void | exit_cb (Fl_Widget *, void *) |
void | about_cb (Fl_Widget *, void *) |
void | addthread_cb (Fl_Widget *, void *) |
void | removethread_cb (Fl_Widget *, void *) |
void | start_cb (Fl_Widget *, void *) |
void | stop_cb (Fl_Widget *, void *) |
void | restart_cb (Fl_Widget *, void *) |
Variables | |
bool | GuiSceneReady = false |
float | framebufferUpdate |
Fl_RGB_Image * | rgb_image |
Fl_Window * | window |
RenderWindow * | renderview |
Fl_Group * | info_render |
Fl_Group * | info_render_group |
Fl_Group * | info_tonemap |
Fl_Group * | info_tonemap_group |
Fl_Group * | info_statistics |
Fl_Group * | info_statistics_group |
Fl_Button * | button_play |
Fl_Button * | button_pause |
Fl_Button * | button_restart |
boost::thread * | engine_thread |
boost::thread * | fb_update_thread |
int | gui_nrthreads = 1 |
char | gui_current_scenefile [256] |
int | status_render = STATUS_RENDER_NONE |
#define STATUS_RENDER_IDLE 1 |
Definition at line 69 of file luxgui.h.
Referenced by RenderPause(), and setInfo_render().
#define STATUS_RENDER_NONE 0 |
#define STATUS_RENDER_RENDER 2 |
Definition at line 70 of file luxgui.h.
Referenced by check_SceneReady(), RenderStart(), and setInfo_render().
void about_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 340 of file luxgui.cpp.
References image_splash(), cimg_library::cimg::wait(), and window.
void AddThread | ( | ) |
Definition at line 681 of file luxgui.cpp.
References gui_nrthreads, luxAddThread(), and setInfo_render().
Referenced by addthread_cb(), and RenderScenefile().
void addthread_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 492 of file luxgui.cpp.
References AddThread().
void exit_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 82 of file luxgui.cpp.
References engine_thread, fb_update_thread, gui_current_scenefile, LUX_INFO, LUX_NOERROR, luxCleanup(), luxError, and luxExit().
Referenced by make_MainWindow().
void message_window | ( | const char * | label, | |
const char * | msg | |||
) |
Definition at line 765 of file luxgui.cpp.
References message_window(), cimg_library::cimg::wait(), and window.
Referenced by message_window(), and RenderScenefile().
void open_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 302 of file luxgui.cpp.
References gui_current_scenefile, RenderScenefile(), status_render, STATUS_RENDER_NONE, cimg_library::cimg::wait(), and window.
void RemoveThread | ( | ) |
Definition at line 689 of file luxgui.cpp.
References gui_nrthreads, luxRemoveThread(), and setInfo_render().
Referenced by removethread_cb().
void removethread_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 497 of file luxgui.cpp.
References RemoveThread().
void RenderPause | ( | ) |
Definition at line 675 of file luxgui.cpp.
References luxPause(), setInfo_render(), status_render, and STATUS_RENDER_IDLE.
Referenced by stop_cb().
int RenderScenefile | ( | ) |
Definition at line 577 of file luxgui.cpp.
References AddThread(), Engine_Thread(), engine_thread, gui_current_scenefile, LUX_BADFILE, LUX_SEVERE, luxError, luxStatistics(), message_window(), parseError, renderingDone, threads, cimg_library::cimg::wait(), and window.
void RenderStart | ( | ) |
Definition at line 669 of file luxgui.cpp.
References luxStart(), setInfo_render(), status_render, and STATUS_RENDER_RENDER.
Referenced by start_cb().
void restart_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 510 of file luxgui.cpp.
Referenced by make_MainWindow().
void start_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 502 of file luxgui.cpp.
References RenderStart().
Referenced by make_MainWindow().
void stop_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 506 of file luxgui.cpp.
References RenderPause().
Referenced by make_MainWindow().
Fl_Button* button_pause |
Definition at line 60 of file luxgui.h.
Referenced by make_MainWindow(), and setInfo_render().
Fl_Button* button_play |
Definition at line 59 of file luxgui.h.
Referenced by make_MainWindow(), and setInfo_render().
Fl_Button* button_restart |
Definition at line 61 of file luxgui.h.
Referenced by make_MainWindow().
boost::thread* engine_thread |
Definition at line 63 of file luxgui.h.
Referenced by exit_cb(), main(), and RenderScenefile().
boost::thread* fb_update_thread |
Definition at line 64 of file luxgui.h.
Referenced by exit_cb(), main(), and merge_FrameBuffer().
float framebufferUpdate |
Definition at line 46 of file luxgui.h.
Referenced by bindFrameBuffer(), main(), and merge_FrameBuffer().
char gui_current_scenefile[256] |
Definition at line 66 of file luxgui.h.
Referenced by Engine_Thread(), exit_cb(), main(), open_cb(), and RenderScenefile().
int gui_nrthreads = 1 |
Definition at line 65 of file luxgui.h.
Referenced by AddThread(), RemoveThread(), and setInfo_render().
bool GuiSceneReady = false |
Definition at line 45 of file luxgui.h.
Referenced by bindFrameBuffer(), check_SceneReady(), and main().
Fl_Group* info_render |
Definition at line 52 of file luxgui.h.
Referenced by make_MainWindow(), and setInfo_render().
Fl_Group* info_render_group |
Definition at line 53 of file luxgui.h.
Referenced by make_MainWindow(), and setInfo_render().
Fl_Group* info_statistics |
Definition at line 56 of file luxgui.h.
Referenced by make_MainWindow(), and update_Statistics().
Fl_Group* info_statistics_group |
Definition at line 57 of file luxgui.h.
Referenced by make_MainWindow(), and setInfo_render().
Fl_Group* info_tonemap |
Definition at line 54 of file luxgui.h.
Referenced by make_MainWindow(), and merge_FrameBuffer().
Fl_Group* info_tonemap_group |
Definition at line 55 of file luxgui.h.
Referenced by make_MainWindow(), merge_FrameBuffer(), and setInfo_render().
Definition at line 51 of file luxgui.h.
Referenced by bindFrameBuffer(), make_MainWindow(), and merge_FrameBuffer().
Fl_RGB_Image* rgb_image |
Definition at line 47 of file luxgui.h.
Referenced by bindFrameBuffer(), and main().
int status_render = STATUS_RENDER_NONE |
Definition at line 72 of file luxgui.h.
Referenced by check_SceneReady(), main(), open_cb(), RenderPause(), RenderStart(), and setInfo_render().
Fl_Window* window |
Definition at line 48 of file luxgui.h.
Referenced by about_cb(), main(), message_window(), open_cb(), and RenderScenefile().