60 bool hasActiveOpenCLDevices_;
65 bool fast_calculation_;
70 const char *view_name_;
83 rendering_ = rendering;
107 bnodetree_ = bnodetree;
140 previews_ = previews;
177 return hasActiveOpenCLDevices_;
185 hasActiveOpenCLDevices_ = hasAvtiveOpenCLDevices;
191 return view_name_ && view_name_[0] !=
'\0';
207 view_name_ = view_name;
217 fast_calculation_ = fast_calculation;
221 return fast_calculation_;
234 return rd_->
size * 0.01f;
#define NTREE_COM_GROUPNODE_BUFFER
Overall context of the compositor.
void set_quality(eCompositorQuality quality)
set the quality
void set_bnodetree(bNodeTree *bnodetree)
set the bnodetree of the context
bNodeInstanceHash * get_preview_hash() const
get the preview image hash table
void set_scene(Scene *scene)
Scene * get_scene() const
eCompositorQuality get_quality() const
get the quality
CompositorContext()
constructor initializes the context with default values.
bool get_has_active_opencl_devices() const
has this system active opencl_devices?
Size2f get_render_size() const
const RenderData * get_render_data() const
get the scene of the context
void set_preview_hash(bNodeInstanceHash *previews)
set the preview image hash table
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
eExecutionModel get_execution_model() const
void setHasActiveOpenCLDevices(bool hasAvtiveOpenCLDevices)
set has this system active opencl_devices?
float get_render_percentage_as_factor() const
Get the render percentage as a factor. The compositor uses a factor i.o. a percentage.
void set_render_data(RenderData *rd)
set the scene of the context
int get_chunksize() const
bool is_groupnode_buffer_enabled() const
void set_fast_calculation(bool fast_calculation)
const char * get_view_name() const
get the active rendering view
bool is_fast_calculation() const
bool has_explicit_view() const
const bNodeTree * get_bnodetree() const
get the bnodetree of the context
void set_rendering(bool rendering)
set the rendering field of the context
eCompositorQuality
Possible quality settings.