34 m_sqrtElements( static_cast<sal_Int32>(
35 sqrt( static_cast<double>(
nElements) ) ) ),
43 const double e = sqrt(area) / 2.0;
44 const sal_Int32 edge =
static_cast<sal_Int32
>(e) * 2;
47 const double edge_ = ::basegfx::pruneScaleValue(
49 aTransform.
scale( edge_, edge_ );
55 if (! ::basegfx::fTools::equalZero( 1.0 -
t )) {
56 const sal_Int32 edge1 = edge + 1;
57 sal_Int32 len =
static_cast<sal_Int32
>( (e - (edge /2)) * edge1 * 4 );
60 const sal_Int32 alen = std::min(len, edge1);
64 ::basegfx::pruneScaleValue(
static_cast<double>(alen) /
m_sqrtElements ),
67 - ::basegfx::pruneScaleValue(
69 ::basegfx::pruneScaleValue(
99 aTransform.
scale( 0.5, 0.5 );
109 aTransform.
scale( 1.0, 0.5 );
void rotate(double fRadiant)
void translate(double fX, double fY)
void scale(double fX, double fY)
void append(const B2DPolygon &rPolygon, sal_uInt32 nCount=1)
void transform(const basegfx::B2DHomMatrix &rMatrix)
void transform(const basegfx::B2DHomMatrix &rMatrix)
virtual ::basegfx::B2DPolyPolygon operator()(double t) override
Retrieve the poly-polygon for value t.
SpiralWipe(sal_Int32 nElements, bool flipOnYAxis=false)
virtual ::basegfx::B2DPolyPolygon operator()(double t) override
Retrieve the poly-polygon for value t.
const sal_Int32 m_sqrtElements
::basegfx::B2DPolyPolygon calcNegSpiral(double t) const
const sal_Int32 m_elements
B2DHomMatrix createScaleB2DHomMatrix(double fScaleX, double fScaleY)
B2DHomMatrix createTranslateB2DHomMatrix(double fTranslateX, double fTranslateY)
::basegfx::B2DPolyPolygon flipOnYAxis(::basegfx::B2DPolyPolygon const &polypoly)
Flips on Y-axis:
::basegfx::B2DPolyPolygon flipOnXAxis(::basegfx::B2DPolyPolygon const &polypoly)
Flips on X-axis:
::basegfx::B2DPolygon createUnitRect()
Create a unit rect.
std::vector< ElementEntry > m_elements