|
Blender
V2.93
|
Compositor output operation. More...
#include <COM_CompositorOperation.h>
Inherits blender::compositor::NodeOperation.
Public Member Functions | |
| CompositorOperation () | |
| bool | isActiveCompositorOutput () const |
| void | executeRegion (rcti *rect, unsigned int tileNumber) override |
| when a chunk is executed by a CPUDevice, this method is called More... | |
| void | setScene (const struct Scene *scene) |
| void | setSceneName (const char *sceneName) |
| void | setViewName (const char *viewName) |
| void | setRenderData (const RenderData *rd) |
| bool | isOutputOperation (bool) const override |
| isOutputOperation determines whether this operation is an output of the ExecutionSystem during rendering or editing. More... | |
| void | initExecution () override |
| void | deinitExecution () override |
| eCompositorPriority | getRenderPriority () const override |
| get the render priority of this node. More... | |
| void | determineResolution (unsigned int resolution[2], unsigned int preferredResolution[2]) override |
| determine the resolution of this node More... | |
| void | setUseAlphaInput (bool value) |
| void | setActive (bool active) |
Public Member Functions inherited from blender::compositor::NodeOperation | |
| virtual | ~NodeOperation () |
| void | set_name (const std::string name) |
| const std::string | get_name () const |
| void | set_id (const int id) |
| const int | get_id () const |
| const NodeOperationFlags | get_flags () const |
| unsigned int | getNumberOfInputSockets () const |
| unsigned int | getNumberOfOutputSockets () const |
| NodeOperationOutput * | getOutputSocket (unsigned int index=0) |
| NodeOperationInput * | getInputSocket (unsigned int index) |
| void | setbNodeTree (const bNodeTree *tree) |
| virtual void | executeOpenCLRegion (OpenCLDevice *, rcti *, unsigned int, MemoryBuffer **, MemoryBuffer *) |
| when a chunk is executed by an OpenCLDevice, this method is called More... | |
| virtual void | executeOpenCL (OpenCLDevice *, MemoryBuffer *, cl_mem, MemoryBuffer **, std::list< cl_mem > *, std::list< cl_kernel > *) |
| custom handle to add new tasks to the OpenCL command queue in order to execute a chunk on an GPUDevice. More... | |
| void | setResolution (unsigned int resolution[2]) |
| set the resolution More... | |
| virtual bool | isActiveViewerOutput () const |
| is this operation the active viewer output user can select an ViewerNode to be active (the result of this node will be drawn on the backdrop). More... | |
| virtual bool | determineDependingAreaOfInterest (rcti *input, ReadBufferOperation *readOperation, rcti *output) |
| void | setResolutionInputSocketIndex (unsigned int index) |
| set the index of the input socket that will determine the resolution of this operation More... | |
| bool | isBraked () const |
| void | updateDraw () |
| unsigned int | getWidth () const |
| unsigned int | getHeight () const |
| void | readSampled (float result[4], float x, float y, PixelSampler sampler) |
| void | readFiltered (float result[4], float x, float y, float dx[2], float dy[2]) |
| void | read (float result[4], int x, int y, void *chunkData) |
| virtual void * | initializeTileData (rcti *) |
| virtual void | deinitializeTileData (rcti *, void *) |
| virtual MemoryBuffer * | getInputMemoryBuffer (MemoryBuffer **) |
| virtual std::unique_ptr< MetaData > | getMetaData () |
Additional Inherited Members | |
Protected Member Functions inherited from blender::compositor::NodeOperation | |
| NodeOperation () | |
| void | addInputSocket (DataType datatype, ResizeMode resize_mode=ResizeMode::Center) |
| void | addOutputSocket (DataType datatype) |
| void | setWidth (unsigned int width) |
| void | setHeight (unsigned int height) |
| SocketReader * | getInputSocketReader (unsigned int inputSocketindex) |
| NodeOperation * | getInputOperation (unsigned int inputSocketindex) |
| void | deinitMutex () |
| void | initMutex () |
| void | lockMutex () |
| void | unlockMutex () |
| void | setComplex (bool complex) |
| set whether this operation is complex More... | |
| virtual void | executePixelSampled (float[4], float, float, PixelSampler) |
| calculate a single pixel More... | |
| virtual void | executePixel (float output[4], int x, int y, void *) |
| calculate a single pixel More... | |
| virtual void | executePixelFiltered (float[4], float, float, float[2], float[2]) |
| calculate a single pixel using an EWA filter More... | |
Protected Attributes inherited from blender::compositor::NodeOperation | |
| unsigned int | m_width |
| unsigned int | m_height |
| NodeOperationFlags | flags |
Compositor output operation.
Definition at line 32 of file COM_CompositorOperation.h.
| blender::compositor::CompositorOperation::CompositorOperation | ( | ) |
Definition at line 36 of file COM_CompositorOperation.cc.
References blender::compositor::NodeOperation::addInputSocket(), blender::compositor::Color, blender::compositor::NodeOperation::flags, setRenderData(), blender::compositor::NodeOperationFlags::use_render_border, and blender::compositor::Value.
|
overridevirtual |
Reimplemented from blender::compositor::NodeOperation.
Definition at line 79 of file COM_CompositorOperation.cc.
References BKE_image_ensure_viewer(), BKE_image_signal(), BLI_thread_lock(), BLI_thread_unlock(), G, RenderResult::have_combined, IMA_SIGNAL_FREE, IMA_TYPE_R_RESULT, blender::compositor::NodeOperation::isBraked(), LOCK_DRAW_IMAGE, MEM_freeN, RE_AcquireResultWrite(), RE_GetSceneRender(), RE_ReleaseResult(), RE_RenderViewGetByName(), RenderView::rectf, and RenderView::rectz.
|
overridevirtual |
determine the resolution of this node
| resolution | the result of this operation |
| preferredResolution | the preferable resolution as no resolution could be determined |
Reimplemented from blender::compositor::NodeOperation.
Definition at line 223 of file COM_CompositorOperation.cc.
References blender::compositor::NodeOperation::determineResolution(), height, RE_AcquireResultRead(), RE_GetSceneRender(), RE_ReleaseResult(), RenderResult::rectx, RenderResult::recty, RenderData::size, width, RenderData::xsch, and RenderData::ysch.
|
overridevirtual |
when a chunk is executed by a CPUDevice, this method is called
| rect | the rectangle of the chunk (location and size) |
| chunkNumber | the chunkNumber to be calculated |
| memoryBuffers | all input MemoryBuffer's needed |
Reimplemented from blender::compositor::NodeOperation.
Definition at line 139 of file COM_CompositorOperation.cc.
References add(), RenderData::border, buffer, blender::compositor::COM_DATA_TYPE_COLOR_CHANNELS, copy_v4_v4(), blender::compositor::NodeOperation::getHeight(), blender::compositor::NodeOperation::getWidth(), blender::compositor::NodeOperation::isBraked(), RenderData::mode, blender::compositor::Nearest, R_BORDER, R_CROP, blender::compositor::NodeOperation::readSampled(), RenderData::size, x, x2, rcti::xmax, rcti::xmin, rctf::xmin, RenderData::xsch, y, y1, rcti::ymax, rcti::ymin, rctf::ymin, and RenderData::ysch.
|
inlineoverridevirtual |
get the render priority of this node.
Reimplemented from blender::compositor::NodeOperation.
Definition at line 114 of file COM_CompositorOperation.h.
References blender::compositor::Medium.
|
overridevirtual |
Reimplemented from blender::compositor::NodeOperation.
Definition at line 59 of file COM_CompositorOperation.cc.
References blender::compositor::NodeOperation::getHeight(), blender::compositor::NodeOperation::getInputSocketReader(), blender::compositor::NodeOperation::getWidth(), and MEM_callocN.
|
inline |
Definition at line 87 of file COM_CompositorOperation.h.
Referenced by isOutputOperation().
|
inlineoverridevirtual |
isOutputOperation determines whether this operation is an output of the ExecutionSystem during rendering or editing.
Default behavior if not overridden, this operation will not be evaluated as being an output of the ExecutionSystem.
| rendering | [true false] true: rendering false: editing |
Reimplemented from blender::compositor::NodeOperation.
Definition at line 108 of file COM_CompositorOperation.h.
References isActiveCompositorOutput().
|
inline |
Definition at line 124 of file COM_CompositorOperation.h.
References blender::compositor::active.
Referenced by blender::compositor::CompositorNode::convertToOperations().
|
inline |
Definition at line 104 of file COM_CompositorOperation.h.
Referenced by CompositorOperation(), and blender::compositor::CompositorNode::convertToOperations().
|
inline |
Definition at line 92 of file COM_CompositorOperation.h.
References scene.
Referenced by blender::compositor::CompositorNode::convertToOperations().
|
inline |
Definition at line 96 of file COM_CompositorOperation.h.
References BLI_strncpy().
Referenced by blender::compositor::CompositorNode::convertToOperations().
|
inline |
Definition at line 120 of file COM_CompositorOperation.h.
Referenced by blender::compositor::CompositorNode::convertToOperations().
|
inline |
Definition at line 100 of file COM_CompositorOperation.h.
Referenced by blender::compositor::CompositorNode::convertToOperations().