Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_CompositorOperation.h
| Show All 20 Lines | |||||
| */ | */ | ||||
| #ifndef _COM_CompositorOperation_h | #ifndef _COM_CompositorOperation_h | ||||
| #define _COM_CompositorOperation_h | #define _COM_CompositorOperation_h | ||||
| #include "COM_NodeOperation.h" | #include "COM_NodeOperation.h" | ||||
| #include "BLI_rect.h" | #include "BLI_rect.h" | ||||
| #include "BLI_string.h" | #include "BLI_string.h" | ||||
| struct Scene; | |||||
| /** | /** | ||||
| * @brief Compositor output operation | * @brief Compositor output operation | ||||
| */ | */ | ||||
| class CompositorOperation : public NodeOperation { | class CompositorOperation : public NodeOperation { | ||||
| private: | private: | ||||
| const struct Scene *m_scene; | |||||
| /** | /** | ||||
| * @brief Scene name, used for getting the render output, includes 'SC' prefix. | * @brief Scene name, used for getting the render output, includes 'SC' prefix. | ||||
| */ | */ | ||||
| char m_sceneName[MAX_ID_NAME]; | char m_sceneName[MAX_ID_NAME]; | ||||
| /** | /** | ||||
| * @brief local reference to the scene | * @brief local reference to the scene | ||||
| */ | */ | ||||
| Show All 37 Lines | private: | ||||
| /** | /** | ||||
| * @brief View name, used for multiview | * @brief View name, used for multiview | ||||
| */ | */ | ||||
| const char *m_viewName; | const char *m_viewName; | ||||
| public: | public: | ||||
| CompositorOperation(); | CompositorOperation(); | ||||
| const bool isActiveCompositorOutput() const { return this->m_active; } | const bool isActiveCompositorOutput() const { return this->m_active; } | ||||
| void executeRegion(rcti *rect, unsigned int tileNumber); | void executeRegion(rcti *rect, unsigned int tileNumber); | ||||
| void setScene(const struct Scene *scene) { m_scene = scene; } | |||||
| void setSceneName(const char *sceneName) { BLI_strncpy(this->m_sceneName, sceneName, sizeof(this->m_sceneName)); } | void setSceneName(const char *sceneName) { BLI_strncpy(this->m_sceneName, sceneName, sizeof(this->m_sceneName)); } | ||||
| void setViewName(const char *viewName) { this->m_viewName = viewName; } | void setViewName(const char *viewName) { this->m_viewName = viewName; } | ||||
| void setRenderData(const RenderData *rd) { this->m_rd = rd; } | void setRenderData(const RenderData *rd) { this->m_rd = rd; } | ||||
| bool isOutputOperation(bool /*rendering*/) const { return this->isActiveCompositorOutput(); } | bool isOutputOperation(bool /*rendering*/) const { return this->isActiveCompositorOutput(); } | ||||
| void initExecution(); | void initExecution(); | ||||
| void deinitExecution(); | void deinitExecution(); | ||||
| const CompositorPriority getRenderPriority() const { return COM_PRIORITY_MEDIUM; } | const CompositorPriority getRenderPriority() const { return COM_PRIORITY_MEDIUM; } | ||||
| void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]); | void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]); | ||||
| void setUseAlphaInput(bool value) { this->m_useAlphaInput = value; } | void setUseAlphaInput(bool value) { this->m_useAlphaInput = value; } | ||||
| void setActive(bool active) { this->m_active = active; } | void setActive(bool active) { this->m_active = active; } | ||||
| }; | }; | ||||
| #endif | #endif | ||||