Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_MapRangeOperation.h
| Show All 10 Lines | |||||
| * | * | ||||
| * You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| * | * | ||||
| * Copyright 2012, Blender Foundation. | * Copyright 2012, Blender Foundation. | ||||
| */ | */ | ||||
| #ifndef __COM_MAPRANGEOPERATION_H__ | #pragma once | ||||
| #define __COM_MAPRANGEOPERATION_H__ | |||||
| #include "COM_NodeOperation.h" | #include "COM_NodeOperation.h" | ||||
| #include "DNA_texture_types.h" | #include "DNA_texture_types.h" | ||||
| /** | /** | ||||
| * 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 MapRangeOperation : public NodeOperation { | class MapRangeOperation : public NodeOperation { | ||||
| Show All 33 Lines | public: | ||||
| /** | /** | ||||
| * Clamp the output | * Clamp the output | ||||
| */ | */ | ||||
| void setUseClamp(bool value) | void setUseClamp(bool value) | ||||
| { | { | ||||
| this->m_useClamp = value; | this->m_useClamp = value; | ||||
| } | } | ||||
| }; | }; | ||||
| #endif | |||||