#include <KisMagneticGraph.h>
Definition at line 19 of file KisMagneticGraph.h.
◆ Direction
◆ VertexDescriptor() [1/3]
| VertexDescriptor::VertexDescriptor |
( |
long | _x, |
|
|
long | _y ) |
|
inline |
◆ VertexDescriptor() [2/3]
| VertexDescriptor::VertexDescriptor |
( |
QPoint | pt | ) |
|
|
inline |
◆ VertexDescriptor() [3/3]
| VertexDescriptor::VertexDescriptor |
( |
| ) |
|
|
inline |
◆ neighbor()
Definition at line 61 of file KisMagneticGraph.h.
62 {
63 int dx = 0, dy = 0;
64
65 switch (direction) {
67 Q_FALLTHROUGH();
69 Q_FALLTHROUGH();
71 dx = -1;
72 break;
74 Q_FALLTHROUGH();
76 Q_FALLTHROUGH();
78 dx = 1;
79 default:
80 ;
81 }
82
83 switch (direction) {
85 Q_FALLTHROUGH();
87 Q_FALLTHROUGH();
89 dy = -1;
90 break;
92 Q_FALLTHROUGH();
94 Q_FALLTHROUGH();
96 dy = 1;
97 default:
98 ;
99 }
100
103 }
VertexDescriptor neighbor(Direction direction) const
References E, N, NE, neighbor(), NW, S, SE, SW, W, x, and y.
◆ operator!=()
◆ operator<()
Definition at line 54 of file KisMagneticGraph.h.
55 {
56 return x < rhs.x || (
x == rhs.x &&
y < rhs.y);
57 }
References x, and y.
◆ operator==() [1/2]
| bool VertexDescriptor::operator== |
( |
QPoint const & | rhs | ) |
const |
|
inline |
Definition at line 44 of file KisMagneticGraph.h.
45 {
46 return rhs.x() ==
x && rhs.y() ==
y;
47 }
References x, and y.
◆ operator==() [2/2]
The documentation for this struct was generated from the following file: