File: planarGraphComponent.cpp

package info (click to toggle)
geos 2.1.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,784 kB
  • ctags: 3,505
  • sloc: cpp: 24,991; sh: 8,431; xml: 6,597; makefile: 401; python: 77
file content (83 lines) | stat: -rw-r--r-- 2,419 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/**********************************************************************
 * $Id: planarGraphComponent.cpp,v 1.4 2004/10/13 10:03:02 strk Exp $
 *
 * GEOS - Geometry Engine Open Source
 * http://geos.refractions.net
 *
 * Copyright (C) 2001-2002 Vivid Solutions Inc.
 *
 * This is free software; you can redistribute and/or modify it under
 * the terms of the GNU Lesser General Licence as published
 * by the Free Software Foundation. 
 * See the COPYING file for more information.
 *
 **********************************************************************
 * $Log: planarGraphComponent.cpp,v $
 * Revision 1.4  2004/10/13 10:03:02  strk
 * Added missing linemerge and polygonize operation.
 * Bug fixes and leaks removal from the newly added modules and
 * planargraph (used by them).
 * Some comments and indentation changes.
 *
 * Revision 1.3  2004/07/13 08:33:53  strk
 * Added missing virtual destructor to virtual classes.
 * Fixed implicit unsigned int -> int casts
 *
 * Revision 1.2  2004/07/02 13:28:29  strk
 * Fixed all #include lines to reflect headers layout change.
 * Added client application build tips in README.
 *
 * Revision 1.1  2004/04/04 06:29:11  ybychkov
 * "planargraph" and "geom/utill" upgraded to JTS 1.4
 *
 *
 **********************************************************************/


#include <geos/planargraph.h>

namespace geos {
//namespace planargraph {

planarGraphComponent::planarGraphComponent() {
	isMarkedVar=false;
	isVisitedVar=false;
}

planarGraphComponent::~planarGraphComponent() {
}

/**
* Tests if a component has been visited during the course of a graph algorithm
* @return <code>true</code> if the component has been visited
*/
bool planarGraphComponent::isVisited() {
	return isVisitedVar;
}

/**
* Sets the visited flag for this component.
* @param isVisited the desired value of the visited flag
*/
void planarGraphComponent::setVisited(bool newIsVisited) { 
	isVisitedVar=newIsVisited;
}

/**
* Tests if a component has been marked at some point during the processing
* involving this graph.
* @return <code>true</code> if the component has been marked
*/
bool planarGraphComponent::isMarked() { 
	return isMarkedVar;
}

/**
* Sets the marked flag for this component.
* @param isMarked the desired value of the marked flag
*/
void planarGraphComponent::setMarked(bool newIsMarked) { 
	isMarkedVar=newIsMarked; }

//} // namespace planargraph
} // namespace geos