LibreOffice Module drawinglayer (master) 1
|
#include <texture.hxx>
Public Member Functions | |
GeoTexSvxGradientLinear (const basegfx::B2DRange &rDefinitionRange, const basegfx::B2DRange &rOutputRange, sal_uInt32 nRequestedSteps, const basegfx::BColorStops &rColorStops, double fBorder, double fAngle) | |
virtual | ~GeoTexSvxGradientLinear () override |
virtual void | appendTransformationsAndColors (std::function< void(const basegfx::B2DHomMatrix &rMatrix, const basegfx::BColor &rColor)> aCallback) override |
virtual void | modifyBColor (const basegfx::B2DPoint &rUV, basegfx::BColor &rBColor, double &rfOpacity) const override |
Public Member Functions inherited from drawinglayer::texture::GeoTexSvxGradient | |
GeoTexSvxGradient (const basegfx::B2DRange &rDefinitionRange, sal_uInt32 nRequestedSteps, const basegfx::BColorStops &rColorStops, double fBorder) | |
virtual | ~GeoTexSvxGradient () override |
virtual bool | operator== (const GeoTexSvx &rGeoTexSvx) const override |
virtual void | appendTransformationsAndColors (std::function< void(const basegfx::B2DHomMatrix &rMatrix, const basegfx::BColor &rColor)> aCallback)=0 |
Public Member Functions inherited from drawinglayer::texture::GeoTexSvx | |
GeoTexSvx () | |
virtual | ~GeoTexSvx () |
virtual bool | operator== (const GeoTexSvx &rGeoTexSvx) const |
bool | operator!= (const GeoTexSvx &rGeoTexSvx) const |
virtual void | modifyBColor (const basegfx::B2DPoint &rUV, basegfx::BColor &rBColor, double &rfOpacity) const |
virtual void | modifyOpacity (const basegfx::B2DPoint &rUV, double &rfOpacity) const |
Private Attributes | |
double | mfUnitMinX |
double | mfUnitWidth |
double | mfUnitMaxY |
Additional Inherited Members | |
Protected Attributes inherited from drawinglayer::texture::GeoTexSvxGradient | |
basegfx::ODFGradientInfo | maGradientInfo |
basegfx::B2DRange | maDefinitionRange |
sal_uInt32 | mnRequestedSteps |
basegfx::BColorStops | mnColorStops |
double | mfBorder |
basegfx::BColorStops::BColorStopRange | maLastColorStopRange |
Definition at line 75 of file texture.hxx.
drawinglayer::texture::GeoTexSvxGradientLinear::GeoTexSvxGradientLinear | ( | const basegfx::B2DRange & | rDefinitionRange, |
const basegfx::B2DRange & | rOutputRange, | ||
sal_uInt32 | nRequestedSteps, | ||
const basegfx::BColorStops & | rColorStops, | ||
double | fBorder, | ||
double | fAngle | ||
) |
Definition at line 102 of file texture.cxx.
References basegfx::utils::createLinearODFGradientInfo(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxY(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), drawinglayer::texture::GeoTexSvxGradient::maGradientInfo, mfUnitMaxY, mfUnitMinX, mfUnitWidth, and basegfx::B2DRange::transform().
|
overridevirtual |
Definition at line 131 of file texture.cxx.
|
overridevirtual |
Implements drawinglayer::texture::GeoTexSvxGradient.
Definition at line 135 of file texture.cxx.
References basegfx::utils::calculateNumberOfSteps(), basegfx::BColorStops::checkPenultimate(), basegfx::fTools::equal(), interpolate(), drawinglayer::texture::GeoTexSvxGradient::maGradientInfo, mfUnitMaxY, mfUnitMinX, mfUnitWidth, drawinglayer::texture::GeoTexSvxGradient::mnColorStops, basegfx::B2DHomMatrix::scale(), and basegfx::B2DHomMatrix::translate().
Referenced by drawinglayer::primitive2d::FillGradientPrimitive2D::generateMatricesAndColors().
|
overridevirtual |
Reimplemented from drawinglayer::texture::GeoTexSvx.
Definition at line 232 of file texture.cxx.
References basegfx::BColorStops::getInterpolatedBColor(), basegfx::utils::getLinearGradientAlpha(), drawinglayer::texture::GeoTexSvxGradient::maGradientInfo, drawinglayer::texture::GeoTexSvxGradient::maLastColorStopRange, drawinglayer::texture::GeoTexSvxGradient::mnColorStops, and drawinglayer::texture::GeoTexSvxGradient::mnRequestedSteps.
|
private |
Definition at line 79 of file texture.hxx.
Referenced by appendTransformationsAndColors(), and GeoTexSvxGradientLinear().
|
private |
Definition at line 77 of file texture.hxx.
Referenced by appendTransformationsAndColors(), and GeoTexSvxGradientLinear().
|
private |
Definition at line 78 of file texture.hxx.
Referenced by appendTransformationsAndColors(), and GeoTexSvxGradientLinear().