luxgui.cpp File Reference

#include "lux.h"
#include "api.h"
#include "scene.h"
#include "camera.h"
#include "film.h"
#include "error.h"
#include "luxgui.h"
#include "renderwindow.h"
#include "icons.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <exception>
#include <boost/program_options.hpp>
#include <boost/thread.hpp>
#include <boost/thread/xtime.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/bind.hpp>
#include <zlib.h>
#include "splash.h"

Go to the source code of this file.

Functions

void AddThread ()
void exit_cb (Fl_Widget *, void *)
Fl_Double_Window * make_MainWindow (int width, int height, Fl_RGB_Image *rgb_buffer, bool opengl_enabled)
void open_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 *)
void Engine_Thread ()
void merge_FrameBuffer_Thread (bool *threadDone)
void merge_FrameBuffer (void *)
int RenderScenefile ()
void setInfo_render ()
void RenderStart ()
void RenderPause ()
void RemoveThread ()
void bindFrameBuffer ()
void update_Statistics (void *)
void check_SceneReady (void *)
void message_window (const char *label, const char *msg)
int main (int ac, char *av[])

Variables

static int threads
bool parseError
bool renderingDone
Fl_Menu_Item menu_bar []
Fl_Menu_Item menu_threads []

Function Documentation

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 bindFrameBuffer (  ) 
void check_SceneReady ( void *   ) 
void Engine_Thread (  ) 
void exit_cb ( Fl_Widget *  ,
void *   
)
int main ( int  ac,
char *  av[] 
)
Fl_Double_Window* make_MainWindow ( int  width,
int  height,
Fl_RGB_Image *  rgb_buffer,
bool  opengl_enabled 
)
void merge_FrameBuffer ( void *   ) 
void merge_FrameBuffer_Thread ( bool *  threadDone  ) 

Definition at line 540 of file luxgui.cpp.

References luxUpdateFramebuffer().

Referenced by merge_FrameBuffer().

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 *   
)
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 (  ) 
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 setInfo_render (  ) 
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().

void update_Statistics ( void *   ) 

Definition at line 717 of file luxgui.cpp.

References Floor2Int(), info_statistics, and luxStatistics().

Referenced by check_SceneReady().


Variable Documentation

Fl_Menu_Item menu_bar[]
Initial value:
 {
        { "&File", 0, 0, 0, FL_SUBMENU, FL_NORMAL_LABEL, 0, 11, 0 },
                {"    &Open scenefile...", FL_CTRL + 'o', (Fl_Callback*) open_cb, 0, 128, FL_NORMAL_LABEL, 0, 11, 0 },
                {"    &Exit", FL_CTRL + 'q', (Fl_Callback *) exit_cb, 0, 0, FL_NORMAL_LABEL, 0, 11, 0 },
                { 0 },
        { "&Help", 0, 0, 0, FL_SUBMENU, FL_NORMAL_LABEL, 0, 11, 0 },
                {"    &About...", 0, (Fl_Callback *) about_cb, 0, 0, FL_NORMAL_LABEL, 0, 11, 0 },
                { 0 },
        { 0 }
}

Definition at line 65 of file luxgui.cpp.

Referenced by make_MainWindow().

Fl_Menu_Item menu_threads[]
Initial value:
 {
        { "+ Add Thread", 0, (Fl_Callback *) addthread_cb, 0, 0, FL_NORMAL_LABEL, 0, 11, 0 },
        { "- Remove Thread", 0, (Fl_Callback *) removethread_cb, 0, 0, FL_NORMAL_LABEL, 0, 11, 0 },
        { 0, 0, 0, 0, 0, 0, 0, 0, 0 }
}

Definition at line 76 of file luxgui.cpp.

bool parseError

Definition at line 60 of file luxgui.cpp.

Definition at line 61 of file luxgui.cpp.

Referenced by Engine_Thread(), merge_FrameBuffer(), and RenderScenefile().

int threads [static]

Definition at line 59 of file luxgui.cpp.


Generated on 22 Jan 2010 for lux by  doxygen 1.6.1