1
/***************************************************************************
2
HalfEdge.h - description
4
copyright : (C) 2004 by Marco Hugentobler
5
email : mhugent@geo.unizh.ch
6
***************************************************************************/
8
/***************************************************************************
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. *
15
***************************************************************************/
20
class ANALYSIS_EXPORT HalfEdge
23
/**Number of the dual HalfEdge*/
25
/**Number of the next HalfEdge*/
27
/**Number of the point at which this HalfEdge points*/
29
/**True, if the HalfEdge belongs to a break line, false otherwise*/
31
/**True, if the HalfEdge belongs to a constrained edge, false otherwise*/
35
/**Default constructor. Values for mDual, mNext, mPoint are set to -10 which means that they are undefined*/
37
HalfEdge( int dual, int next, int point, bool mbreak, bool forced );
39
/**Returns the number of the dual HalfEdge*/
41
/**Returns the number of the next HalfEdge*/
43
/**Returns the number of the point at which this HalfEdge points*/
45
/**Returns, whether the HalfEdge belongs to a break line or not*/
46
bool getBreak() const;
47
/**Returns, whether the HalfEdge belongs to a constrained edge or not*/
48
bool getForced() const;
49
/**Sets the number of the dual HalfEdge*/
50
void setDual( int d );
51
/**Sets the number of the next HalfEdge*/
52
void setNext( int n );
53
/**Sets the number of point at which this HalfEdge points*/
54
void setPoint( int p );
55
/**Sets the break flag*/
56
void setBreak( bool b );
57
/**Sets the forced flag*/
58
void setForced( bool f );
61
inline HalfEdge::HalfEdge(): mDual( -10 ), mNext( -10 ), mPoint( -10 ), mBreak( false ), mForced( false )
66
inline HalfEdge::HalfEdge( int dual, int next, int point, bool mbreak, bool forced ): mDual( dual ), mNext( next ), mPoint( point ), mBreak( mbreak ), mForced( forced )
71
inline HalfEdge::~HalfEdge()
76
inline int HalfEdge::getDual() const
81
inline int HalfEdge::getNext() const
86
inline int HalfEdge::getPoint() const
91
inline bool HalfEdge::getBreak() const
96
inline bool HalfEdge::getForced() const
101
inline void HalfEdge::setDual( int d )
106
inline void HalfEdge::setNext( int n )
111
inline void HalfEdge::setPoint( int p )
116
inline void HalfEdge::setBreak( bool b )
121
inline void HalfEdge::setForced( bool f )