LibreOffice Module svx (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
sdr::PolyPolygonEditor Class Reference

this class implements some helper functions to edit a B2DPolyPolygon More...

#include <polypolygoneditor.hxx>

Collaboration diagram for sdr::PolyPolygonEditor:
[legend]

Public Member Functions

 PolyPolygonEditor (basegfx::B2DPolyPolygon aPolyPolygon)
 
const basegfx::B2DPolyPolygonGetPolyPolygon () const
 
bool DeletePoints (const o3tl::sorted_vector< sal_uInt16 > &rAbsPoints)
 returns true if the B2DPolyPolygon was changed. More...
 
bool SetSegmentsKind (SdrPathSegmentKind eKind, const o3tl::sorted_vector< sal_uInt16 > &rAbsPoints)
 returns true if the B2DPolyPolygon was changed. More...
 
bool SetPointsSmooth (basegfx::B2VectorContinuity eFlags, const o3tl::sorted_vector< sal_uInt16 > &rAbsPoints)
 returns true if the B2DPolyPolygon was changed. More...
 

Static Public Member Functions

static bool GetRelativePolyPoint (const basegfx::B2DPolyPolygon &rPoly, sal_uInt32 nAbsPnt, sal_uInt32 &rPolyNum, sal_uInt32 &rPointNum)
 Outputs the relative position ( polygon number and point number in that polygon ) from the absolute point number. More...
 

Private Attributes

basegfx::B2DPolyPolygon maPolyPolygon
 

Detailed Description

this class implements some helper functions to edit a B2DPolyPolygon

Definition at line 34 of file polypolygoneditor.hxx.

Constructor & Destructor Documentation

◆ PolyPolygonEditor()

sdr::PolyPolygonEditor::PolyPolygonEditor ( basegfx::B2DPolyPolygon  aPolyPolygon)

Definition at line 29 of file polypolygoneditor.cxx.

Member Function Documentation

◆ DeletePoints()

bool sdr::PolyPolygonEditor::DeletePoints ( const o3tl::sorted_vector< sal_uInt16 > &  rAbsPoints)

◆ GetPolyPolygon()

const basegfx::B2DPolyPolygon & sdr::PolyPolygonEditor::GetPolyPolygon ( ) const
inline

◆ GetRelativePolyPoint()

bool sdr::PolyPolygonEditor::GetRelativePolyPoint ( const basegfx::B2DPolyPolygon rPoly,
sal_uInt32  nAbsPnt,
sal_uInt32 &  rPolyNum,
sal_uInt32 &  rPointNum 
)
static

Outputs the relative position ( polygon number and point number in that polygon ) from the absolute point number.

False is returned if the given absolute point is greater not inside this B2DPolyPolygon

Definition at line 155 of file polypolygoneditor.cxx.

References basegfx::B2DPolygon::count(), basegfx::B2DPolyPolygon::count(), and basegfx::B2DPolyPolygon::getB2DPolygon().

Referenced by SdrDragMethod::createSdrDragEntries_PointDrag(), DeletePoints(), SetPointsSmooth(), and SetSegmentsKind().

◆ SetPointsSmooth()

bool sdr::PolyPolygonEditor::SetPointsSmooth ( basegfx::B2VectorContinuity  eFlags,
const o3tl::sorted_vector< sal_uInt16 > &  rAbsPoints 
)

◆ SetSegmentsKind()

bool sdr::PolyPolygonEditor::SetSegmentsKind ( SdrPathSegmentKind  eKind,
const o3tl::sorted_vector< sal_uInt16 > &  rAbsPoints 
)

Member Data Documentation

◆ maPolyPolygon

basegfx::B2DPolyPolygon sdr::PolyPolygonEditor::maPolyPolygon
private

Definition at line 60 of file polypolygoneditor.hxx.

Referenced by DeletePoints(), SetPointsSmooth(), and SetSegmentsKind().


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