|
| OverlayLabel (uint8_t p_index) |
|
| OverlayLabel (uint8_t p_index, Location p_locLeft, Location p_locRight, bool p_isHole) |
|
int | dimension (uint8_t index) const |
|
void | initBoundary (uint8_t index, Location locLeft, Location locRight, bool p_isHole) |
|
void | initCollapse (uint8_t index, bool p_isHole) |
|
void | initLine (uint8_t index) |
|
void | initNotPart (uint8_t index) |
|
void | setLocationLine (uint8_t index, Location loc) |
|
void | setLocationAll (uint8_t index, Location loc) |
|
void | setLocationCollapse (uint8_t index) |
|
bool | isLine () const |
|
bool | isLine (uint8_t index) const |
|
bool | isLinear (uint8_t index) const |
|
bool | isKnown (uint8_t index) const |
|
bool | isNotPart (uint8_t index) const |
|
bool | isBoundaryEither () const |
|
bool | isBoundaryBoth () const |
|
bool | isBoundaryCollapse () const |
|
bool | isBoundaryTouch () const |
|
bool | isBoundary (uint8_t index) const |
|
bool | isLineLocationUnknown (int index) const |
|
bool | isBoundarySingleton () const |
|
bool | isLineInArea (int8_t index) const |
|
bool | isHole (uint8_t index) const |
|
bool | isCollapse (uint8_t index) const |
|
Location | getLineLocation (uint8_t index) const |
|
bool | isInteriorCollapse () const |
|
bool | isCollapseAndNotPartInterior () const |
|
bool | isLineInterior (uint8_t index) const |
|
Location | getLocationBoundaryOrLine (uint8_t index, int position, bool isForward) const |
|
Location | getLocation (uint8_t index) const |
|
Location | getLocation (uint8_t index, int position, bool isForward) const |
|
bool | hasSides (uint8_t index) const |
|
OverlayLabel | copy () const |
|
void | toString (bool isForward, std::ostream &os) const |
|
A label for a pair of OverlayEdge
s which records the topological information for the edge in the OverlayGraph
containing it. The label is shared between both OverlayEdges of a symmetric pair. Accessors for orientation-sensitive information require the orientation of the containing OverlayEdge.
A label contains the topological geom::Location
s for the two overlay input geometries. A labelled input geometry may be either a Line or an Area. In both cases, the label locations are populated with the locations for the edge geom::Position
s once they are computed by topological evaluation. The label also records the dimension of each geometry, and in the case of area boundary edges, the role of the originating ring (which allows determination of the edge role in collapse cases).
For each input geometry, the label indicates that an edge is in one of the following states (identified by the "dim" field). Each state has some additional information about the edge.
- A Boundary edge of an input Area (polygon)
- dim = DIM_BOUNDARY
- locLeft, locRight : the locations of the edge sides for the input Area
- isHole : whether the edge was in a shell or a hole
- A Collapsed edge of an input Area (which had two or more parent edges)
- dim = DIM_COLLAPSE
- locLine : the location of the edge relative to the input Area
- isHole : whether some contributing edge was in a shell (false), or otherwise that all were in holes (true)
- An edge from an input Line
- dim = DIM_LINE
- locLine : initialized to LOC_UNKNOWN, to simplify logic.
- An edge which is Not Part of an input geometry (and thus must be part of the other geometry).
Note that:
- an edge cannot be both a Collapse edge and a Line edge in the same input geometry, because each input geometry must be homogeneous.
- an edge may be an Boundary edge in one input geometry and a Line or Collapse edge in the other input.
- Author
- Martin Davis