LibreOffice Module svx (master) 1
Public Member Functions | Private Attributes | List of all members
XPolyPolygon Class Referencefinal

#include <xpoly.hxx>

Collaboration diagram for XPolyPolygon:
[legend]

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 XPolygonGetObject (sal_uInt16 nPos) const
 
void Clear ()
 
sal_uInt16 Count () const
 
tools::Rectangle GetBoundRect () const
 
const XPolygonoperator[] (sal_uInt16 nPos) const
 
XPolygonoperator[] (sal_uInt16 nPos)
 
XPolyPolygonoperator= (const XPolyPolygon &)
 
XPolyPolygonoperator= (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< ImpXPolyPolygonpImpXPolyPolygon
 

Detailed Description

Definition at line 114 of file xpoly.hxx.

Constructor & Destructor Documentation

◆ XPolyPolygon() [1/4]

XPolyPolygon::XPolyPolygon ( )
default

◆ XPolyPolygon() [2/4]

XPolyPolygon::XPolyPolygon ( const XPolyPolygon )
default

◆ XPolyPolygon() [3/4]

XPolyPolygon::XPolyPolygon ( XPolyPolygon &&  )
default

◆ ~XPolyPolygon()

XPolyPolygon::~XPolyPolygon ( )
default

◆ XPolyPolygon() [4/4]

XPolyPolygon::XPolyPolygon ( const basegfx::B2DPolyPolygon rPolyPolygon)
explicit

Definition at line 846 of file _xpoly.cxx.

References Insert().

Member Function Documentation

◆ Clear()

void XPolyPolygon::Clear ( )

◆ Count()

sal_uInt16 XPolyPolygon::Count ( ) const

◆ Distort()

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().

◆ getB2DPolyPolygon()

basegfx::B2DPolyPolygon XPolyPolygon::getB2DPolyPolygon ( ) const

◆ GetBoundRect()

tools::Rectangle XPolyPolygon::GetBoundRect ( ) const

◆ GetObject()

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[]().

◆ Insert() [1/2]

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.

◆ Insert() [2/2]

void XPolyPolygon::Insert ( XPolygon &&  rXPoly)

◆ operator=() [1/2]

XPolyPolygon & XPolyPolygon::operator= ( const XPolyPolygon )
default

◆ operator=() [2/2]

XPolyPolygon & XPolyPolygon::operator= ( XPolyPolygon &&  )
default

◆ operator[]() [1/2]

XPolygon & XPolyPolygon::operator[] ( sal_uInt16  nPos)

Definition at line 904 of file _xpoly.cxx.

References nPos, and pImpXPolyPolygon.

◆ operator[]() [2/2]

const XPolygon & XPolyPolygon::operator[] ( sal_uInt16  nPos) const
inline

Definition at line 135 of file xpoly.hxx.

References GetObject(), and nPos.

◆ Remove()

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().

Member Data Documentation

◆ pImpXPolyPolygon

o3tl::cow_wrapper< ImpXPolyPolygon > XPolyPolygon::pImpXPolyPolygon
private

Definition at line 116 of file xpoly.hxx.

Referenced by Clear(), Count(), Distort(), GetBoundRect(), GetObject(), Insert(), operator[](), and Remove().


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