Blender  V2.93
Public Member Functions | List of all members
blender::compositor::WrapOperation Class Reference

#include <COM_WrapOperation.h>

Inherits blender::compositor::ReadBufferOperation.

Public Member Functions

 WrapOperation (DataType datatype)
 
bool determineDependingAreaOfInterest (rcti *input, ReadBufferOperation *readOperation, rcti *output) override
 
void executePixelSampled (float output[4], float x, float y, PixelSampler sampler) override
 calculate a single pixel More...
 
void setWrapping (int wrapping_type)
 
float getWrappedOriginalXPos (float x)
 
float getWrappedOriginalYPos (float y)
 
void setFactorXY (float factorX, float factorY)
 
- Public Member Functions inherited from blender::compositor::ReadBufferOperation
 ReadBufferOperation (DataType datatype)
 
void setMemoryProxy (MemoryProxy *memoryProxy)
 
MemoryProxygetMemoryProxy () const
 
void determineResolution (unsigned int resolution[2], unsigned int preferredResolution[2]) override
 determine the resolution of this node More...
 
void * initializeTileData (rcti *rect) override
 
void executePixelExtend (float output[4], float x, float y, PixelSampler sampler, MemoryBufferExtend extend_x, MemoryBufferExtend extend_y)
 
void executePixelFiltered (float output[4], float x, float y, float dx[2], float dy[2]) override
 calculate a single pixel using an EWA filter More...
 
void setOffset (unsigned int offset)
 
unsigned int getOffset () const
 
MemoryBuffergetInputMemoryBuffer (MemoryBuffer **memoryBuffers) override
 
void readResolutionFromWriteBuffer ()
 
void updateMemoryBuffer ()
 
- 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
 
NodeOperationOutputgetOutputSocket (unsigned int index=0)
 
NodeOperationInputgetInputSocket (unsigned int index)
 
virtual bool isOutputOperation (bool) const
 isOutputOperation determines whether this operation is an output of the ExecutionSystem during rendering or editing. More...
 
void setbNodeTree (const bNodeTree *tree)
 
virtual void initExecution ()
 
virtual void executeRegion (rcti *, unsigned int)
 when a chunk is executed by a CPUDevice, this method is called More...
 
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...
 
virtual void deinitExecution ()
 
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...
 
void setResolutionInputSocketIndex (unsigned int index)
 set the index of the input socket that will determine the resolution of this operation More...
 
virtual eCompositorPriority getRenderPriority () const
 get the render priority of this node. 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 deinitializeTileData (rcti *, void *)
 
virtual std::unique_ptr< MetaDatagetMetaData ()
 

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)
 
SocketReadergetInputSocketReader (unsigned int inputSocketindex)
 
NodeOperationgetInputOperation (unsigned int inputSocketindex)
 
void deinitMutex ()
 
void initMutex ()
 
void lockMutex ()
 
void unlockMutex ()
 
void setComplex (bool complex)
 set whether this operation is complex More...
 
virtual void executePixel (float output[4], int x, int y, void *)
 calculate a single pixel More...
 
- Protected Attributes inherited from blender::compositor::NodeOperation
unsigned int m_width
 
unsigned int m_height
 
NodeOperationFlags flags
 

Detailed Description

Definition at line 25 of file COM_WrapOperation.h.

Constructor & Destructor Documentation

◆ WrapOperation()

blender::compositor::WrapOperation::WrapOperation ( DataType  datatype)

Definition at line 25 of file COM_WrapOperation.cc.

References CMP_NODE_WRAP_NONE.

Member Function Documentation

◆ determineDependingAreaOfInterest()

bool blender::compositor::WrapOperation::determineDependingAreaOfInterest ( rcti input,
ReadBufferOperation readOperation,
rcti output 
)
overridevirtual

◆ executePixelSampled()

void blender::compositor::WrapOperation::executePixelSampled ( float  [4],
float  ,
float  ,
PixelSampler   
)
overridevirtual

calculate a single pixel

Note
this method is called for non-complex
Parameters
resultis a float[4] array to store the result
xthe x-coordinate of the pixel to calculate in image space
ythe y-coordinate of the pixel to calculate in image space
inputBufferschunks that can be read by their ReadBufferOperation.

Reimplemented from blender::compositor::ReadBufferOperation.

Definition at line 52 of file COM_WrapOperation.cc.

References blender::compositor::Clip, CMP_NODE_WRAP_NONE, CMP_NODE_WRAP_X, CMP_NODE_WRAP_XY, CMP_NODE_WRAP_Y, blender::compositor::ReadBufferOperation::executePixelExtend(), getWrappedOriginalXPos(), getWrappedOriginalYPos(), ny, output, blender::compositor::Repeat, x, and y.

◆ getWrappedOriginalXPos()

float blender::compositor::WrapOperation::getWrappedOriginalXPos ( float  x)
inline

◆ getWrappedOriginalYPos()

float blender::compositor::WrapOperation::getWrappedOriginalYPos ( float  y)
inline

◆ setFactorXY()

void blender::compositor::WrapOperation::setFactorXY ( float  factorX,
float  factorY 
)

◆ setWrapping()

void blender::compositor::WrapOperation::setWrapping ( int  wrapping_type)

The documentation for this class was generated from the following files: