Blender
V3.3
|
Overall context of the compositor. More...
#include <COM_CompositorContext.h>
Public Member Functions | |
CompositorContext () | |
constructor initializes the context with default values. More... | |
void | set_rendering (bool rendering) |
set the rendering field of the context More... | |
bool | is_rendering () const |
get the rendering field of the context More... | |
void | set_render_data (RenderData *rd) |
set the scene of the context More... | |
void | set_bnodetree (bNodeTree *bnodetree) |
set the bnodetree of the context More... | |
const bNodeTree * | get_bnodetree () const |
get the bnodetree of the context More... | |
const RenderData * | get_render_data () const |
get the scene of the context More... | |
void | set_scene (Scene *scene) |
Scene * | get_scene () const |
void | set_preview_hash (bNodeInstanceHash *previews) |
set the preview image hash table More... | |
bNodeInstanceHash * | get_preview_hash () const |
get the preview image hash table More... | |
void | set_quality (eCompositorQuality quality) |
set the quality More... | |
eCompositorQuality | get_quality () const |
get the quality More... | |
int | get_framenumber () const |
get the current frame-number of the scene in this context More... | |
bool | get_has_active_opencl_devices () const |
has this system active opencl_devices? More... | |
void | setHasActiveOpenCLDevices (bool hasAvtiveOpenCLDevices) |
set has this system active opencl_devices? More... | |
bool | has_explicit_view () const |
const char * | get_view_name () const |
get the active rendering view More... | |
void | set_view_name (const char *view_name) |
set the active rendering view More... | |
int | get_chunksize () const |
void | set_fast_calculation (bool fast_calculation) |
bool | is_fast_calculation () const |
bool | is_groupnode_buffer_enabled () const |
float | get_render_percentage_as_factor () const |
Get the render percentage as a factor. The compositor uses a factor i.o. a percentage. More... | |
Size2f | get_render_size () const |
eExecutionModel | get_execution_model () const |
Overall context of the compositor.
Definition at line 19 of file COM_CompositorContext.h.
blender::compositor::CompositorContext::CompositorContext | ( | ) |
constructor initializes the context with default values.
Definition at line 8 of file COM_CompositorContext.cc.
References blender::compositor::High.
|
inline |
get the bnodetree of the context
Definition at line 113 of file COM_CompositorContext.h.
Referenced by blender::compositor::NodeOperationBuilder::add_input_buffers(), blender::compositor::NodeOperationBuilder::add_output_buffers(), blender::compositor::FullFrameExecutionModel::execute(), blender::compositor::TiledExecutionModel::execute(), blender::compositor::ExecutionModel::ExecutionModel(), get_chunksize(), blender::compositor::ExecutionSystem::is_breaked(), is_groupnode_buffer_enabled(), and blender::compositor::NodeOperationBuilder::register_viewer().
|
inline |
Definition at line 210 of file COM_CompositorContext.h.
References bNodeTree::chunksize, and get_bnodetree().
Referenced by blender::compositor::TiledExecutionModel::execute().
eExecutionModel blender::compositor::CompositorContext::get_execution_model | ( | ) | const |
Get active execution model.
Definition at line 30 of file COM_CompositorContext.cc.
References BLI_assert, BLI_assert_msg, bNodeTree::execution_mode, blender::compositor::FullFrame, and blender::compositor::Tiled.
Referenced by blender::compositor::NodeOperationBuilder::add_operation(), blender::compositor::COM_convert_canvas(), blender::compositor::NodeOperationBuilder::convert_to_operations(), blender::compositor::RotateNode::convert_to_operations(), blender::compositor::TransformNode::convert_to_operations(), blender::compositor::ExecutionSystem::ExecutionSystem(), and blender::compositor::DebugInfo::graphviz_system().
int blender::compositor::CompositorContext::get_framenumber | ( | ) | const |
get the current frame-number of the scene in this context
Definition at line 18 of file COM_CompositorContext.cc.
References BLI_assert, and RenderData::cfra.
|
inline |
has this system active opencl_devices?
Definition at line 175 of file COM_CompositorContext.h.
|
inline |
get the preview image hash table
Definition at line 146 of file COM_CompositorContext.h.
|
inline |
get the quality
Definition at line 162 of file COM_CompositorContext.h.
|
inline |
get the scene of the context
Definition at line 121 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionModel::ExecutionModel(), and get_render_size().
|
inline |
Get the render percentage as a factor. The compositor uses a factor i.o. a percentage.
Definition at line 232 of file COM_CompositorContext.h.
References RenderData::size.
Referenced by get_render_size().
Size2f blender::compositor::CompositorContext::get_render_size | ( | ) | const |
Definition at line 24 of file COM_CompositorContext.cc.
References get_render_data(), get_render_percentage_as_factor(), RenderData::xsch, and RenderData::ysch.
|
inline |
Definition at line 130 of file COM_CompositorContext.h.
|
inline |
get the active rendering view
Definition at line 197 of file COM_CompositorContext.h.
|
inline |
Whether it has a view with a specific name and not the default one.
Definition at line 189 of file COM_CompositorContext.h.
|
inline |
Definition at line 219 of file COM_CompositorContext.h.
Referenced by blender::compositor::TiledExecutionModel::execute().
|
inline |
Definition at line 223 of file COM_CompositorContext.h.
References get_bnodetree(), and NTREE_COM_GROUPNODE_BUFFER.
|
inline |
get the rendering field of the context
Definition at line 89 of file COM_CompositorContext.h.
Referenced by blender::compositor::NodeOperationBuilder::determine_canvases(), blender::compositor::DebugInfo::graphviz_operation(), blender::compositor::NodeOperationBuilder::group_operations(), and blender::compositor::NodeOperationBuilder::prune_operations().
set the bnodetree of the context
Definition at line 105 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().
Definition at line 215 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().
|
inline |
set the preview image hash table
Definition at line 138 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().
|
inline |
set the quality
Definition at line 154 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().
|
inline |
set the scene of the context
Definition at line 97 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().
set the rendering field of the context
Definition at line 81 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().
Definition at line 126 of file COM_CompositorContext.h.
References scene.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().
|
inline |
set the active rendering view
Definition at line 205 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().
|
inline |
set has this system active opencl_devices?
Definition at line 183 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().