36#define MAXIMUM_SQUARE_LENGTH (186.0)
37#define MINIMUM_SQUARE_LENGTH (16.0)
38#define MINIMUM_TILES_LENGTH (3)
66 const double fSquare(fW * fH);
74 if(fSquare >= fMaximumSquare)
82 if(nTiles < nMinimumTiles)
89 if(fSquare < fMinimumSquare)
91 const double fRel(fW/fH);
137 std::move(xEmbedSeq),
172 if(!aUnitRange.
isInside(aContentRange))
177 std::move(aContent)));
194 std::move(aContent)));
198 std::move(xEmbedSeq),
221 std::vector< basegfx::B2DHomMatrix > aMatrices;
230 aRetval.resize(aMatrices.size());
233 for(
size_t a(0);
a < aMatrices.size();
a++)
250 std::move(aRetval)));
257 rContainer.push_back(
260 std::move(aRetval)));
268 : maMask(
std::move(aMask)),
270 maReferenceRange(rReferenceRange),
278 if(BufferedDecompositionPrimitive2D::operator==(rPrimitive))
300 bool bResetBuffering =
false;
305 const bool bBufferingNextUsed(0 != nW && 0 != nH);
307 if(bBufferingNextUsed)
310 if(bBufferingCurrentlyUsed)
316 bResetBuffering =
true;
322 bResetBuffering =
true;
329 bResetBuffering =
true;
335 if(bBufferingCurrentlyUsed)
338 bResetBuffering =
true;
359 nRet += it->estimateUsage();
std::vector< Reference< XAnimationNode > > maChildren
const Size & GetSizePixel() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
B2DRange getB2DRange() const
B2DVector getRange() const
B2DPoint getMinimum() const
bool isInside(const Tuple2D< TYPE > &rTuple) const
void setBuffered2DDecomposition(Primitive2DContainer &&rNew)
virtual void get2DDecomposition(Primitive2DDecompositionVisitor &rVisitor, const geometry::ViewInformation2D &rViewInformation) const override
The getDecomposition default implementation will on demand use create2DDecomposition() if maBuffered2...
PatternFillPrimitive2D class.
const Primitive2DContainer & getChildren() const
virtual bool operator==(const BasePrimitive2D &rPrimitive) const override
compare operator
sal_uInt32 mnDiscreteHeight
virtual void get2DDecomposition(Primitive2DDecompositionVisitor &rVisitor, const geometry::ViewInformation2D &rViewInformation) const override
overload to react on evtl. buffered content
void getTileSize(sal_uInt32 &rWidth, sal_uInt32 &rHeight, const geometry::ViewInformation2D &rViewInformation) const
helper that is capable to calculate the needed discrete buffer size for eventually buffered content
const basegfx::B2DRange & getReferenceRange() const
virtual void create2DDecomposition(Primitive2DContainer &rContainer, const geometry::ViewInformation2D &rViewInformation) const override
create local decomposition
PatternFillPrimitive2D(basegfx::B2DPolyPolygon aMask, Primitive2DContainer &&rChildren, const basegfx::B2DRange &rReferenceRange)
constructor
void calculateNeededDiscreteBufferSize(sal_uInt32 &rWidth, sal_uInt32 &rHeight, const geometry::ViewInformation2D &rViewInformation) const
helper that is capable to calculate the needed discrete buffer size for eventually buffered content
virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D &rViewInformation) const override
get range
const basegfx::B2DPolyPolygon & getMask() const
data read access
Primitive2DContainer createContent(const geometry::ViewInformation2D &rViewInformation) const
helper which creates the content - checks if clipping is needed and eventually creates buffered conte...
virtual sal_uInt32 getPrimitive2DID() const override
provide unique ID
sal_uInt32 mnDiscreteWidth
values holding the discrete buffer size
BitmapEx createTileImage(sal_uInt32 nWidth, sal_uInt32 nHeight) const
helper which creates the content - checks if clipping is needed and eventually creates buffered conte...
virtual sal_Int64 estimateUsage() override
basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D &aViewInformation) const
sal_uInt32 getNumberOfTiles() const
void appendTransformations(::std::vector< basegfx::B2DHomMatrix > &rMatrices) const
#define PRIMITIVE2D_ID_PATTERNFILLPRIMITIVE2D
double getLength(const B2DPolygon &rCandidate)
B2DHomMatrix createScaleTranslateB2DHomMatrix(double fScaleX, double fScaleY, double fTranslateX, double fTranslateY)
B2DPolygon createPolygonFromRect(const B2DRectangle &rRect, double fRadiusX, double fRadiusY)
B2DHomMatrix createScaleB2DHomMatrix(double fScaleX, double fScaleY)
B2IRange fround(const B2DRange &rRange)
BitmapEx convertToBitmapEx(drawinglayer::primitive2d::Primitive2DContainer &&rSeq, const geometry::ViewInformation2D &rViewInformation2D, sal_uInt32 nDiscreteWidth, sal_uInt32 nDiscreteHeight, sal_uInt32 nMaxSquarePixels)
#define MAXIMUM_SQUARE_LENGTH
#define MINIMUM_SQUARE_LENGTH
#define MINIMUM_TILES_LENGTH