public class NFEInteractionEngine
extends java.lang.Object
Constructor and Description |
---|
NFEInteractionEngine(NFEModel model)
Creates a new interaction engine instance
|
Modifier and Type | Method and Description |
---|---|
void |
addConnectableHierarchies(int[] connHierarchies)
Sets which hierarchy levels allows inter-hierarchy interactions, that is, interactions between members of different hierarchies
|
void |
clearConnectableHierarchies()
Removes all the hierarchy levels for inter-hierarchy interactions.
|
java.util.List<Intersection<NFEFeatureElement>> |
findIntersections(NFEFeatureElement tgrFeatElem, java.util.Collection<NFEFeatureElement> ignoredFeatElems, double tolerance)
Retrieves all the intersections of the given Feature Element.
|
java.util.List<Intersection<NFEFeatureElement>> |
findIntersections(NFEFeatureElement tgrFeatElem, JGeometry tgrGeom, java.util.Collection<NFEFeatureElement> ignoredFeatElems, double tolerance)
Retrieves all the intersections of the given Feature Element, supposing the given geometry is the feature element's geometry.
|
void |
removeConnectableHierarchies(int[] connHierarchies)
Removes hierarchy levels for inter-hierarchy interactions
|
public NFEInteractionEngine(NFEModel model)
model
- the current NFE modelpublic java.util.List<Intersection<NFEFeatureElement>> findIntersections(NFEFeatureElement tgrFeatElem, java.util.Collection<NFEFeatureElement> ignoredFeatElems, double tolerance)
tgrFeatElem
- The target Feature Element. All the intersections with this Feature Element will be retrievedignoredFeatElems
- Elements in this list will be ignored when interacting with the main Feature Elementtolerance
- tolerance used to determine if two points can be considered the samepublic java.util.List<Intersection<NFEFeatureElement>> findIntersections(NFEFeatureElement tgrFeatElem, JGeometry tgrGeom, java.util.Collection<NFEFeatureElement> ignoredFeatElems, double tolerance)
tgrFeatElem
- The target Feature Element. All the intersections with this Feature Element will be retrievedtgrGeom
- the feature element's geometry. It does not have to be the actual feature element's geometry but it has to be a suitable type for the feature element, that is, a line feature element requires a line geometry and so on.ignoredFeatElems
- Elements in this list will be ignored when interacting with the main Feature Elementtolerance
- tolerance used to determine if two points can be considered the samepublic void addConnectableHierarchies(int[] connHierarchies)
connHierarchies
- an array of hierarchy levelspublic void removeConnectableHierarchies(int[] connHierarchies)
connHierarchies
- an array of hierarchy levelspublic void clearConnectableHierarchies()