Lines Matching refs:basegfx
46 …sal_uInt32 calculateStepsForSvgGradient(const basegfx::BColor& rColorA, const basegfx::BColor& rCo… in calculateStepsForSvgGradient()
49 sal_uInt32 nSteps(basegfx::fround(rColorA.getDistance(rColorB) * 255.0)); in calculateStepsForSvgGradient()
54 const sal_uInt32 nDistSteps(basegfx::fround(fDelta / (fDiscreteUnit * 1.5))); in calculateStepsForSvgGradient()
142 if(basegfx::fTools::equalZero(rCandidate.getOpacity())) in checkPreconditions()
147 else if(basegfx::fTools::equal(rCandidate.getOpacity(), 1.0)) in checkPreconditions()
166 const basegfx::B2DRange aPolyRange(getPolyPolygon().getB2DRange()); in checkPreconditions()
177 … if(basegfx::fTools::equalZero(fPolyWidth) || basegfx::fTools::equalZero(fPolyHeight)) in checkPreconditions()
249 const basegfx::B2DHomMatrix& rUnitGradientToObject, in createResult()
288 const basegfx::B2DHomMatrix& rGradientTransform, in SvgGradientHelper()
289 const basegfx::B2DPolyPolygon& rPolyPolygon, in SvgGradientHelper()
291 const basegfx::B2DPoint& rStart, in SvgGradientHelper()
340 const basegfx::B2DVector aVector(getEnd() - getStart()); in checkPreconditions()
342 … if(basegfx::fTools::equalZero(aVector.getX()) && basegfx::fTools::equalZero(aVector.getY())) in checkPreconditions()
373 const basegfx::BColor aColorFrom(fTransFrom, fTransFrom, fTransFrom); in createAtom()
374 const basegfx::BColor aColorTo(fTransTo, fTransTo, fTransTo); in createAtom()
402 const basegfx::B2DRange aPolyRange(getPolyPolygon().getB2DRange()); in create2DDecomposition()
407 const basegfx::B2DHomMatrix aObjectTransform( in create2DDecomposition()
408 basegfx::tools::createScaleTranslateB2DHomMatrix( in create2DDecomposition()
411 basegfx::B2DHomMatrix aUnitGradientToObject; in create2DDecomposition()
418 const basegfx::B2DVector aVector(getEnd() - getStart()); in create2DDecomposition()
437 const basegfx::B2DPoint aStart(aObjectTransform * getStart()); in create2DDecomposition()
438 const basegfx::B2DPoint aEnd(aObjectTransform * getEnd()); in create2DDecomposition()
439 const basegfx::B2DVector aVector(aEnd - aStart); in create2DDecomposition()
452 basegfx::B2DHomMatrix aObjectToUnitGradient(aUnitGradientToObject); in create2DDecomposition()
457 basegfx::B2DPolyPolygon aUnitPoly(getPolyPolygon()); in create2DDecomposition()
459 const basegfx::B2DRange aUnitRange(aUnitPoly.getB2DRange()); in create2DDecomposition()
465 if(basegfx::fTools::more(aUnitRange.getWidth(), 0.0)) in create2DDecomposition()
469 const basegfx::B2DHomMatrix aPreMultiply( in create2DDecomposition()
470 basegfx::tools::createScaleTranslateB2DHomMatrix( in create2DDecomposition()
508 basegfx::B2DHomMatrix aTransform; in create2DDecomposition()
535 basegfx::B2DHomMatrix aTransform; in create2DDecomposition()
569 const basegfx::B2DHomMatrix& rGradientTransform, in SvgLinearGradientPrimitive2D()
570 const basegfx::B2DPolyPolygon& rPolyPolygon, in SvgLinearGradientPrimitive2D()
572 const basegfx::B2DPoint& rStart, in SvgLinearGradientPrimitive2D()
573 const basegfx::B2DPoint& rEnd, in SvgLinearGradientPrimitive2D()
600 …basegfx::B2DRange SvgLinearGradientPrimitive2D::getB2DRange(const geometry::ViewInformation2D& /*r… in getB2DRange()
626 if(basegfx::fTools::equalZero(getRadius())) in checkPreconditions()
653 … const basegfx::B2DVector aTranslateFrom(maFocalVector * (maFocalLength - fScaleFrom)); in createAtom()
654 … const basegfx::B2DVector aTranslateTo(maFocalVector * (maFocalLength - fScaleTo)); in createAtom()
673 const basegfx::BColor aColorFrom(fTransFrom, fTransFrom, fTransFrom); in createAtom()
674 const basegfx::BColor aColorTo(fTransTo, fTransTo, fTransTo); in createAtom()
678 … const basegfx::B2DVector aTranslateFrom(maFocalVector * (maFocalLength - fScaleFrom)); in createAtom()
679 … const basegfx::B2DVector aTranslateTo(maFocalVector * (maFocalLength - fScaleTo)); in createAtom()
746 const basegfx::B2DRange aPolyRange(getPolyPolygon().getB2DRange()); in create2DDecomposition()
751 const basegfx::B2DHomMatrix aObjectTransform( in create2DDecomposition()
752 basegfx::tools::createScaleTranslateB2DHomMatrix( in create2DDecomposition()
755 basegfx::B2DHomMatrix aUnitGradientToObject; in create2DDecomposition()
778 … const double fRadius((aObjectTransform * basegfx::B2DVector(getRadius(), 0.0)).getLength()); in create2DDecomposition()
779 const basegfx::B2DPoint aStart(aObjectTransform * getStart()); in create2DDecomposition()
791 basegfx::B2DHomMatrix aObjectToUnitGradient(aUnitGradientToObject); in create2DDecomposition()
796 basegfx::B2DPolyPolygon aUnitPoly(getPolyPolygon()); in create2DDecomposition()
798 const basegfx::B2DRange aUnitRange(aUnitPoly.getB2DRange()); in create2DDecomposition()
802 double fMax(basegfx::B2DVector(aUnitRange.getMinimum()).getLength()); in create2DDecomposition()
803 fMax = std::max(fMax, basegfx::B2DVector(aUnitRange.getMaximum()).getLength()); in create2DDecomposition()
804 … fMax = std::max(fMax, basegfx::B2DVector(aUnitRange.getMinX(), aUnitRange.getMaxY()).getLength()); in create2DDecomposition()
805 … fMax = std::max(fMax, basegfx::B2DVector(aUnitRange.getMaxX(), aUnitRange.getMinY()).getLength()); in create2DDecomposition()
857 const basegfx::B2DHomMatrix& rGradientTransform, in SvgRadialGradientPrimitive2D()
858 const basegfx::B2DPolyPolygon& rPolyPolygon, in SvgRadialGradientPrimitive2D()
860 const basegfx::B2DPoint& rStart, in SvgRadialGradientPrimitive2D()
864 const basegfx::B2DPoint* pFocal) in SvgRadialGradientPrimitive2D()
913 …basegfx::B2DRange SvgRadialGradientPrimitive2D::getB2DRange(const geometry::ViewInformation2D& /*r… in getB2DRange()
937 if(!basegfx::fTools::equalZero(fDelta)) in create2DDecomposition()
946 const basegfx::B2DPolygon aPolygon( in create2DDecomposition()
947 basegfx::tools::createPolygonFromRect( in create2DDecomposition()
948 basegfx::B2DRange( in create2DDecomposition()
963 basegfx::B2DPolygon aNew(aPolygon); in create2DDecomposition()
965 … aNew.transform(basegfx::tools::createTranslateB2DHomMatrix(fDelta * fUnitScale, 0.0)); in create2DDecomposition()
967 basegfx::B2DPolyPolygon(aNew), in create2DDecomposition()
968 basegfx::interpolate(getColorA(), getColorB(), fUnitScale)); in create2DDecomposition()
976 const basegfx::BColor& aColorA, double fOffsetA, in SvgLinearAtomPrimitive2D()
977 const basegfx::BColor& aColorB, double fOffsetB) in SvgLinearAtomPrimitive2D()
1024 if(!basegfx::fTools::equalZero(fDeltaScale)) in create2DDecomposition()
1041 basegfx::B2DHomMatrix aTransform; in create2DDecomposition()
1046 const basegfx::B2DVector aTranslate( in create2DDecomposition()
1047 basegfx::interpolate( in create2DDecomposition()
1052 aTransform = basegfx::tools::createScaleTranslateB2DHomMatrix( in create2DDecomposition()
1060 aTransform = basegfx::tools::createScaleB2DHomMatrix( in create2DDecomposition()
1065 basegfx::B2DPolygon aNew(basegfx::tools::createPolygonFromUnitCircle()); in create2DDecomposition()
1069 basegfx::B2DPolyPolygon(aNew), in create2DDecomposition()
1070 basegfx::interpolate(getColorB(), getColorA(), fUnitScale)); in create2DDecomposition()
1078 const basegfx::BColor& aColorA, double fScaleA, const basegfx::B2DVector& rTranslateA, in SvgRadialAtomPrimitive2D()
1079 const basegfx::BColor& aColorB, double fScaleB, const basegfx::B2DVector& rTranslateB) in SvgRadialAtomPrimitive2D()
1111 const basegfx::BColor& aColorA, double fScaleA, in SvgRadialAtomPrimitive2D()
1112 const basegfx::BColor& aColorB, double fScaleB) in SvgRadialAtomPrimitive2D()