Class TLcdRegularTiled2DBoundsIndexedModel
 All Implemented Interfaces:
ILcd2DBoundsIndexedModel
,ILcd2DBoundsInteractable
,ILcdModel
,ILcdBounded
,ILcdDisposable
,Serializable
,AutoCloseable
ILcd2DBoundsIndexedModel
that contains
objects in different tiles. The model acts as a virtual supermodel.
The model has a reference to a ILcdTileProvider
that is able
to retrieve each of the tiles.
The model is a readonly model. It is threadsafe for accessing its elements.
 Since:
 V2.0
 See Also:

Nested Class Summary
Nested classes/interfaces inherited from interface com.luciad.model.ILcdModel
ILcdModel.Query

Field Summary
Fields inherited from class com.luciad.model.ALcdModel
fModelEventSupport
Fields inherited from interface com.luciad.model.ILcdModel
FIRE_LATER, FIRE_NOW, NO_EVENT

Constructor Summary

Method Summary
Modifier and TypeMethodDescriptionint
applyOnInteract2DBounds
(ILcdBounds aBounds, boolean aStrictInteract, ILcdFunction aFunctionToApply, double aPrecisionX, double aPrecisionY) Deprecated.Applies the specified function to all the model 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) Deprecated.Applies the specified function to all the elements of which the 2D bounds overlap with the specified bounds.elements()
Deprecated.Returns an enumeration over all elements of this model.Deprecated.Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.Deprecated.Returns theILcdTileProvider
that is responsible for retrieving the data in the different tiles.void
setModelBounds
(ILcdBounds aModelBounds) Deprecated.Sets the model bounds for this model.void
setTileProvider
(ILcdTileProvider aTileProvider) Deprecated.Set theILcdTileProvider
that is responsible for retrieving the data in the different tiles.Methods inherited from class com.luciad.model.ALcdModel
addElement, addElements, addModelListener, allElementsChanged, allElementsRemoved, canAddElement, canRemoveElement, dispose, elementAdded, elementChanged, elementRemoved, elementsAdded, elementsChanged, elementsRemoved, fireCollectedModelChanges, getModelDescriptor, getModelEncoder, getModelMetadata, getModelReference, initializeTransientValues, isClassTraceOn, isTraceOn, removeAllElements, removeElement, removeElements, removeModelListener, setClassTraceOn, setModelDescriptor, setModelDisposer, setModelEncoder, setModelMetadataFunction, setModelReference, setTraceOn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.model.ILcd2DBoundsIndexedModel
query
Methods inherited from interface com.luciad.util.ILcdDisposable
close
Methods inherited from interface com.luciad.model.ILcdModel
addElement, addElements, addModelListener, canAddElement, canRemoveElement, dispose, elementChanged, elementsChanged, fireCollectedModelChanges, getModelDescriptor, getModelEncoder, getModelMetadata, getModelReference, removeAllElements, removeElement, removeElements, removeModelListener

Constructor Details

TLcdRegularTiled2DBoundsIndexedModel
public TLcdRegularTiled2DBoundsIndexedModel()Deprecated.


Method Details

setModelBounds
Deprecated.Sets the model bounds for this model. Parameters:
aModelBounds
 the bounds for this model.

setTileProvider
Deprecated.Set theILcdTileProvider
that is responsible for retrieving the data in the different tiles. Parameters:
aTileProvider
 the tile provider to obtain tiles within the model. See Also:

getTileProvider
Deprecated.Returns theILcdTileProvider
that is responsible for retrieving the data in the different tiles. Returns:
 the
ILcdTileProvider
that is responsible for retrieving the data in the different tiles.  See Also:

elements
Deprecated.Description copied from interface:ILcdModel
Returns an enumeration over all elements of this model. The order in which the elements are enumerated is unspecified by default. 
applyOnInteract2DBounds
public int applyOnInteract2DBounds(ILcdBounds aBounds, boolean aStrictInteract, ILcdFunction aFunctionToApply, double aPrecisionX, double aPrecisionY) Deprecated.Description copied from interface:ILcd2DBoundsIndexedModel
Applies the specified function to all the model elements of which the 2D bounds overlap with the specified bounds. By default, the order in which the function is applied on the elements is unspecified and depends on the implementation.The return value of the specified function is used as a stop criterion: the spatial query is interrupted if the function returns
false
. Specified by:
applyOnInteract2DBounds
in interfaceILcd2DBoundsIndexedModel
 Parameters:
aBounds
 the rectangle to test overlap with.aStrictInteract
 iffalse
, the spatial search may return more elements than the ones strictly overlapping; iftrue
, 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. The return value of the specified function is used as a stop criterion: the spatial query is interrupted if the function returnsfalse
.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 multileveled 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 lazyloaded implementations to load lots of data.
aPrecisionY
 the precision required in the y dimension, expressed in model units. Returns:
 the number of elements to which the
ILcdFunction
has been applied.

applyOnInteract2DBounds
public int applyOnInteract2DBounds(ILcdBounds aBounds, boolean aStrictInteract, ILcdFunction aFunctionToApply, double aPrecisionX, double aPrecisionY, double aMinSizeX, double aMinSizeY, boolean aIncludePoints) Deprecated.Description copied from interface:ILcd2DBoundsInteractable
Applies the specified function to all the elements of which the 2D bounds overlap with the specified bounds. The order in which the function is applied on the elements is unspecified and depends on the implementation.Only elements that have at least the specified minimal size in the x dimension or in the y dimension are considered. This can be useful for quickly eliminating elements that are too small to be visible in a view, for instance. If required, an exception can be made for point elements, which have a size of 0 by 0. They can be forced to be considered, even though they would always be rejected as being too small for any sizes larger than 0.
The return value of the specified function is used as a stop criterion: the spatial query will be interrupted as soon as the function returns
false
for an element it was applied on. Specified by:
applyOnInteract2DBounds
in interfaceILcd2DBoundsIndexedModel
 Specified by:
applyOnInteract2DBounds
in interfaceILcd2DBoundsInteractable
 Parameters:
aBounds
 the rectangle to test overlap with.aStrictInteract
 iffalse
, the spatial search may return more elements than the ones strictly overlapping; iftrue
, 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 multileveled 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 lazyloaded 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 inILcdBounds.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 inILcdBounds.getHeight()
), expressed in model units.aIncludePoints
 iftrue
, zerosized elements (points) are considered as well, even though they might be smaller than the minimum size. Returns:
 the number of elements to which the
ILcdFunction
has been applied.

getBounds
Deprecated.Description copied from interface:ILcdBounded
Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an
undefined
bounds. You can create undefined bounds using the default constructors ofTLcdLonLatBounds
orTLcdXYBounds
. Specified by:
getBounds
in interfaceILcdBounded
 Returns:
 the
ILcdBounds
by which the geometry of thisILcdBounded
object is bounded.
