| 
    LibreOffice Module tools (master) 1
    
   | 
 
#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 | 
| ImplPolygon::ImplPolygon | ( | sal_uInt16 | nInitSize | ) | 
Definition at line 65 of file poly.cxx.
References ImplInitSize().
Definition at line 87 of file poly.cxx.
References mnPoints, mxFlagAry, and mxPointAry.
| ImplPolygon::ImplPolygon | ( | const ImplPolygon & | rImplPoly | ) | 
Definition at line 70 of file poly.cxx.
References mnPoints, mxFlagAry, and mxPointAry.
| ImplPolygon::ImplPolygon | ( | const tools::Rectangle & | rRect | ) | 
Definition at line 104 of file poly.cxx.
References tools::Rectangle::BottomLeft(), tools::Rectangle::BottomRight(), ImplInitSize(), tools::Rectangle::IsEmpty(), mnPoints, mxPointAry, tools::Rectangle::TopLeft(), and tools::Rectangle::TopRight().
| ImplPolygon::ImplPolygon | ( | const tools::Rectangle & | rRect, | 
| sal_uInt32 | nHorzRound, | ||
| sal_uInt32 | nVertRound | ||
| ) | 
Definition at line 119 of file poly.cxx.
References abs(), tools::Rectangle::Bottom(), tools::Rectangle::BottomLeft(), tools::Rectangle::BottomRight(), tools::Polygon::GetConstPointAry(), tools::Rectangle::GetHeight(), tools::Polygon::GetSize(), tools::Rectangle::GetWidth(), i, ImplInitSize(), tools::Rectangle::IsEmpty(), tools::Rectangle::Left(), mnPoints, mxPointAry, tools::Rectangle::Normalize(), tools::Rectangle::Right(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), and tools::Rectangle::TopRight().
| ImplPolygon::ImplPolygon | ( | const Point & | rCenter, | 
| tools::Long | nRadX, | ||
| tools::Long | nRadY | ||
| ) | 
Definition at line 171 of file poly.cxx.
References abs(), o3tl::checked_multiply(), FRound(), i, ImplInitSize(), MinMax(), mnPoints, mxPointAry, Point::setX(), Point::setY(), Point::X(), and Point::Y().
| ImplPolygon::ImplPolygon | ( | const tools::Rectangle & | rBound, | 
| const Point & | rStart, | ||
| const Point & | rEnd, | ||
| PolyStyle | eStyle, | ||
| bool | bClockWiseArcDirection | ||
| ) | 
Definition at line 227 of file poly.cxx.
References abs(), tools::Rectangle::Bottom(), tools::Rectangle::Center(), o3tl::checked_multiply(), Chord, FRound(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), ImplGetParameter(), ImplInitSize(), tools::Rectangle::Left(), MinMax(), mnPoints, mxPointAry, Pie, tools::Rectangle::Right(), o3tl::saturating_add(), o3tl::saturating_sub(), Point::setX(), Point::setY(), tools::Rectangle::Top(), Point::X(), and Point::Y().
| 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::ImplPolygon | ( | const basegfx::B2DPolygon & | rPolygon | ) | 
Definition at line 369 of file poly.cxx.
References a, basegfx::B2DPolygon::areControlPointsUsed(), basegfx::C1, basegfx::C2, Control, basegfx::B2DPolygon::count(), DBG_ASSERT, FRound(), basegfx::B2DPolygon::getB2DPoint(), basegfx::B2DPolygon::getContinuityInPoint(), basegfx::B2DCubicBezier::getControlPointA(), basegfx::B2DCubicBezier::getControlPointB(), basegfx::B2DCubicBezier::getEndPoint(), basegfx::B2DPolygon::getNextControlPoint(), basegfx::B2DPolygon::getPrevControlPoint(), basegfx::B2DCubicBezier::getStartPoint(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), ImplInitSize(), ImplSetSize(), basegfx::B2DCubicBezier::isBezier(), basegfx::B2DPolygon::isClosed(), mxFlagAry, mxPointAry, nIndex, Normal, basegfx::B2DCubicBezier::setControlPointA(), basegfx::B2DCubicBezier::setControlPointB(), basegfx::B2DCubicBezier::setEndPoint(), basegfx::B2DCubicBezier::setStartPoint(), Smooth, and Symmetric.
| void ImplPolygon::ImplCreateFlagArray | ( | ) | 
| 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().
| 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().
| 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.
| bool ImplPolygon::operator== | ( | const ImplPolygon & | rCandidate | ) | const | 
Definition at line 502 of file poly.cxx.
References mnPoints, mxFlagAry, and mxPointAry.
| sal_uInt16 ImplPolygon::mnPoints | 
Definition at line 30 of file poly.h.
Referenced by ImplCreateFlagArray(), ImplInitSize(), ImplPolygon(), ImplSetSize(), ImplSplit(), and operator==().
| std::unique_ptr<PolyFlags[]> ImplPolygon::mxFlagAry | 
Definition at line 29 of file poly.h.
Referenced by ImplCreateFlagArray(), ImplInitSize(), ImplPolygon(), ImplSetSize(), ImplSplit(), and operator==().
| std::unique_ptr<Point[]> ImplPolygon::mxPointAry | 
Definition at line 28 of file poly.h.
Referenced by ImplInitSize(), ImplPolygon(), ImplSetSize(), ImplSplit(), and operator==().