LibreOffice Module basegfx (master) 1
Public Member Functions | Private Attributes | List of all members
ImplB2DPolygon Class Reference
Collaboration diagram for ImplB2DPolygon:
[legend]

Public Member Functions

const basegfx::B2DPolygongetDefaultAdaptiveSubdivision (const basegfx::B2DPolygon &rSource) const
 
const basegfx::B2DRangegetB2DRange (const basegfx::B2DPolygon &rSource) const
 
 ImplB2DPolygon ()
 
 ImplB2DPolygon (const ImplB2DPolygon &rToBeCopied)
 
 ImplB2DPolygon (const ImplB2DPolygon &rToBeCopied, sal_uInt32 nIndex, sal_uInt32 nCount)
 
ImplB2DPolygonoperator= (const ImplB2DPolygon &rOther)
 
sal_uInt32 count () const
 
bool isClosed () const
 
void setClosed (bool bNew)
 
bool operator== (const ImplB2DPolygon &rCandidate) const
 
const basegfx::B2DPointgetPoint (sal_uInt32 nIndex) const
 
void setPoint (sal_uInt32 nIndex, const basegfx::B2DPoint &rValue)
 
void reserve (sal_uInt32 nCount)
 
void append (const basegfx::B2DPoint &rPoint)
 
void insert (sal_uInt32 nIndex, const basegfx::B2DPoint &rPoint, sal_uInt32 nCount)
 
void append (const basegfx::B2DPoint &rPoint, sal_uInt32 nCount)
 
const basegfx::B2DVectorgetPrevControlVector (sal_uInt32 nIndex) const
 
void setPrevControlVector (sal_uInt32 nIndex, const basegfx::B2DVector &rValue)
 
const basegfx::B2DVectorgetNextControlVector (sal_uInt32 nIndex) const
 
void setNextControlVector (sal_uInt32 nIndex, const basegfx::B2DVector &rValue)
 
bool areControlPointsUsed () const
 
void resetControlVectors ()
 
void setControlVectors (sal_uInt32 nIndex, const basegfx::B2DVector &rPrev, const basegfx::B2DVector &rNext)
 
void appendBezierSegment (const basegfx::B2DVector &rNext, const basegfx::B2DVector &rPrev, const basegfx::B2DPoint &rPoint)
 
void append (const ImplB2DPolygon &rSource)
 
void remove (sal_uInt32 nIndex, sal_uInt32 nCount)
 
void flip ()
 
bool hasDoublePoints () const
 
void removeDoublePointsAtBeginEnd ()
 
void removeDoublePointsWholeTrack ()
 
void transform (const basegfx::B2DHomMatrix &rMatrix)
 
void addOrReplaceSystemDependentData (basegfx::SystemDependentData_SharedPtr &rData) const
 
basegfx::SystemDependentData_SharedPtr getSystemDependentData (size_t hash_code) const
 

Private Attributes

CoordinateDataArray2D maPoints
 
std::optional< ControlVectorArray2D > moControlVector
 
std::unique_ptr< ImplBufferedData > mpBufferedData
 
bool mbIsClosed
 

Detailed Description

Definition at line 522 of file b2dpolygon.cxx.

Constructor & Destructor Documentation

◆ ImplB2DPolygon() [1/3]

ImplB2DPolygon::ImplB2DPolygon ( )
inline

Definition at line 567 of file b2dpolygon.cxx.

◆ ImplB2DPolygon() [2/3]

ImplB2DPolygon::ImplB2DPolygon ( const ImplB2DPolygon rToBeCopied)
inline

Definition at line 572 of file b2dpolygon.cxx.

References moControlVector.

◆ ImplB2DPolygon() [3/3]

ImplB2DPolygon::ImplB2DPolygon ( const ImplB2DPolygon rToBeCopied,
sal_uInt32  nIndex,
sal_uInt32  nCount 
)
inline

Definition at line 583 of file b2dpolygon.cxx.

References moControlVector, nCount, and nIndex.

Member Function Documentation

◆ addOrReplaceSystemDependentData()

void ImplB2DPolygon::addOrReplaceSystemDependentData ( basegfx::SystemDependentData_SharedPtr rData) const
inline

Definition at line 1055 of file b2dpolygon.cxx.

References mpBufferedData.

◆ append() [1/3]

void ImplB2DPolygon::append ( const basegfx::B2DPoint rPoint)
inline

Definition at line 683 of file b2dpolygon.cxx.

References maPoints, moControlVector, and mpBufferedData.

◆ append() [2/3]

void ImplB2DPolygon::append ( const basegfx::B2DPoint rPoint,
sal_uInt32  nCount 
)
inline

Definition at line 710 of file b2dpolygon.cxx.

References count(), insert(), and nCount.

◆ append() [3/3]

void ImplB2DPolygon::append ( const ImplB2DPolygon rSource)
inline

Definition at line 812 of file b2dpolygon.cxx.

References count(), maPoints, moControlVector, mpBufferedData, and nIndex.

◆ appendBezierSegment()

void ImplB2DPolygon::appendBezierSegment ( const basegfx::B2DVector rNext,
const basegfx::B2DVector rPrev,
const basegfx::B2DPoint rPoint 
)
inline

◆ areControlPointsUsed()

bool ImplB2DPolygon::areControlPointsUsed ( ) const
inline

Definition at line 781 of file b2dpolygon.cxx.

References moControlVector.

◆ count()

sal_uInt32 ImplB2DPolygon::count ( ) const
inline

Definition at line 616 of file b2dpolygon.cxx.

References maPoints.

Referenced by append().

◆ flip()

void ImplB2DPolygon::flip ( )
inline

Definition at line 852 of file b2dpolygon.cxx.

References maPoints, mbIsClosed, moControlVector, and mpBufferedData.

