21 #ifndef GEOS_GEOMGRAPH_LABEL_H
22 #define GEOS_GEOMGRAPH_LABEL_H
24 #include <geos/export.h>
25 #include <geos/geom/Location.h>
26 #include <geos/geomgraph/TopologyLocation.h>
28 #include <geos/inline.h>
63 friend std::ostream& operator<< (std::ostream&,
const Label&);
115 geom::Location getLocation(uint32_t geomIndex, uint32_t posIndex)
const;
119 void setLocation(uint32_t geomIndex, uint32_t posIndex,
geom::Location location);
123 void setAllLocations(uint32_t geomIndex,
geom::Location location);
125 void setAllLocationsIfNull(uint32_t geomIndex,
geom::Location location);
137 int getGeometryCount()
const;
141 bool isNull(uint32_t geomIndex)
const;
143 bool isAnyNull(uint32_t geomIndex)
const;
147 bool isArea(uint32_t geomIndex)
const;
149 bool isLine(uint32_t geomIndex)
const;
151 bool isEqualOnSide(
const Label& lbl, uint32_t side)
const;
153 bool allPositionsEqual(uint32_t geomIndex,
geom::Location loc)
const;
160 std::string toString()
const;
167 std::ostream& operator<< (std::ostream&,
const Label&);
174 # include "geos/geomgraph/Label.inl"
A Label indicates the topological relationship of a component of a topology graph to a given Geometry...
Definition: Label.h:59
Label(geom::Location onLoc)
Construct a Label with a single location for both Geometries.
Label(geom::Location onLoc, geom::Location leftLoc, geom::Location rightLoc)
Construct a Label with On, Left and Right locations for both Geometries.
void merge(const Label &lbl)
Merge this label with another one.
Label(uint32_t geomIndex, geom::Location onLoc)
Construct a Label with the location specified for the given Geometry.
Label()
Initialize both locations to Location::NONE.
static Label toLineLabel(const Label &label)
Converts a Label to a Line label (that is, one with no side Locations)
Label(const Label &l)
Copy ctor.
Label(uint32_t geomIndex, geom::Location onLoc, geom::Location leftLoc, geom::Location rightLoc)
Construct a Label with On, Left and Right locations for the given Geometries. Initialize the location...
void toLine(uint32_t geomIndex)
Converts one GeometryLocation to a Line location.
A TopologyLocation is the labelling of a GraphComponent's topological relationship to a single Geomet...
Definition: TopologyLocation.h:60
Location
Constants representing the location of a point relative to a geometry.
Definition: Location.h:34
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26