QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
analysis
interpolation
HalfEdge.h
Go to the documentation of this file.
1
/***************************************************************************
2
HalfEdge.h - description
3
-------------------
4
copyright : (C) 2004 by Marco Hugentobler
5
email : mhugent@geo.unizh.ch
6
***************************************************************************/
7
8
/***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
17
#ifndef HALFEDGE_H
18
#define HALFEDGE_H
19
20
#include "qgis_analysis.h"
21
22
#define SIP_NO_FILE
23
30
class
ANALYSIS_EXPORT
HalfEdge
31
{
32
protected
:
34
int
mDual
= -10;
36
int
mNext
= -10;
38
int
mPoint
= -10;
40
bool
mBreak
=
false
;
42
bool
mForced
=
false
;
43
44
public
:
46
HalfEdge
() =
default
;
47
HalfEdge
(
int
dual,
int
next,
int
point,
bool
mbreak,
bool
forced );
48
50
int
getDual
()
const
;
52
int
getNext
()
const
;
54
int
getPoint
()
const
;
56
bool
getBreak
()
const
;
58
bool
getForced
()
const
;
60
void
setDual
(
int
d );
62
void
setNext
(
int
n );
64
void
setPoint
(
int
p );
66
void
setBreak
(
bool
b );
68
void
setForced
(
bool
f );
69
};
70
71
#ifndef SIP_RUN
72
73
inline
HalfEdge::HalfEdge
(
int
dual,
int
next,
int
point,
bool
mbreak,
bool
forced )
74
:
mDual
( dual )
75
,
mNext
( next )
76
,
mPoint
( point )
77
,
mBreak
( mbreak )
78
,
mForced
( forced )
79
{}
80
81
inline
int
HalfEdge::getDual
()
const
82
{
83
return
mDual
;
84
}
85
86
inline
int
HalfEdge::getNext
()
const
87
{
88
return
mNext
;
89
}
90
91
inline
int
HalfEdge::getPoint
()
const
92
{
93
return
mPoint
;
94
}
95
96
inline
bool
HalfEdge::getBreak
()
const
97
{
98
return
mBreak
;
99
}
100
101
inline
bool
HalfEdge::getForced
()
const
102
{
103
return
mForced
;
104
}
105
106
inline
void
HalfEdge::setDual
(
int
d )
107
{
108
mDual
= d;
109
}
110
111
inline
void
HalfEdge::setNext
(
int
n )
112
{
113
mNext
= n;
114
}
115
116
inline
void
HalfEdge::setPoint
(
int
p )
117
{
118
mPoint
= p;
119
}
120
121
inline
void
HalfEdge::setBreak
(
bool
b )
122
{
123
mBreak
= b;
124
}
125
126
inline
void
HalfEdge::setForced
(
bool
f )
127
{
128
mForced
= f;
129
}
130
131
#endif
132
133
#endif
HalfEdge::getForced
bool getForced() const
Returns, whether the HalfEdge belongs to a constrained edge or not.
Definition
HalfEdge.h:101
HalfEdge::mForced
bool mForced
True, if the HalfEdge belongs to a constrained edge, false otherwise.
Definition
HalfEdge.h:42
HalfEdge::getNext
int getNext() const
Returns the number of the next HalfEdge.
Definition
HalfEdge.h:86
HalfEdge::setNext
void setNext(int n)
Sets the number of the next HalfEdge.
Definition
HalfEdge.h:111
HalfEdge::setPoint
void setPoint(int p)
Sets the number of point at which this HalfEdge points.
Definition
HalfEdge.h:116
HalfEdge::mBreak
bool mBreak
True, if the HalfEdge belongs to a break line, false otherwise.
Definition
HalfEdge.h:40
HalfEdge::getPoint
int getPoint() const
Returns the number of the point at which this HalfEdge points.
Definition
HalfEdge.h:91
HalfEdge::getDual
int getDual() const
Returns the number of the dual HalfEdge.
Definition
HalfEdge.h:81
HalfEdge::mNext
int mNext
Number of the next HalfEdge.
Definition
HalfEdge.h:36
HalfEdge::setDual
void setDual(int d)
Sets the number of the dual HalfEdge.
Definition
HalfEdge.h:106
HalfEdge::mDual
int mDual
Number of the dual HalfEdge.
Definition
HalfEdge.h:34
HalfEdge::mPoint
int mPoint
Number of the point at which this HalfEdge points.
Definition
HalfEdge.h:38
HalfEdge::setForced
void setForced(bool f)
Sets the forced flag.
Definition
HalfEdge.h:126
HalfEdge::HalfEdge
HalfEdge()=default
Default constructor. Values for mDual, mNext, mPoint are set to -10 which means that they are undefin...
HalfEdge::getBreak
bool getBreak() const
Returns, whether the HalfEdge belongs to a break line or not.
Definition
HalfEdge.h:96
HalfEdge::setBreak
void setBreak(bool b)
Sets the break flag.
Definition
HalfEdge.h:121
Generated on
for QGIS API Documentation by
1.17.0