diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/compositor/operations/COM_ViewerOperation.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/compositor/operations/COM_ViewerOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_ViewerOperation.h | 143 |
1 files changed, 98 insertions, 45 deletions
diff --git a/source/blender/compositor/operations/COM_ViewerOperation.h b/source/blender/compositor/operations/COM_ViewerOperation.h index 49a2b0962d1..29c3b6d8075 100644 --- a/source/blender/compositor/operations/COM_ViewerOperation.h +++ b/source/blender/compositor/operations/COM_ViewerOperation.h @@ -24,55 +24,108 @@ #include "BKE_global.h" class ViewerOperation : public NodeOperation { -private: - float *m_outputBuffer; - float *m_depthBuffer; - Image *m_image; - ImageUser *m_imageUser; - bool m_active; - float m_centerX; - float m_centerY; - OrderOfChunks m_chunkOrder; - bool m_doDepthBuffer; - ImBuf *m_ibuf; - bool m_useAlphaInput; - const RenderData *m_rd; - const char *m_viewName; + private: + float *m_outputBuffer; + float *m_depthBuffer; + Image *m_image; + ImageUser *m_imageUser; + bool m_active; + float m_centerX; + float m_centerY; + OrderOfChunks m_chunkOrder; + bool m_doDepthBuffer; + ImBuf *m_ibuf; + bool m_useAlphaInput; + const RenderData *m_rd; + const char *m_viewName; - const ColorManagedViewSettings *m_viewSettings; - const ColorManagedDisplaySettings *m_displaySettings; + const ColorManagedViewSettings *m_viewSettings; + const ColorManagedDisplaySettings *m_displaySettings; - SocketReader *m_imageInput; - SocketReader *m_alphaInput; - SocketReader *m_depthInput; + SocketReader *m_imageInput; + SocketReader *m_alphaInput; + SocketReader *m_depthInput; -public: - ViewerOperation(); - void initExecution(); - void deinitExecution(); - void executeRegion(rcti *rect, unsigned int tileNumber); - bool isOutputOperation(bool /*rendering*/) const { if (G.background) return false; return isActiveViewerOutput(); } - void setImage(Image *image) { this->m_image = image; } - void setImageUser(ImageUser *imageUser) { this->m_imageUser = imageUser; } - bool isActiveViewerOutput() const { return this->m_active; } - void setActive(bool active) { this->m_active = active; } - void setCenterX(float centerX) { this->m_centerX = centerX;} - void setCenterY(float centerY) { this->m_centerY = centerY;} - void setChunkOrder(OrderOfChunks tileOrder) { this->m_chunkOrder = tileOrder; } - float getCenterX() const { return this->m_centerX; } - float getCenterY() const { return this->m_centerY; } - OrderOfChunks getChunkOrder() const { return this->m_chunkOrder; } - CompositorPriority getRenderPriority() const; - bool isViewerOperation() const { return true; } - void setUseAlphaInput(bool value) { this->m_useAlphaInput = value; } - void setRenderData(const RenderData *rd) { this->m_rd = rd; } - void setViewName(const char *viewName) { this->m_viewName = viewName; } + public: + ViewerOperation(); + void initExecution(); + void deinitExecution(); + void executeRegion(rcti *rect, unsigned int tileNumber); + bool isOutputOperation(bool /*rendering*/) const + { + if (G.background) + return false; + return isActiveViewerOutput(); + } + void setImage(Image *image) + { + this->m_image = image; + } + void setImageUser(ImageUser *imageUser) + { + this->m_imageUser = imageUser; + } + bool isActiveViewerOutput() const + { + return this->m_active; + } + void setActive(bool active) + { + this->m_active = active; + } + void setCenterX(float centerX) + { + this->m_centerX = centerX; + } + void setCenterY(float centerY) + { + this->m_centerY = centerY; + } + void setChunkOrder(OrderOfChunks tileOrder) + { + this->m_chunkOrder = tileOrder; + } + float getCenterX() const + { + return this->m_centerX; + } + float getCenterY() const + { + return this->m_centerY; + } + OrderOfChunks getChunkOrder() const + { + return this->m_chunkOrder; + } + CompositorPriority getRenderPriority() const; + bool isViewerOperation() const + { + return true; + } + void setUseAlphaInput(bool value) + { + this->m_useAlphaInput = value; + } + void setRenderData(const RenderData *rd) + { + this->m_rd = rd; + } + void setViewName(const char *viewName) + { + this->m_viewName = viewName; + } - void setViewSettings(const ColorManagedViewSettings *viewSettings) { this->m_viewSettings = viewSettings; } - void setDisplaySettings(const ColorManagedDisplaySettings *displaySettings) { this->m_displaySettings = displaySettings; } + void setViewSettings(const ColorManagedViewSettings *viewSettings) + { + this->m_viewSettings = viewSettings; + } + void setDisplaySettings(const ColorManagedDisplaySettings *displaySettings) + { + this->m_displaySettings = displaySettings; + } -private: - void updateImage(rcti *rect); - void initImage(); + private: + void updateImage(rcti *rect); + void initImage(); }; #endif |