public interface ILcd2DBoundsInteractable
|Modifier and Type||Method and Description|
Applies the specified function to all the elements of which the 2D bounds overlap with the specified bounds.
int applyOnInteract2DBounds(ILcdBounds aBounds, boolean aStrictInteract, ILcdFunction aFunctionToApply, double aPrecisionX, double aPrecisionY, double aMinSizeX, double aMinSizeY, boolean aIncludePoints)
falsefor an element it was applied on.
aBounds- the rectangle to test overlap with.
false, the spatial search may return more elements than the ones strictly overlapping; if
true, the search only returns the elements that are overlapping. The latter mode is more precise, but it may be slower.
aFunctionToApply- the function to apply on each element that overlaps with the given bounds.
aPrecisionX- the precision required in the x dimension, expressed in model units. For example, for a cartesian grid system expressed in meters, the values should be expressed in meters as well, for a geodetic coordinate system the accuracy values should be expressed in degrees.
The precision is useful in combination with multi-leveled data (multiple representations of the same object, but with varying accuracy), so that the most appropriate accuracy level can be used. 0 means best possible accuracy, but it might trigger lazy-loaded implementations to load lots of data.
aPrecisionY- the precision required in the y dimension, expressed in model units.
aMinSizeX- the minimal element size in the x dimension (as in
ILcdBounds.getWidth()), expressed in model units. Elements that are smaller than this size will be skipped. This may, for example, be useful when improving the efficiency of painting elements by skipping elements that are smaller than some threshold (e.g. one pixel, converted to model units).
aMinSizeY- the minimal element size in the y dimension (as in
ILcdBounds.getHeight()), expressed in model units.
true, zero-sized elements (points) are considered as well, even though they might be smaller than the minimum size.
ILcdFunctionhas been applied.
NullPointerException- if the specified bounds or the specified function are