Krita Source Code Documentation
Loading...
Searching...
No Matches
KoPathPointData Class Reference

Describe a KoPathPoint by a KoPathShape and its indices. More...

#include <KoPathPointData.h>

+ Inheritance diagram for KoPathPointData:

Public Member Functions

 KoPathPointData (KoPathShape *path, const KoPathPointIndex &pointIndex)
 constructor
 
bool operator< (const KoPathPointData &other) const
 operator used for sorting
 
bool operator== (const KoPathPointData &other) const
 

Public Attributes

KoPathShapepathShape
 path shape the path point belongs too
 
KoPathPointIndex pointIndex
 position of the point in the path shape
 

Detailed Description

Describe a KoPathPoint by a KoPathShape and its indices.

Definition at line 17 of file KoPathPointData.h.

Constructor & Destructor Documentation

◆ KoPathPointData()

KoPathPointData::KoPathPointData ( KoPathShape * path,
const KoPathPointIndex & pointIndex )
inline

constructor

Definition at line 21 of file KoPathPointData.h.

22 : pathShape(path)
KoPathPointIndex pointIndex
position of the point in the path shape
KoPathShape * pathShape
path shape the path point belongs too

Member Function Documentation

◆ operator<()

bool KoPathPointData::operator< ( const KoPathPointData & other) const
inline

operator used for sorting

Definition at line 26 of file KoPathPointData.h.

26 {
27 return pathShape < other.pathShape ||
28 (pathShape == other.pathShape &&
29 (pointIndex.first < other.pointIndex.first ||
30 (pointIndex.first == other.pointIndex.first &&
31 pointIndex.second < other.pointIndex.second)));
32
33 }

References pathShape, and pointIndex.

◆ operator==()

bool KoPathPointData::operator== ( const KoPathPointData & other) const
inline

Definition at line 34 of file KoPathPointData.h.

34 {
35 return pathShape == other.pathShape &&
36 pointIndex.first == other.pointIndex.first &&
37 pointIndex.second == other.pointIndex.second;
38 }

References pathShape, and pointIndex.

Member Data Documentation

◆ pathShape

KoPathShape* KoPathPointData::pathShape

path shape the path point belongs too

Definition at line 40 of file KoPathPointData.h.

◆ pointIndex

KoPathPointIndex KoPathPointData::pointIndex

position of the point in the path shape

Definition at line 42 of file KoPathPointData.h.


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