LibreOffice Module basegfx (master) 1
Public Member Functions | Private Attributes | List of all members
basegfx::BColorModifier_interpolate Class Referencefinal

interpolate color More...

#include <bcolormodifier.hxx>

Inheritance diagram for basegfx::BColorModifier_interpolate:
[legend]
Collaboration diagram for basegfx::BColorModifier_interpolate:
[legend]

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
 
- 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
 

Private Attributes

::basegfx::BColor maBColor
 
double mfValue
 

Additional Inherited Members

- Protected Member Functions inherited from basegfx::BColorModifier
 BColorModifier ()
 

Detailed Description

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 183 of file bcolormodifier.hxx.

Constructor & Destructor Documentation

◆ BColorModifier_interpolate()

basegfx::BColorModifier_interpolate::BColorModifier_interpolate ( const ::basegfx::BColor rBColor,
double  fValue 
)
inline

Definition at line 190 of file bcolormodifier.hxx.

◆ ~BColorModifier_interpolate()

basegfx::BColorModifier_interpolate::~BColorModifier_interpolate ( )
overridevirtual

Definition at line 99 of file bcolormodifier.cxx.

Member Function Documentation

◆ getModifiedColor()

basegfx::BColor basegfx::BColorModifier_interpolate::getModifiedColor ( const ::basegfx::BColor aSourceColor) const
overridevirtual

Implements basegfx::BColorModifier.

Definition at line 115 of file bcolormodifier.cxx.

References basegfx::interpolate(), maBColor, and mfValue.

◆ operator==()

bool basegfx::BColorModifier_interpolate::operator== ( const BColorModifier rCompare) const
overridevirtual

Implements basegfx::BColorModifier.

Definition at line 103 of file bcolormodifier.cxx.

References maBColor, and mfValue.

Member Data Documentation

◆ maBColor

::basegfx::BColor basegfx::BColorModifier_interpolate::maBColor
private

Definition at line 186 of file bcolormodifier.hxx.

Referenced by getModifiedColor(), and operator==().

◆ mfValue

double basegfx::BColorModifier_interpolate::mfValue
private

Definition at line 187 of file bcolormodifier.hxx.

Referenced by getModifiedColor(), and operator==().


The documentation for this class was generated from the following files: