![]() |
ULIS
dev4.0.7
Utility Library for Imaging Systems
|
The FGradient class provides a mean of storing and manipulating gradients in various formats. More...
Additional Inherited Members | |
![]() | |
IHasFormat (eFormat iFormat) | |
void | ReinterpretFormat (eFormat iFormat) |
![]() | |
IHasColorSpace (const FColorSpace *iColorSpace=nullptr) | |
Gradients can have a single or no color. Steps are in [0;1]. Interpolation is linear in the preferred format.
FGradient::~FGradient | ( | ) |
Destroy the gradient.
FGradient::FGradient | ( | eFormat | iFormat | ) |
Construct gradient with preferred interpolation format. By default, gradients are white to black.
|
delete |
TArray< FSharedAlphaStep >& FGradient::AlphaSteps | ( | ) |
Getter for gradient alpha steps.
const TArray< FSharedAlphaStep >& FGradient::AlphaSteps | ( | ) | const |
Getter for gradient alpha steps.
TArray< FSharedColorStep >& FGradient::ColorSteps | ( | ) |
Getter for gradient color steps.
const TArray< FSharedColorStep >& FGradient::ColorSteps | ( | ) | const |
Getter for gradient color steps.
void FGradient::ReinterpretInterpolationFormat | ( | eFormat | iFormat | ) |
Change the preferred interpolation format.
void FGradient::Reset | ( | ) |
Reset the gradient, keep the same format.
void FGradient::Reset | ( | eFormat | iFormat | ) |
Reset the gradient, change the format.
FSanitizedGradient FGradient::Sanitized | ( | ) | const |
Return the sanitized version of this gradient.
FSanitizedGradient FGradient::Sanitized | ( | eFormat | iFormat | ) | const |
Return the sanitized version of this gradient in the specified format.
void FGradient::Sort | ( | ) |
Sort values in both steps containers in case they were changed / moved.