|
Blender V4.3
|
Overall context of the compositor. More...
#include <COM_CompositorContext.h>
Public Member Functions | |
| CompositorContext () | |
| constructor initializes the context with default values. | |
| void | set_rendering (bool rendering) |
| set the rendering field of the context | |
| bool | is_rendering () const |
| get the rendering field of the context | |
| void | set_render_data (RenderData *rd) |
| set the scene of the context | |
| void | set_bnodetree (bNodeTree *bnodetree) |
| set the bnodetree of the context | |
| const bNodeTree * | get_bnodetree () const |
| get the bnodetree of the context | |
| const RenderData * | get_render_data () const |
| get the scene of the context | |
| void | set_scene (Scene *scene) |
| Scene * | get_scene () const |
| void | set_preview_hash (bke::bNodeInstanceHash *previews) |
| set the preview image hash table | |
| bke::bNodeInstanceHash * | get_preview_hash () const |
| get the preview image hash table | |
| int | get_framenumber () const |
| get the current frame-number of the scene in this context | |
| bool | has_explicit_view () const |
| realtime_compositor::RenderContext * | get_render_context () const |
| get the render context | |
| void | set_render_context (realtime_compositor::RenderContext *render_context) |
| set the render context | |
| realtime_compositor::Profiler * | get_profiler () const |
| get the profiler | |
| void | set_profiler (realtime_compositor::Profiler *profiler) |
| set the profiler | |
| const char * | get_view_name () const |
| get the active rendering view | |
| void | set_view_name (const char *view_name) |
| set the active rendering view | |
| float | get_render_percentage_as_factor () const |
| Get the render percentage as a factor. The compositor uses a factor i.o. a percentage. | |
| Size2f | get_render_size () const |
Overall context of the compositor.
Definition at line 27 of file COM_CompositorContext.h.
| blender::compositor::CompositorContext::CompositorContext | ( | ) |
constructor initializes the context with default values.
Definition at line 9 of file COM_CompositorContext.cc.
|
inline |
get the bnodetree of the context
Definition at line 116 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::execute(), blender::compositor::FullFrameExecutionModel::execute(), blender::compositor::ExecutionModel::ExecutionModel(), and blender::compositor::ExecutionSystem::is_breaked().
| int blender::compositor::CompositorContext::get_framenumber | ( | ) | const |
get the current frame-number of the scene in this context
Definition at line 16 of file COM_CompositorContext.cc.
References BLI_assert, and RenderData::cfra.
|
inline |
get the preview image hash table
Definition at line 149 of file COM_CompositorContext.h.
|
inline |
get the profiler
Definition at line 184 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::execute().
|
inline |
get the render context
Definition at line 168 of file COM_CompositorContext.h.
|
inline |
get the scene of the context
Definition at line 124 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 217 of file COM_CompositorContext.h.
References RenderData::size.
Referenced by get_render_size().
| Size2f blender::compositor::CompositorContext::get_render_size | ( | ) | const |
Definition at line 22 of file COM_CompositorContext.cc.
References get_render_data(), get_render_percentage_as_factor(), RenderData::xsch, and RenderData::ysch.
|
inline |
Definition at line 133 of file COM_CompositorContext.h.
|
inline |
get the active rendering view
Definition at line 200 of file COM_CompositorContext.h.
|
inline |
Whether it has a view with a specific name and not the default one.
Definition at line 160 of file COM_CompositorContext.h.
|
inline |
get the rendering field of the context
Definition at line 92 of file COM_CompositorContext.h.
Referenced by blender::compositor::NodeOperationBuilder::determine_canvases(), blender::compositor::DebugInfo::graphviz_operation(), and blender::compositor::NodeOperationBuilder::prune_operations().
|
inline |
set the bnodetree of the context
Definition at line 108 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().
|
inline |
set the preview image hash table
Definition at line 141 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().
|
inline |
set the profiler
Definition at line 192 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().
|
inline |
set the render context
Definition at line 176 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().
|
inline |
set the scene of the context
Definition at line 100 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().
|
inline |
set the rendering field of the context
Definition at line 84 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().
|
inline |
Definition at line 129 of file COM_CompositorContext.h.
References scene.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().
|
inline |
set the active rendering view
Definition at line 208 of file COM_CompositorContext.h.
Referenced by blender::compositor::ExecutionSystem::ExecutionSystem().