LibreOffice Module basegfx (master) 1
|
interpolate color More...
#include <bcolormodifier.hxx>
Public Member Functions | |
BColorModifier_interpolate (const ::basegfx::BColor &rBColor, double fValue) | |
virtual | ~BColorModifier_interpolate () override |
virtual SAL_DLLPRIVATE bool | operator== (const BColorModifier &rCompare) const override |
virtual SAL_DLLPRIVATE ::basegfx::BColor | getModifiedColor (const ::basegfx::BColor &aSourceColor) const override |
virtual SAL_DLLPRIVATE OUString | getModifierName () const override |
Public Member Functions inherited from basegfx::BColorModifier | |
virtual | ~BColorModifier () |
virtual bool | operator== (const BColorModifier &rCompare) const =0 |
bool | operator!= (const BColorModifier &rCompare) const |
virtual ::basegfx::BColor | getModifiedColor (const ::basegfx::BColor &aSourceColor) const =0 |
virtual OUString | getModifierName () const =0 |
Private Attributes | |
::basegfx::BColor | maBColor |
double | mfValue |
Additional Inherited Members | |
Protected Member Functions inherited from basegfx::BColorModifier | |
BColorModifier () | |
interpolate color
returns an interpolated color mixed by the given value (f) in the range [0.0 .. 1.0] and the given color (col) as follows:
col * (1 - f) + aSourceColor * f
Definition at line 191 of file bcolormodifier.hxx.
|
inline |
Definition at line 198 of file bcolormodifier.hxx.
|
overridevirtual |
Definition at line 119 of file bcolormodifier.cxx.
|
overridevirtual |
Implements basegfx::BColorModifier.
Definition at line 135 of file bcolormodifier.cxx.
References basegfx::interpolate(), maBColor, and mfValue.
|
overridevirtual |
Implements basegfx::BColorModifier.
Definition at line 140 of file bcolormodifier.cxx.
|
overridevirtual |
Implements basegfx::BColorModifier.
Definition at line 123 of file bcolormodifier.cxx.
|
private |
Definition at line 194 of file bcolormodifier.hxx.
Referenced by getModifiedColor(), and operator==().
|
private |
Definition at line 195 of file bcolormodifier.hxx.
Referenced by getModifiedColor(), and operator==().