◆ getB2DRange()

const basegfx::B2DRange & ImplB2DPolygon::getB2DRange ( const basegfx::B2DPolygon rSource) const
inline

Definition at line 557 of file b2dpolygon.cxx.

References mpBufferedData.

◆ getDefaultAdaptiveSubdivision()

const basegfx::B2DPolygon & ImplB2DPolygon::getDefaultAdaptiveSubdivision ( const basegfx::B2DPolygon rSource) const
inline

Definition at line 542 of file b2dpolygon.cxx.

References moControlVector, and mpBufferedData.

◆ getNextControlVector()

const basegfx::B2DVector & ImplB2DPolygon::getNextControlVector ( sal_uInt32  nIndex) const
inline

Definition at line 748 of file b2dpolygon.cxx.

References basegfx::B2DVector::getEmptyVector(), moControlVector, and nIndex.

◆ getPoint()

const basegfx::B2DPoint & ImplB2DPolygon::getPoint ( sal_uInt32  nIndex) const
inline

Definition at line 667 of file b2dpolygon.cxx.

References maPoints, and nIndex.

◆ getPrevControlVector()

const basegfx::B2DVector & ImplB2DPolygon::getPrevControlVector ( sal_uInt32  nIndex) const
inline

Definition at line 715 of file b2dpolygon.cxx.

References basegfx::B2DVector::getEmptyVector(), moControlVector, and nIndex.

◆ getSystemDependentData()

basegfx::SystemDependentData_SharedPtr ImplB2DPolygon::getSystemDependentData ( size_t  hash_code) const
inline

Definition at line 1065 of file b2dpolygon.cxx.

References mpBufferedData.

◆ hasDoublePoints()

bool ImplB2DPolygon::hasDoublePoints ( ) const
inline

Definition at line 868 of file b2dpolygon.cxx.

References a, maPoints, mbIsClosed, moControlVector, and nIndex.

◆ insert()

void ImplB2DPolygon::insert ( sal_uInt32  nIndex,
const basegfx::B2DPoint rPoint,
sal_uInt32  nCount 
)
inline

Definition at line 696 of file b2dpolygon.cxx.

References maPoints, moControlVector, mpBufferedData, nCount, and nIndex.

Referenced by append(), and appendBezierSegment().

◆ isClosed()

bool ImplB2DPolygon::isClosed ( ) const
inline

Definition at line 621 of file b2dpolygon.cxx.

References mbIsClosed.

◆ operator=()

ImplB2DPolygon & ImplB2DPolygon::operator= ( const ImplB2DPolygon rOther)
inline

Definition at line 597 of file b2dpolygon.cxx.

References maPoints, mbIsClosed, moControlVector, and mpBufferedData.

◆ operator==()

bool ImplB2DPolygon::operator== ( const ImplB2DPolygon rCandidate) const
inline

Definition at line 635 of file b2dpolygon.cxx.

References maPoints, mbIsClosed, and moControlVector.

◆ remove()

void ImplB2DPolygon::remove ( sal_uInt32  nIndex,
sal_uInt32  nCount 
)
inline

◆ removeDoublePointsAtBeginEnd()

void ImplB2DPolygon::removeDoublePointsAtBeginEnd ( )
inline

Definition at line 913 of file b2dpolygon.cxx.

References maPoints, mbIsClosed, moControlVector, mpBufferedData, nIndex, and remove().

◆ removeDoublePointsWholeTrack()

void ImplB2DPolygon::removeDoublePointsWholeTrack ( )
inline

Definition at line 969 of file b2dpolygon.cxx.

References maPoints, moControlVector, mpBufferedData, nIndex, and remove().

◆ reserve()

void ImplB2DPolygon::reserve ( sal_uInt32  nCount)
inline

Definition at line 678 of file b2dpolygon.cxx.

References maPoints, and nCount.

◆ resetControlVectors()

void ImplB2DPolygon::resetControlVectors ( )
inline

Definition at line 786 of file b2dpolygon.cxx.

References moControlVector, and mpBufferedData.

◆ setClosed()

void ImplB2DPolygon::setClosed ( bool  bNew)
inline

Definition at line 626 of file b2dpolygon.cxx.

References mbIsClosed, and mpBufferedData.

◆ setControlVectors()

void ImplB2DPolygon::setControlVectors ( sal_uInt32  nIndex,
const basegfx::B2DVector rPrev,
const basegfx::B2DVector rNext 
)
inline

Definition at line 792 of file b2dpolygon.cxx.

References nIndex, setNextControlVector(), and setPrevControlVector().

◆ setNextControlVector()

void ImplB2DPolygon::setNextControlVector ( sal_uInt32  nIndex,
const basegfx::B2DVector rValue 
)
inline

◆ setPoint()

void ImplB2DPolygon::setPoint ( sal_uInt32  nIndex,
const basegfx::B2DPoint rValue 
)
inline

Definition at line 672 of file b2dpolygon.cxx.

References maPoints, mpBufferedData, and nIndex.

◆ setPrevControlVector()

void ImplB2DPolygon::setPrevControlVector ( sal_uInt32  nIndex,
const basegfx::B2DVector rValue 
)
inline

◆ transform()

void ImplB2DPolygon::transform ( const basegfx::B2DHomMatrix rMatrix)
inline

Member Data Documentation

◆ maPoints

CoordinateDataArray2D ImplB2DPolygon::maPoints
private

◆ mbIsClosed

bool ImplB2DPolygon::mbIsClosed
private

◆ moControlVector

std::optional< ControlVectorArray2D > ImplB2DPolygon::moControlVector
private

◆ mpBufferedData

std::unique_ptr<ImplBufferedData> ImplB2DPolygon::mpBufferedData
mutableprivate

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