Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/compositor/operations/COM_MapUVOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_MapUVOperation.h64
1 files changed, 34 insertions, 30 deletions
diff --git a/source/blender/compositor/operations/COM_MapUVOperation.h b/source/blender/compositor/operations/COM_MapUVOperation.h
index b2235d4de25..64e17b180b4 100644
--- a/source/blender/compositor/operations/COM_MapUVOperation.h
+++ b/source/blender/compositor/operations/COM_MapUVOperation.h
@@ -20,46 +20,50 @@
#define __COM_MAPUVOPERATION_H__
#include "COM_NodeOperation.h"
-
class MapUVOperation : public NodeOperation {
-private:
- /**
- * Cached reference to the inputProgram
- */
- SocketReader *m_inputUVProgram;
- SocketReader *m_inputColorProgram;
+ private:
+ /**
+ * Cached reference to the inputProgram
+ */
+ SocketReader *m_inputUVProgram;
+ SocketReader *m_inputColorProgram;
- float m_alpha;
+ float m_alpha;
-public:
- MapUVOperation();
+ public:
+ MapUVOperation();
- /**
- * we need a 3x3 differential filter for UV Input and full buffer for the image
- */
- bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output);
+ /**
+ * we need a 3x3 differential filter for UV Input and full buffer for the image
+ */
+ bool determineDependingAreaOfInterest(rcti *input,
+ ReadBufferOperation *readOperation,
+ rcti *output);
- /**
- * the inner loop of this program
- */
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ /**
+ * the inner loop of this program
+ */
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
- void pixelTransform(const float xy[2], float r_uv[2], float r_deriv[2][2], float &r_alpha);
+ void pixelTransform(const float xy[2], float r_uv[2], float r_deriv[2][2], float &r_alpha);
- /**
- * Initialize the execution
- */
- void initExecution();
+ /**
+ * Initialize the execution
+ */
+ void initExecution();
- /**
- * Deinitialize the execution
- */
- void deinitExecution();
+ /**
+ * Deinitialize the execution
+ */
+ void deinitExecution();
- void setAlpha(float alpha) { this->m_alpha = alpha; }
+ void setAlpha(float alpha)
+ {
+ this->m_alpha = alpha;
+ }
-private:
- bool read_uv(float x, float y, float &r_u, float &r_v, float &r_alpha);
+ private:
+ bool read_uv(float x, float y, float &r_u, float &r_v, float &r_alpha);
};
#endif