|
Blender
V2.93
|
#include <COM_ViewerOperation.h>
Inherits blender::compositor::NodeOperation.
Public Member Functions | |
| ViewerOperation () | |
| void | initExecution () override |
| void | deinitExecution () override |
| void | executeRegion (rcti *rect, unsigned int tileNumber) override |
| when a chunk is executed by a CPUDevice, this method is called More... | |
| void | determineResolution (unsigned int resolution[2], unsigned int preferredResolution[2]) override |
| determine the resolution of this node More... | |
| bool | isOutputOperation (bool) const override |
| isOutputOperation determines whether this operation is an output of the ExecutionSystem during rendering or editing. More... | |
| void | setImage (Image *image) |
| void | setImageUser (ImageUser *imageUser) |
| bool | isActiveViewerOutput () const override |
| 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... | |
| void | setActive (bool active) |
| void | setCenterX (float centerX) |
| void | setCenterY (float centerY) |
| void | setChunkOrder (ChunkOrdering tileOrder) |
| float | getCenterX () const |
| float | getCenterY () const |
| ChunkOrdering | getChunkOrder () const |
| eCompositorPriority | getRenderPriority () const override |
| get the render priority of this node. More... | |
| void | setUseAlphaInput (bool value) |
| void | setRenderData (const RenderData *rd) |
| void | setViewName (const char *viewName) |
| void | setViewSettings (const ColorManagedViewSettings *viewSettings) |
| void | setDisplaySettings (const ColorManagedDisplaySettings *displaySettings) |
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 | 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 |
Definition at line 28 of file COM_ViewerOperation.h.
| blender::compositor::ViewerOperation::ViewerOperation | ( | ) |
Definition at line 37 of file COM_ViewerOperation.cc.
References blender::compositor::NodeOperation::addInputSocket(), blender::compositor::Color, blender::compositor::NodeOperation::flags, blender::compositor::NodeOperationFlags::is_viewer_operation, setImage(), setImageUser(), blender::compositor::NodeOperationFlags::use_viewer_border, and blender::compositor::Value.
|
overridevirtual |
Reimplemented from blender::compositor::NodeOperation.
Definition at line 75 of file COM_ViewerOperation.cc.
|
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 125 of file COM_ViewerOperation.cc.
References blender::compositor::NodeOperation::determineResolution(), RenderData::size, 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 83 of file COM_ViewerOperation.cc.
References alpha, buffer, blender::compositor::NodeOperation::getWidth(), blender::compositor::NodeOperation::isBraked(), blender::compositor::Nearest, blender::compositor::NodeOperation::readSampled(), x, x2, rcti::xmax, rcti::xmin, y, y1, rcti::ymax, and rcti::ymin.
|
inline |
Definition at line 93 of file COM_ViewerOperation.h.
|
inline |
Definition at line 97 of file COM_ViewerOperation.h.
|
inline |
Definition at line 101 of file COM_ViewerOperation.h.
|
overridevirtual |
get the render priority of this node.
Reimplemented from blender::compositor::NodeOperation.
Definition at line 212 of file COM_ViewerOperation.cc.
References blender::compositor::High, isActiveViewerOutput(), and blender::compositor::Low.
|
overridevirtual |
Reimplemented from blender::compositor::NodeOperation.
Definition at line 62 of file COM_ViewerOperation.cc.
References blender::compositor::NodeOperation::getInputSocketReader(), and isActiveViewerOutput().
|
inlineoverridevirtual |
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).
Reimplemented from blender::compositor::NodeOperation.
Definition at line 73 of file COM_ViewerOperation.h.
Referenced by getRenderPriority(), initExecution(), and 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 58 of file COM_ViewerOperation.h.
References G, and isActiveViewerOutput().
|
inline |
Definition at line 77 of file COM_ViewerOperation.h.
References blender::compositor::active.
Referenced by blender::compositor::NodeOperationBuilder::registerViewer().
|
inline |
Definition at line 81 of file COM_ViewerOperation.h.
Referenced by blender::compositor::SplitViewerNode::convertToOperations(), and blender::compositor::ViewerNode::convertToOperations().
|
inline |
Definition at line 85 of file COM_ViewerOperation.h.
Referenced by blender::compositor::SplitViewerNode::convertToOperations(), and blender::compositor::ViewerNode::convertToOperations().
|
inline |
Definition at line 89 of file COM_ViewerOperation.h.
Referenced by blender::compositor::SplitViewerNode::convertToOperations(), and blender::compositor::ViewerNode::convertToOperations().
|
inline |
Definition at line 123 of file COM_ViewerOperation.h.
Referenced by blender::compositor::SplitViewerNode::convertToOperations(), and blender::compositor::ViewerNode::convertToOperations().
|
inline |
Definition at line 65 of file COM_ViewerOperation.h.
Referenced by blender::compositor::SplitViewerNode::convertToOperations(), blender::compositor::ViewerNode::convertToOperations(), and ViewerOperation().
|
inline |
Definition at line 69 of file COM_ViewerOperation.h.
Referenced by blender::compositor::SplitViewerNode::convertToOperations(), blender::compositor::ViewerNode::convertToOperations(), and ViewerOperation().
|
inline |
Definition at line 110 of file COM_ViewerOperation.h.
Referenced by blender::compositor::SplitViewerNode::convertToOperations(), and blender::compositor::ViewerNode::convertToOperations().
|
inline |
Definition at line 106 of file COM_ViewerOperation.h.
Referenced by blender::compositor::ViewerNode::convertToOperations().
|
inline |
Definition at line 114 of file COM_ViewerOperation.h.
Referenced by blender::compositor::SplitViewerNode::convertToOperations(), and blender::compositor::ViewerNode::convertToOperations().
|
inline |
Definition at line 119 of file COM_ViewerOperation.h.
Referenced by blender::compositor::SplitViewerNode::convertToOperations(), and blender::compositor::ViewerNode::convertToOperations().