| java.lang.Object com.vividsolutions.jts.geomgraph.TopologyLocation
TopologyLocation | public class TopologyLocation (Code) | | A TopologyLocation is the labelling of a
GraphComponent's topological relationship to a single Geometry.
If the parent component is an area edge, each side and the edge itself
have a topological location. These locations are named
- ON: on the edge
- LEFT: left-hand side of the edge
- RIGHT: right-hand side
If the parent component is a line edge or node, there is a single
topological relationship attribute, ON.
The possible values of a topological location are
{Location.NONE, Location.EXTERIOR, Location.BOUNDARY, Location.INTERIOR}
The labelling is stored in an array location[j] where
where j has the values ON, LEFT, RIGHT
version: 1.7 |
TopologyLocation | public TopologyLocation(int[] location)(Code) | | |
TopologyLocation | public TopologyLocation(int on, int left, int right)(Code) | | Constructs a TopologyLocation specifying how points on, to the left of, and to the
right of some GraphComponent relate to some Geometry. Possible values for the
parameters are Location.NULL, Location.EXTERIOR, Location.BOUNDARY,
and Location.INTERIOR.
See Also: Location |
TopologyLocation | public TopologyLocation(int on)(Code) | | |
allPositionsEqual | public boolean allPositionsEqual(int loc)(Code) | | |
get | public int get(int posIndex)(Code) | | |
getLocations | public int[] getLocations()(Code) | | |
isAnyNull | public boolean isAnyNull()(Code) | | true if any locations are NULL |
isArea | public boolean isArea()(Code) | | |
isLine | public boolean isLine()(Code) | | |
isNull | public boolean isNull()(Code) | | true if all locations are NULL |
merge | public void merge(TopologyLocation gl)(Code) | | merge updates only the NULL attributes of this object
with the attributes of another.
|
setAllLocations | public void setAllLocations(int locValue)(Code) | | |
setAllLocationsIfNull | public void setAllLocationsIfNull(int locValue)(Code) | | |
setLocation | public void setLocation(int locIndex, int locValue)(Code) | | |
setLocation | public void setLocation(int locValue)(Code) | | |
setLocations | public void setLocations(int on, int left, int right)(Code) | | |
|
|