Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_ChangeHSVOperation.h
| Show All 26 Lines | |||||
| /** | /** | ||||
| * this program converts an input color to an output value. | * this program converts an input color to an output value. | ||||
| * it assumes we are in sRGB color space. | * it assumes we are in sRGB color space. | ||||
| */ | */ | ||||
| class ChangeHSVOperation : public NodeOperation { | class ChangeHSVOperation : public NodeOperation { | ||||
| private: | private: | ||||
| SocketReader *m_inputOperation; | SocketReader *m_inputOperation; | ||||
| SocketReader *m_hueOperation; | |||||
| float m_hue; | SocketReader *m_saturationOperation; | ||||
| float m_saturation; | SocketReader *m_valueOperation; | ||||
| float m_value; | |||||
| public: | public: | ||||
| /** | /** | ||||
| * Default constructor | * Default constructor | ||||
| */ | */ | ||||
| ChangeHSVOperation(); | ChangeHSVOperation(); | ||||
| void initExecution(); | void initExecution(); | ||||
| void deinitExecution(); | void deinitExecution(); | ||||
| /** | /** | ||||
| * the inner loop of this program | * the inner loop of this program | ||||
| */ | */ | ||||
| void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); | void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); | ||||
| void setHue(float hue) { this->m_hue = hue; } | |||||
| void setSaturation(float saturation) { this->m_saturation = saturation; } | |||||
| void setValue(float value) { this->m_value = value; } | |||||
| }; | }; | ||||
| #endif | #endif | ||||