Blender V2.61 - r43446
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

Session Class Reference

#include <session.h>

List of all members.

Classes

struct  DelayedReset

Public Member Functions

 Session (const SessionParams &params)
 ~Session ()
void start ()
bool draw (BufferParams &params)
void wait ()
bool ready_to_reset ()
void reset (BufferParams &params, int samples)
void set_samples (int samples)
void set_pause (bool pause)

Public Attributes

Devicedevice
Scenescene
RenderBuffersbuffers
DisplayBufferdisplay
Progress progress
SessionParams params
int sample

Protected Member Functions

void run ()
void update_scene ()
void update_status_time (bool show_pause=false, bool show_done=false)
void tonemap ()
void path_trace (Tile &tile)
void reset_ (BufferParams &params, int samples)
void run_cpu ()
bool draw_cpu (BufferParams &params)
void reset_cpu (BufferParams &params, int samples)
void run_gpu ()
bool draw_gpu (BufferParams &params)
void reset_gpu (BufferParams &params, int samples)

Protected Attributes

struct Session::DelayedReset delayed_reset
TileManager tile_manager
bool device_use_gl
thread * session_thread
volatile bool display_outdated
volatile bool gpu_draw_ready
volatile bool gpu_need_tonemap
thread_condition_variable gpu_need_tonemap_cond
bool pause
thread_condition_variable pause_cond
thread_mutex pause_mutex
double start_time
double reset_time
double preview_time
double paused_time

Detailed Description

Definition at line 97 of file session.h.


Constructor & Destructor Documentation

CCL_NAMESPACE_BEGIN Session::Session ( const SessionParams params)
Session::~Session ( )

Member Function Documentation

bool Session::draw ( BufferParams params)

Definition at line 447 of file session.cpp.

References device_use_gl, draw_cpu(), and draw_gpu().

Referenced by BlenderSession::draw().

bool Session::draw_cpu ( BufferParams params) [protected]
bool Session::draw_gpu ( BufferParams params) [protected]
void Session::path_trace ( Tile tile) [protected]
bool Session::ready_to_reset ( )
void Session::reset ( BufferParams params,
int  samples 
)
void Session::reset_ ( BufferParams params,
int  samples 
) [protected]
void Session::reset_cpu ( BufferParams params,
int  samples 
) [protected]
void Session::reset_gpu ( BufferParams params,
int  samples 
) [protected]
void Session::run ( ) [protected]
void Session::run_cpu ( ) [protected]
void Session::run_gpu ( ) [protected]
void Session::set_pause ( bool  pause)

Definition at line 495 of file session.cpp.

References pause, pause_cond, and pause_mutex.

Referenced by BlenderSession::create_session(), and BlenderSession::synchronize().

void Session::set_samples ( int  samples)
void Session::start ( )
void Session::tonemap ( ) [protected]
void Session::update_scene ( ) [protected]
void Session::update_status_time ( bool  show_pause = false,
bool  show_done = false 
) [protected]
void Session::wait ( )

Definition at line 512 of file session.cpp.

References NULL, and session_thread.

Referenced by BlenderSession::render(), and ~Session().


Member Data Documentation

Referenced by reset_cpu(), run_cpu(), and Session().

bool Session::device_use_gl [protected]

Definition at line 145 of file session.h.

Referenced by draw(), reset(), run(), and Session().

Definition at line 102 of file session.h.

Referenced by draw_cpu(), draw_gpu(), reset_(), reset_gpu(), run_cpu(), Session(), tonemap(), and ~Session().

volatile bool Session::display_outdated [protected]

Definition at line 149 of file session.h.

Referenced by draw_cpu(), draw_gpu(), ready_to_reset(), reset_cpu(), reset_gpu(), Session(), and tonemap().

volatile bool Session::gpu_draw_ready [protected]

Definition at line 151 of file session.h.

Referenced by draw_gpu(), reset_(), run_gpu(), and Session().

volatile bool Session::gpu_need_tonemap [protected]

Definition at line 152 of file session.h.

Referenced by draw_gpu(), reset_gpu(), run_gpu(), Session(), and ~Session().

Definition at line 153 of file session.h.

Referenced by draw_gpu(), reset_gpu(), run_gpu(), and ~Session().

bool Session::pause [protected]

Definition at line 155 of file session.h.

Referenced by run_cpu(), run_gpu(), Session(), set_pause(), and ~Session().

Definition at line 156 of file session.h.

Referenced by reset_cpu(), reset_gpu(), run_cpu(), run_gpu(), set_pause(), set_samples(), and ~Session().

Definition at line 157 of file session.h.

Referenced by run_cpu(), run_gpu(), set_pause(), set_samples(), and ~Session().

double Session::paused_time [protected]

Definition at line 162 of file session.h.

Referenced by reset_(), run_cpu(), run_gpu(), Session(), and update_status_time().

double Session::preview_time [protected]

Definition at line 161 of file session.h.

Referenced by reset_(), Session(), and update_status_time().

double Session::reset_time [protected]

Definition at line 160 of file session.h.

Referenced by draw_cpu(), draw_gpu(), ready_to_reset(), reset_cpu(), reset_gpu(), run_gpu(), and Session().

Definition at line 105 of file session.h.

Referenced by reset_(), Session(), and update_status_time().

thread* Session::session_thread [protected]

Definition at line 147 of file session.h.

Referenced by Session(), start(), wait(), and ~Session().

double Session::start_time [protected]

Definition at line 159 of file session.h.

Referenced by reset_(), run_cpu(), run_gpu(), and Session().


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