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 22 of file KoPathPointData.h.

23 : 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 27 of file KoPathPointData.h.

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

References pathShape, and pointIndex.

◆ operator==()

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

Definition at line 35 of file KoPathPointData.h.

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

References pathShape, and pointIndex.

Member Data Documentation

◆ pathShape

KoPathShape* KoPathPointData::pathShape

path shape the path point belongs too

Definition at line 41 of file KoPathPointData.h.

◆ pointIndex

KoPathPointIndex KoPathPointData::pointIndex

position of the point in the path shape

Definition at line 43 of file KoPathPointData.h.


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