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 113 of file xpoly.hxx.

Constructor & Destructor Documentation

XPolyPolygon::XPolyPolygon ( )
default
XPolyPolygon::XPolyPolygon ( const XPolyPolygon )
default
XPolyPolygon::XPolyPolygon ( XPolyPolygon &&  )
default
XPolyPolygon::~XPolyPolygon ( )
default
XPolyPolygon::XPolyPolygon ( const basegfx::B2DPolyPolygon rPolyPolygon)
explicit

Definition at line 855 of file _xpoly.cxx.

References Insert().

Member Function Documentation

void XPolyPolygon::Clear ( )
sal_uInt16 XPolyPolygon::Count ( ) const
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 933 of file _xpoly.cxx.

References ImpXPolyPolygon::aXPolyList, Count(), i, and pImpXPolyPolygon.

Referenced by SdrEditView::ImpDistortObj().

basegfx::B2DPolyPolygon XPolyPolygon::getB2DPolyPolygon ( ) const
tools::Rectangle XPolyPolygon::GetBoundRect ( ) const
const XPolygon & XPolyPolygon::GetObject ( sal_uInt16  nPos) const

Definition at line 885 of file _xpoly.cxx.

References ImpXPolyPolygon::aXPolyList, and pImpXPolyPolygon.

Referenced by SdrPathObj::AddToHdlList().

void XPolyPolygon::Insert ( XPolygon &&  rXPoly)
void XPolyPolygon::Insert ( const XPolyPolygon rXPoly)

insert all XPolygons of a XPolyPolygon

Definition at line 872 of file _xpoly.cxx.

References ImpXPolyPolygon::aXPolyList, Count(), i, and pImpXPolyPolygon.

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

Definition at line 134 of file xpoly.hxx.

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

Definition at line 914 of file _xpoly.cxx.

References ImpXPolyPolygon::aXPolyList, and pImpXPolyPolygon.

void XPolyPolygon::Remove ( sal_uInt16  nPos)

Member Data Documentation

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

Definition at line 115 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: