14struct bNodeInstanceHash;
61 const char *view_name_;
86 rendering_ = rendering;
110 bnodetree_ = bnodetree;
143 previews_ = previews;
162 return view_name_ && view_name_[0] !=
'\0';
170 return render_context_;
178 render_context_ = render_context;
194 profiler_ = profiler;
210 view_name_ = view_name;
219 return rd_->
size * 0.01f;
Overall context of the compositor.
void set_bnodetree(bNodeTree *bnodetree)
set the bnodetree of the context
void set_scene(Scene *scene)
CompositorContext()
constructor initializes the context with default values.
Size2f get_render_size() const
const bNodeTree * get_bnodetree() const
get the bnodetree of the context
realtime_compositor::Profiler * get_profiler() const
get the profiler
void set_render_context(realtime_compositor::RenderContext *render_context)
set the render context
int get_framenumber() const
get the current frame-number of the scene in this context
void set_view_name(const char *view_name)
set the active rendering view
bool is_rendering() const
get the rendering field of the context
const RenderData * get_render_data() const
get the scene of the context
void set_profiler(realtime_compositor::Profiler *profiler)
set the profiler
float get_render_percentage_as_factor() const
Get the render percentage as a factor. The compositor uses a factor i.o. a percentage.
const char * get_view_name() const
get the active rendering view
void set_preview_hash(bke::bNodeInstanceHash *previews)
set the preview image hash table
void set_render_data(RenderData *rd)
set the scene of the context
bke::bNodeInstanceHash * get_preview_hash() const
get the preview image hash table
realtime_compositor::RenderContext * get_render_context() const
get the render context
bool has_explicit_view() const
Scene * get_scene() const
void set_rendering(bool rendering)
set the rendering field of the context