LibreOffice Module svx (master) 1
|
#include <xpoly.hxx>
Public Member Functions | |
XPolyPolygon () | |
XPolyPolygon (const XPolyPolygon &) | |
XPolyPolygon (XPolyPolygon &&) | |
~XPolyPolygon () | |
void | Insert (XPolygon &&rXPoly) |
void | Insert (const XPolyPolygon &rXPoly) |
insert all XPolygons of a XPolyPolygon More... | |
void | Remove (sal_uInt16 nPos) |
const XPolygon & | GetObject (sal_uInt16 nPos) const |
void | Clear () |
sal_uInt16 | Count () const |
tools::Rectangle | GetBoundRect () const |
const XPolygon & | operator[] (sal_uInt16 nPos) const |
XPolygon & | operator[] (sal_uInt16 nPos) |
XPolyPolygon & | operator= (const XPolyPolygon &) |
XPolyPolygon & | operator= (XPolyPolygon &&) |
void | Distort (const tools::Rectangle &rRefRect, const XPolygon &rDistortedRect) |
Distort a polygon by scaling its coordinates relative to a reference rectangle into an arbitrary rectangle. More... | |
basegfx::B2DPolyPolygon | getB2DPolyPolygon () const |
XPolyPolygon (const basegfx::B2DPolyPolygon &rPolyPolygon) | |
Private Attributes | |
o3tl::cow_wrapper< ImpXPolyPolygon > | pImpXPolyPolygon |
|
default |
|
default |
|
default |
|
default |
|
explicit |
Definition at line 846 of file _xpoly.cxx.
References Insert().
void XPolyPolygon::Clear | ( | ) |
Definition at line 880 of file _xpoly.cxx.
References pImpXPolyPolygon.
Referenced by ImpPathForDragAndCreate::BegCreate(), and ImpPathForDragAndCreate::BrkCreate().
sal_uInt16 XPolyPolygon::Count | ( | ) | const |
Definition at line 885 of file _xpoly.cxx.
References pImpXPolyPolygon.
Referenced by SdrPathObj::AddToHdlList(), SdrPathObj::AddToPlusHdlList(), ImpPathForDragAndCreate::BckCreate(), CrookRotatePoly(), CrookSlantPoly(), CrookStretchPoly(), Distort(), SdrMeasureObj::DoConvertToPolyObj(), ImpPathForDragAndCreate::EndCreate(), getB2DPolyPolygon(), Insert(), SdrDragCrook::MovAllPoints(), ImpPathForDragAndCreate::MovCreate(), and RotateXPoly().
void XPolyPolygon::Distort | ( | const tools::Rectangle & | rRefRect, |
const XPolygon & | rDistortedRect | ||
) |
Distort a polygon by scaling its coordinates relative to a reference rectangle into an arbitrary rectangle.
Mapping between polygon corners and reference rectangle: 0: top left 0-—1 1: top right | | 2: bottom right 3-—2 3: bottom left
Definition at line 923 of file _xpoly.cxx.
References Count(), i, and pImpXPolyPolygon.
Referenced by SdrEditView::ImpDistortObj().
basegfx::B2DPolyPolygon XPolyPolygon::getB2DPolyPolygon | ( | ) | const |
Definition at line 930 of file _xpoly.cxx.
References a, basegfx::B2DPolyPolygon::append(), Count(), and XPolygon::getB2DPolygon().
Referenced by ImpPathForDragAndCreate::endPathDrag(), ImpPathForDragAndCreate::getModifiedPolyPolygon(), ImpPathForDragAndCreate::getSpecialDragPoly(), SdrEditView::ImpCrookObj(), SdrEditView::ImpDistortObj(), SdrDragCrook::MovAllPoints(), ImpPathForDragAndCreate::TakeObjectPolyPolygon(), and SdrRectObj::TakeXorPoly().
tools::Rectangle XPolyPolygon::GetBoundRect | ( | ) | const |
Definition at line 890 of file _xpoly.cxx.
References XPolygon::GetBoundRect(), n, pImpXPolyPolygon, and tools::Rectangle::Union().
Referenced by SdrMeasureObj::RecalcSnapRect(), and SdrPathObj::TakeUnrotatedSnapRect().
const XPolygon & XPolyPolygon::GetObject | ( | sal_uInt16 | nPos | ) | const |
Definition at line 875 of file _xpoly.cxx.
References nPos, and pImpXPolyPolygon.
Referenced by SdrPathObj::AddToHdlList(), and operator[]().
void XPolyPolygon::Insert | ( | const XPolyPolygon & | rXPoly | ) |
insert all XPolygons of a XPolyPolygon
Definition at line 862 of file _xpoly.cxx.
References Count(), i, and pImpXPolyPolygon.
void XPolyPolygon::Insert | ( | XPolygon && | rXPoly | ) |
Definition at line 856 of file _xpoly.cxx.
References pImpXPolyPolygon.
Referenced by ImpPathForDragAndCreate::BegCreate(), ImpPathForDragAndCreate::EndCreate(), ImpPathForDragAndCreate::getSpecialDragPoly(), SdrRectObj::TakeXorPoly(), and XPolyPolygon().
|
default |
|
default |
XPolygon & XPolyPolygon::operator[] | ( | sal_uInt16 | nPos | ) |
Definition at line 904 of file _xpoly.cxx.
References nPos, and pImpXPolyPolygon.
|
inline |
Definition at line 135 of file xpoly.hxx.
References GetObject(), and nPos.
void XPolyPolygon::Remove | ( | sal_uInt16 | nPos | ) |
Definition at line 870 of file _xpoly.cxx.
References nPos, and pImpXPolyPolygon.
Referenced by ImpPathForDragAndCreate::BckCreate(), and ImpPathForDragAndCreate::EndCreate().
|
private |
Definition at line 116 of file xpoly.hxx.
Referenced by Clear(), Count(), Distort(), GetBoundRect(), GetObject(), Insert(), operator[](), and Remove().