|
ACF $AcfVersion:0$
|
Simple implementation of color gradient based on interpolation between start and end colors. More...
#include <TColorGradient.h>
Public Types | |
| typedef IColorTransformation::ResultType | GradientColor |
Public Types inherited from imath::TIMathFunction< icmm::CVarColor, icmm::CVarColor > | |
| typedef icmm::CVarColor | ArgumentType |
| typedef icmm::CVarColor | ResultType |
Public Member Functions | |
| TColorGradient (const GradientColor &startColor, const GradientColor &endColor) | |
| virtual bool | GetValueAt (const ArgumentType &argument, ResultType &result) const override |
| virtual ResultType | GetValueAt (const ArgumentType &argument) const override |
Public Member Functions inherited from imath::TIMathFunction< icmm::CVarColor, icmm::CVarColor > | |
| virtual bool | GetValueAt (const icmm::CVarColor &argument, icmm::CVarColor &result) const=0 |
| Get function value for specified argument value. | |
| virtual icmm::CVarColor | GetValueAt (const icmm::CVarColor &argument) const=0 |
| Get function value for specified argument value. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Simple implementation of color gradient based on interpolation between start and end colors.
TColorGradient provides smooth color transitions between two colors using linear or custom interpolation functions. It implements IColorTransformation, allowing it to generate intermediate colors based on a parameter value (typically 0 to 1).
The gradient is parameterized by:
The template parameter GradientFunction controls interpolation:
LinearGradientFunction** (default):
Used by CLinearColorGradient typedef
Custom functions**:
static double GetValue(double x)Definition at line 202 of file TColorGradient.h.
| typedef IColorTransformation::ResultType icmm::TColorGradient< GradientFunction >::GradientColor |
Definition at line 205 of file TColorGradient.h.
| icmm::TColorGradient< GradientFunction >::TColorGradient | ( | const GradientColor & | startColor, |
| const GradientColor & | endColor | ||
| ) |
Definition at line 220 of file TColorGradient.h.
|
overridevirtual |
Definition at line 258 of file TColorGradient.h.
|
overridevirtual |
Definition at line 230 of file TColorGradient.h.
References istd::TRange< ValueType >::GetClipped().