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>
62 friend std::ostream& operator<< (std::ostream&,
const Label&);
118 void setLocation(
int geomIndex,
int posIndex,
geom::Location location);
124 void setAllLocationsIfNull(
int geomIndex,
geom::Location location);
136 int getGeometryCount()
const;
140 bool isNull(
int geomIndex)
const;
142 bool isAnyNull(
int geomIndex)
const;
146 bool isArea(
int geomIndex)
const;
148 bool isLine(
int geomIndex)
const;
150 bool isEqualOnSide(
const Label& lbl,
int side)
const;
159 std::string toString()
const;
166std::ostream& operator<< (std::ostream&,
const Label&);
173# 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:58
void toLine(int geomIndex)
Converts one GeometryLocation to a Line location.
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.
Label(int geomIndex, geom::Location onLoc)
Construct a Label with the location specified for the given Geometry.
void merge(const Label &lbl)
Merge this label with another one.
Label()
Initialize both locations to Location::UNDEF.
Label(int 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...
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.
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:25