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 (const basegfx::B2DPolyPolygon &rPolyPolygon)
 
const basegfx::B2DPolyPolygonGetPolyPolygon () const
 
bool DeletePoints (const std::set< sal_uInt16 > &rAbsPoints)
 returns true if the B2DPolyPolygon was changed. More...
 
bool SetSegmentsKind (SdrPathSegmentKind eKind, const std::set< sal_uInt16 > &rAbsPoints)
 returns true if the B2DPolyPolygon was changed. More...
 
bool SetPointsSmooth (basegfx::B2VectorContinuity eFlags, const std::set< 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

sdr::PolyPolygonEditor::PolyPolygonEditor ( const basegfx::B2DPolyPolygon rPolyPolygon)

Definition at line 28 of file polypolygoneditor.cxx.

Member Function Documentation

bool sdr::PolyPolygonEditor::DeletePoints ( const std::set< sal_uInt16 > &  rAbsPoints)

returns true if the B2DPolyPolygon was changed.

Warning: B2DPolyPolygon can be empty after this operation!

Definition at line 33 of file polypolygoneditor.cxx.

References basegfx::B2DPolyPolygon::getB2DPolygon(), GetRelativePolyPoint(), maPolyPolygon, basegfx::B2DPolygon::remove(), basegfx::B2DPolyPolygon::remove(), and basegfx::B2DPolyPolygon::setB2DPolygon().

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

Definition at line 39 of file polypolygoneditor.hxx.

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 154 of file polypolygoneditor.cxx.

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

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

bool sdr::PolyPolygonEditor::SetPointsSmooth ( basegfx::B2VectorContinuity  eFlags,
const std::set< sal_uInt16 > &  rAbsPoints 
)
bool sdr::PolyPolygonEditor::SetSegmentsKind ( SdrPathSegmentKind  eKind,
const std::set< sal_uInt16 > &  rAbsPoints 
)

Member Data Documentation

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: