public interface NFESpatialModel
Modifier and Type | Method and Description |
---|---|
boolean |
addNetworkElementIndex(NFENetworkElement netElem)
Spatially-indexes a network element
|
java.util.Collection<NFEFeatureElement> |
getFeatureElements(java.awt.geom.Area area)
Gets all the feature elements interacting with the given area.
|
java.util.Collection<NFEFeatureElement> |
getFeatureElements(java.awt.geom.Area area, long featLayerId)
Gets all the feature elements interacting with the given area.
|
java.util.Collection<NFEFeatureElement> |
getFeatureElements(java.awt.geom.Point2D point, double tolerance)
Gets all the feature elements interacting with the given point.
|
java.util.Collection<NFEFeatureElement> |
getFeatureElements(java.awt.geom.Point2D point, double tolerance, long featLayerId)
Gets all the feature elements interacting with the given point.
|
java.util.Collection<NFEFeatureElement> |
getFeatureElements(java.awt.geom.Rectangle2D rect)
Gets all the feature elements interacting with the given rectangle.
|
java.util.Collection<NFEFeatureElement> |
getFeatureElements(java.awt.geom.Rectangle2D rect, long featLayerId)
Gets all the feature elements interacting with the given rectangle.
|
java.util.Collection<NFENetworkElement> |
getNetworkElements(java.awt.geom.Area area)
Gets all the network elements interacting with the given area.
|
java.util.Collection<NFENetworkElement> |
getNetworkElements(java.awt.geom.Point2D point, double tolerance)
Gets all the network elements interacting with the given point.
|
java.util.Collection<NFENetworkElement> |
getNetworkElements(java.awt.geom.Rectangle2D rect)
Gets all the network elements interacting with the given rectangle.
|
boolean |
refreshNetworkElementIndex(NFENetworkElement netElem)
Refreshes the spatial index of the network element to reflect its actual geometry.
|
boolean |
removeNetworkElementIndex(NFENetworkElement netElem)
Removes the index for the network element
|
boolean addNetworkElementIndex(NFENetworkElement netElem)
netElem
- a network element instanceboolean refreshNetworkElementIndex(NFENetworkElement netElem)
netElem
- a network element instanceboolean removeNetworkElementIndex(NFENetworkElement netElem)
netElem
- a network element instancejava.util.Collection<NFENetworkElement> getNetworkElements(java.awt.geom.Point2D point, double tolerance)
point
- a spatial point in moodel's coordinate systemtolerance
- the maximum distance an element can be from the target geometry to be considered in the result.java.util.Collection<NFENetworkElement> getNetworkElements(java.awt.geom.Rectangle2D rect)
rect
- a rectangle in model's coordinate systemjava.util.Collection<NFENetworkElement> getNetworkElements(java.awt.geom.Area area)
area
- an area in model's coordinate systemjava.util.Collection<NFEFeatureElement> getFeatureElements(java.awt.geom.Point2D point, double tolerance)
point
- a spatial point in moodel's coordinate systemtolerance
- the maximum distance an element can be from the target geometry to be considered in the result.java.util.Collection<NFEFeatureElement> getFeatureElements(java.awt.geom.Rectangle2D rect)
rect
- a rectangle in model's coordinate systemjava.util.Collection<NFEFeatureElement> getFeatureElements(java.awt.geom.Area area)
area
- an area in model's coordinate systemjava.util.Collection<NFEFeatureElement> getFeatureElements(java.awt.geom.Point2D point, double tolerance, long featLayerId)
point
- a spatial point in moodel's coordinate systemtolerance
- the maximum distance an element can be from the target geometry to be considered in the result.featLayerId
- only feature elements from this feature layer are returned.java.util.Collection<NFEFeatureElement> getFeatureElements(java.awt.geom.Rectangle2D rect, long featLayerId)
rect
- a rectangle in model's coordinate systemfeatLayerId
- only feature elements from this feature layer are returned.java.util.Collection<NFEFeatureElement> getFeatureElements(java.awt.geom.Area area, long featLayerId)
area
- an area in model's coordinate systemfeatLayerId
- only feature elements from this feature layer are returned.