LibreOffice Module tools (master) 1
Public Member Functions | Public Attributes | List of all members
ImplPolygon Class Reference

#include <poly.h>

Public Member Functions

 ImplPolygon ()
 
 ImplPolygon (sal_uInt16 nInitSize)
 
 ImplPolygon (sal_uInt16 nPoints, const Point *pPtAry, const PolyFlags *pInitFlags)
 
 ImplPolygon (const ImplPolygon &rImplPoly)
 
 ImplPolygon (const tools::Rectangle &rRect)
 
 ImplPolygon (const tools::Rectangle &rRect, sal_uInt32 nHorzRound, sal_uInt32 nVertRound)
 
 ImplPolygon (const Point &rCenter, tools::Long nRadX, tools::Long nRadY)
 
 ImplPolygon (const tools::Rectangle &rBound, const Point &rStart, const Point &rEnd, PolyStyle eStyle, bool bClockWiseArcDirection)
 
 ImplPolygon (const Point &rBezPt1, const Point &rCtrlPt1, const Point &rBezPt2, const Point &rCtrlPt2, sal_uInt16 nPoints)
 
 ImplPolygon (const basegfx::B2DPolygon &rPolygon)
 
bool operator== (const ImplPolygon &rCandidate) const
 
void ImplInitSize (sal_uInt16 nInitSize, bool bFlags=false)
 
void ImplSetSize (sal_uInt16 nSize, bool bResize=true)
 
void ImplCreateFlagArray ()
 
bool ImplSplit (sal_uInt16 nPos, sal_uInt16 nSpace, ImplPolygon const *pInitPoly=nullptr)
 

Public Attributes

std::unique_ptr< Point[]> mxPointAry
 
std::unique_ptr< PolyFlags[]> mxFlagAry
 
sal_uInt16 mnPoints
 

Detailed Description

Definition at line 25 of file poly.h.

Constructor & Destructor Documentation

◆ ImplPolygon() [1/10]

ImplPolygon::ImplPolygon ( )
inline

Definition at line 33 of file poly.h.

◆ ImplPolygon() [2/10]

ImplPolygon::ImplPolygon ( sal_uInt16  nInitSize)

Definition at line 65 of file poly.cxx.

References ImplInitSize().

◆ ImplPolygon() [3/10]

ImplPolygon::ImplPolygon ( sal_uInt16  nPoints,
const Point pPtAry,
const PolyFlags pInitFlags 
)

Definition at line 87 of file poly.cxx.

References mnPoints, mxFlagAry, and mxPointAry.

◆ ImplPolygon() [4/10]

ImplPolygon::ImplPolygon ( const ImplPolygon rImplPoly)

Definition at line 70 of file poly.cxx.

References mnPoints, mxFlagAry, and mxPointAry.

◆ ImplPolygon() [5/10]

ImplPolygon::ImplPolygon ( const tools::Rectangle rRect)

◆ ImplPolygon() [6/10]

ImplPolygon::ImplPolygon ( const tools::Rectangle rRect,
sal_uInt32  nHorzRound,
sal_uInt32  nVertRound 
)

◆ ImplPolygon() [7/10]

ImplPolygon::ImplPolygon ( const Point rCenter,
tools::Long  nRadX,
tools::Long  nRadY 
)

◆ ImplPolygon() [8/10]

ImplPolygon::ImplPolygon ( const tools::Rectangle rBound,
const Point rStart,
const Point rEnd,
PolyStyle  eStyle,
bool  bClockWiseArcDirection 
)

◆ ImplPolygon() [9/10]

ImplPolygon::ImplPolygon ( const Point rBezPt1,
const Point rCtrlPt1,
const Point rBezPt2,
const Point rCtrlPt2,
sal_uInt16  nPoints 
)

Definition at line 324 of file poly.cxx.

References FRound(), i, ImplInitSize(), mxPointAry, Point::setX(), Point::setY(), Point::X(), and Point::Y().

◆ ImplPolygon() [10/10]

ImplPolygon::ImplPolygon ( const basegfx::B2DPolygon rPolygon)

Member Function Documentation

◆ ImplCreateFlagArray()

void ImplPolygon::ImplCreateFlagArray ( )

Definition at line 648 of file poly.cxx.

References mnPoints, and mxFlagAry.

◆ ImplInitSize()

void ImplPolygon::ImplInitSize ( sal_uInt16  nInitSize,
bool  bFlags = false 
)

Definition at line 509 of file poly.cxx.

References mnPoints, mxFlagAry, and mxPointAry.

Referenced by ImplPolygon().

◆ ImplSetSize()

void ImplPolygon::ImplSetSize ( sal_uInt16  nSize,
bool  bResize = true 
)

Definition at line 525 of file poly.cxx.

References mnPoints, mxFlagAry, and mxPointAry.

Referenced by ImplPolygon(), and ImplSplit().

◆ ImplSplit()

bool ImplPolygon::ImplSplit ( sal_uInt16  nPos,
sal_uInt16  nSpace,
ImplPolygon const *  pInitPoly = nullptr 
)

Definition at line 586 of file poly.cxx.

References ImplSetSize(), mnPoints, mxFlagAry, mxPointAry, nPos, and SAL_WARN.

◆ operator==()

bool ImplPolygon::operator== ( const ImplPolygon rCandidate) const

Definition at line 502 of file poly.cxx.

References mnPoints, mxFlagAry, and mxPointAry.

Member Data Documentation

◆ mnPoints

sal_uInt16 ImplPolygon::mnPoints

◆ mxFlagAry

std::unique_ptr<PolyFlags[]> ImplPolygon::mxFlagAry

◆ mxPointAry

std::unique_ptr<Point[]> ImplPolygon::mxPointAry

Definition at line 28 of file poly.h.

Referenced by ImplInitSize(), ImplPolygon(), ImplSetSize(), ImplSplit(), and operator==().


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