21 #ifndef GEOS_GEOMGRAPH_LABEL_H
22 #define GEOS_GEOMGRAPH_LABEL_H
24 #include <geos/export.h>
25 #include <geos/geomgraph/TopologyLocation.h>
27 #include <geos/inline.h>
61 friend std::ostream& operator<< (std::ostream&,
const Label&);
82 Label(
int geomIndex,
int onLoc);
89 Label(
int onLoc,
int leftLoc,
int rightLoc);
109 Label(
int geomIndex,
int onLoc,
int leftLoc,
int rightLoc);
113 int getLocation(
int geomIndex,
int posIndex)
const;
115 int getLocation(
int geomIndex)
const;
117 void setLocation(
int geomIndex,
int posIndex,
int location);
119 void setLocation(
int geomIndex,
int location);
121 void setAllLocations(
int geomIndex,
int location);
123 void setAllLocationsIfNull(
int geomIndex,
int location);
125 void setAllLocationsIfNull(
int location);
133 void merge(
const Label &lbl);
135 int getGeometryCount()
const;
139 bool isNull(
int geomIndex)
const;
141 bool isAnyNull(
int geomIndex)
const;
145 bool isArea(
int geomIndex)
const;
147 bool isLine(
int geomIndex)
const;
149 bool isEqualOnSide(
const Label &lbl,
int side)
const;
151 bool allPositionsEqual(
int geomIndex,
int loc)
const;
156 void toLine(
int geomIndex);
158 std::string toString()
const;
165 std::ostream& operator<< (std::ostream&,
const Label&);
175 #endif // ifndef GEOS_GEOMGRAPH_LABEL_H
A TopologyLocation is the labelling of a GraphComponent's topological relationship to a single Geomet...
Definition: TopologyLocation.h:58
A Label indicates the topological relationship of a component of a topology graph to a given Geometry...
Definition: Label.h:57