Blender V2.61 - r43446
|
#include <blender_session.h>
Definition at line 33 of file blender_session.h.
CCL_NAMESPACE_BEGIN BlenderSession::BlenderSession | ( | BL::RenderEngine | b_engine, |
BL::UserPreferences | b_userpref, | ||
BL::BlendData | b_data, | ||
BL::Scene | b_scene | ||
) |
Definition at line 42 of file blender_session.cpp.
References b_scene, background, create_session(), height, last_redraw_time, and width.
BlenderSession::BlenderSession | ( | BL::RenderEngine | b_engine, |
BL::UserPreferences | b_userpref, | ||
BL::BlendData | b_data, | ||
BL::Scene | b_scene, | ||
BL::SpaceView3D | b_v3d, | ||
BL::RegionView3D | b_rv3d, | ||
int | width, | ||
int | height | ||
) |
Definition at line 59 of file blender_session.cpp.
References background, create_session(), height, last_redraw_time, session, Session::start(), and width.
BlenderSession::~BlenderSession | ( | ) |
Definition at line 75 of file blender_session.cpp.
References free_session().
void BlenderSession::create_session | ( | ) |
Definition at line 80 of file blender_session.cpp.
References b_data, b_rv3d, b_scene, b_userpref, b_v3d, background, function_bind, BlenderSync::get_buffer_params(), BlenderSync::get_scene_params(), BlenderSync::get_session_params(), BlenderSync::get_session_pause(), height, last_progress, last_status, Session::progress, Session::reset(), SessionParams::samples, scene, Session::scene, session, Session::set_pause(), sync, BlenderSync::sync_camera(), BlenderSync::sync_data(), BlenderSync::sync_view(), tag_redraw(), test_cancel(), and width.
Referenced by BlenderSession(), and synchronize().
bool BlenderSession::draw | ( | int | w, |
int | h | ||
) |
Definition at line 232 of file blender_session.cpp.
References b_rv3d, b_scene, b_userpref, b_v3d, background, Scene::camera, Session::draw(), BlenderSync::get_buffer_params(), BlenderSync::get_session_params(), height, Scene::mutex, Session::ready_to_reset(), Session::reset(), SessionParams::samples, scene, Session::scene, session, sync, BlenderSync::sync_view(), tag_update(), update_status_progress(), simple_enum_gen::w, and width.
Referenced by draw_func().
void BlenderSession::free_session | ( | ) |
Definition at line 113 of file blender_session.cpp.
Referenced by synchronize(), and ~BlenderSession().
void BlenderSession::get_progress | ( | float & | progress, |
double & | total_time | ||
) |
Definition at line 285 of file blender_session.cpp.
References Session::params, Session::progress, SessionParams::samples, and session.
Referenced by update_status_progress().
void BlenderSession::get_status | ( | string & | status, |
string & | substatus | ||
) |
Definition at line 280 of file blender_session.cpp.
References Session::progress, and session.
Referenced by update_status_progress().
void BlenderSession::render | ( | ) |
Definition at line 119 of file blender_session.cpp.
References b_engine, b_rlay, b_rr, b_rv3d, b_scene, b_v3d, BlenderSync::get_buffer_params(), height, BufferParams::height, NULL, Session::progress, RE_engine_begin_result(), RE_engine_end_result(), RNA_pointer_create(), RNA_RenderResult, session, Session::start(), sync, BlenderSync::sync_data(), simple_enum_gen::w, Session::wait(), width, BufferParams::width, and write_render_result().
Referenced by render_func().
void BlenderSession::synchronize | ( | ) |
Definition at line 186 of file blender_session.cpp.
References b_rv3d, b_scene, b_userpref, b_v3d, background, create_session(), free_session(), BlenderSync::get_buffer_params(), BlenderSync::get_scene_params(), BlenderSync::get_session_params(), BlenderSync::get_session_pause(), height, SceneParams::modified(), SessionParams::modified(), Scene::mutex, Scene::need_reset(), Session::params, Scene::params, Session::ready_to_reset(), Session::reset(), SessionParams::samples, scene, Session::scene, session, Session::set_pause(), Session::set_samples(), Session::start(), sync, BlenderSync::sync_camera(), BlenderSync::sync_data(), BlenderSync::sync_recalc(), BlenderSync::sync_view(), tag_update(), and width.
Referenced by sync_func().
void BlenderSession::tag_redraw | ( | ) |
Definition at line 326 of file blender_session.cpp.
References b_engine, background, engine_tag_redraw(), last_redraw_time, time_dt(), update_status_progress(), and write_render_result().
Referenced by create_session().
void BlenderSession::tag_update | ( | ) |
Definition at line 320 of file blender_session.cpp.
References b_engine, and engine_tag_update().
Referenced by draw(), and synchronize().
void BlenderSession::test_cancel | ( | ) |
Definition at line 346 of file blender_session.cpp.
References b_engine, background, Session::progress, RE_engine_test_break(), and session.
Referenced by create_session().
void BlenderSession::update_status_progress | ( | ) |
Definition at line 294 of file blender_session.cpp.
References b_engine, BLI_timestr(), get_progress(), get_status(), last_progress, last_status, RE_engine_update_progress(), and RE_engine_update_stats().
Referenced by draw(), and tag_redraw().
void BlenderSession::write_render_result | ( | ) |
Definition at line 164 of file blender_session.cpp.
References b_engine, b_rlay, b_rr, Session::buffers, RenderBuffers::copy_from_device(), Film::exposure, Scene::film, Session::progress, RE_engine_update_result(), rna_RenderLayer_rect_set(), scene, and session.
Referenced by render(), and tag_redraw().
BL::BlendData BlenderSession::b_data |
Definition at line 71 of file blender_session.h.
Referenced by create_session().
Definition at line 69 of file blender_session.h.
Referenced by render(), tag_redraw(), tag_update(), test_cancel(), update_status_progress(), and write_render_result().
Definition at line 76 of file blender_session.h.
Referenced by render(), and write_render_result().
Definition at line 75 of file blender_session.h.
Referenced by render(), and write_render_result().
Definition at line 74 of file blender_session.h.
Referenced by create_session(), draw(), render(), and synchronize().
Definition at line 72 of file blender_session.h.
Referenced by BlenderSession(), create_session(), draw(), render(), and synchronize().
BL::UserPreferences BlenderSession::b_userpref |
Definition at line 70 of file blender_session.h.
Referenced by create_session(), draw(), and synchronize().
BL::SpaceView3D BlenderSession::b_v3d |
Definition at line 73 of file blender_session.h.
Referenced by create_session(), draw(), render(), and synchronize().
Definition at line 63 of file blender_session.h.
Referenced by BlenderSession(), create_session(), draw(), synchronize(), tag_redraw(), and test_cancel().
Definition at line 81 of file blender_session.h.
Referenced by BlenderSession(), create_session(), draw(), render(), and synchronize().
Definition at line 79 of file blender_session.h.
Referenced by create_session(), and update_status_progress().
Definition at line 67 of file blender_session.h.
Referenced by BlenderSession(), and tag_redraw().
string BlenderSession::last_status |
Definition at line 78 of file blender_session.h.
Referenced by create_session(), and update_status_progress().
Definition at line 65 of file blender_session.h.
Referenced by create_session(), draw(), synchronize(), and write_render_result().
Definition at line 64 of file blender_session.h.
Referenced by BlenderSession(), create_session(), draw(), free_session(), get_progress(), get_status(), render(), synchronize(), test_cancel(), and write_render_result().
Definition at line 66 of file blender_session.h.
Referenced by create_session(), draw(), free_session(), render(), and synchronize().
Definition at line 81 of file blender_session.h.
Referenced by BlenderSession(), create_func(), create_session(), draw(), render(), and synchronize().