public class TopologyLocation extends Object
If the parent component is an area edge, each side and the edge itself have a topological location. These locations are named
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
Constructor and Description |
---|
TopologyLocation(int on) |
TopologyLocation(int[] location) |
TopologyLocation(int on,
int left,
int right)
Constructs a TopologyLocation specifying how points on, to the left of, and to the
right of some GraphComponent relate to some Geometry.
|
TopologyLocation(TopologyLocation gl) |
Modifier and Type | Method and Description |
---|---|
boolean |
allPositionsEqual(int loc) |
void |
flip() |
int |
get(int posIndex) |
int[] |
getLocations() |
boolean |
isAnyNull() |
boolean |
isArea() |
boolean |
isEqualOnSide(TopologyLocation le,
int locIndex) |
boolean |
isLine() |
boolean |
isNull() |
void |
merge(TopologyLocation gl)
merge updates only the NULL attributes of this object
with the attributes of another.
|
void |
setAllLocations(int locValue) |
void |
setAllLocationsIfNull(int locValue) |
void |
setLocation(int locValue) |
void |
setLocation(int locIndex,
int locValue) |
void |
setLocations(int on,
int left,
int right) |
String |
toString() |
public TopologyLocation(int[] location)
public TopologyLocation(int on, int left, int right)
on
- on positionleft
- left positionright
- right positionLocation
public TopologyLocation(int on)
public TopologyLocation(TopologyLocation gl)
public int get(int posIndex)
public boolean isNull()
public boolean isAnyNull()
public boolean isEqualOnSide(TopologyLocation le, int locIndex)
public boolean isArea()
public boolean isLine()
public void flip()
public void setAllLocations(int locValue)
public void setAllLocationsIfNull(int locValue)
public void setLocation(int locIndex, int locValue)
public void setLocation(int locValue)
public int[] getLocations()
public void setLocations(int on, int left, int right)
public boolean allPositionsEqual(int loc)
public void merge(TopologyLocation gl)
gl
- Topology locationCopyright © 2021. All rights reserved.