line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
/********************************************************************** |
2
|
|
|
|
|
|
|
* |
3
|
|
|
|
|
|
|
* GEOS - Geometry Engine Open Source |
4
|
|
|
|
|
|
|
* http://geos.osgeo.org |
5
|
|
|
|
|
|
|
* |
6
|
|
|
|
|
|
|
* Copyright (C) 2006 Refractions Research Inc. |
7
|
|
|
|
|
|
|
* |
8
|
|
|
|
|
|
|
* This is free software; you can redistribute and/or modify it under |
9
|
|
|
|
|
|
|
* the terms of the GNU Lesser General Public Licence as published |
10
|
|
|
|
|
|
|
* by the Free Software Foundation. |
11
|
|
|
|
|
|
|
* See the COPYING file for more information. |
12
|
|
|
|
|
|
|
* |
13
|
|
|
|
|
|
|
* |
14
|
|
|
|
|
|
|
**********************************************************************/ |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
#ifndef GEOS_NODING_NODABLESEGMENTSTRING_H |
17
|
|
|
|
|
|
|
#define GEOS_NODING_NODABLESEGMENTSTRING_H |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
#include |
20
|
|
|
|
|
|
|
#include // for inheritance |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
namespace geos { |
23
|
|
|
|
|
|
|
namespace geom { |
24
|
|
|
|
|
|
|
class Coordinate; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
namespace geos { |
29
|
|
|
|
|
|
|
namespace noding { // geos::noding |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
/** \brief |
32
|
|
|
|
|
|
|
* An interface for classes which support adding nodes to |
33
|
|
|
|
|
|
|
* a segment string. |
34
|
|
|
|
|
|
|
* |
35
|
|
|
|
|
|
|
* @author Martin Davis |
36
|
|
|
|
|
|
|
*/ |
37
|
|
|
|
|
|
|
class GEOS_DLL NodableSegmentString : public SegmentString |
38
|
|
|
|
|
|
|
{ |
39
|
|
|
|
|
|
|
private: |
40
|
|
|
|
|
|
|
protected: |
41
|
|
|
|
|
|
|
public: |
42
|
16
|
|
|
|
|
|
NodableSegmentString(const void* newContext) |
43
|
|
|
|
|
|
|
: |
44
|
16
|
|
|
|
|
|
SegmentString( newContext ) |
45
|
16
|
|
|
|
|
|
{ } |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
/** |
48
|
|
|
|
|
|
|
* Adds an intersection node for a given point and segment to this segment string. |
49
|
|
|
|
|
|
|
* |
50
|
|
|
|
|
|
|
* @param intPt the location of the intersection |
51
|
|
|
|
|
|
|
* @param segmentIndex the index of the segment containing the intersection |
52
|
|
|
|
|
|
|
*/ |
53
|
|
|
|
|
|
|
//virtual void addIntersection( const geom::Coordinate * intPt, int segmentIndex) =0; |
54
|
|
|
|
|
|
|
}; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
} // namespace geos::noding |
57
|
|
|
|
|
|
|
} // namespace geos |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
#endif // GEOS_NODING_NODABLESEGMENTSTRING_H |