spatial
Class LayerScaleWindowQuery

java.lang.Object
  |
  +--spatial.BasicSpatialQuery
        |
        +--spatial.WindowQuery
              |
              +--spatial.LayerWindowQuery
                    |
                    +--spatial.LayerScaleWindowQuery
All Implemented Interfaces:
LayerQuery, SpatialQuery

public class LayerScaleWindowQuery
extends LayerWindowQuery

Class offering the operations required for a layer window query performed by a spatial search tree which stores the layer in the leafs: The query rectangle must be intersected by the object and the layer must be equal to the query layer. In addition, a defined scale must be exceeded.


Field Summary
 
Fields inherited from class spatial.BasicSpatialQuery
tolerance
 
Constructor Summary
LayerScaleWindowQuery(int queryLayer, int scale)
          Constructor.
 
Method Summary
 boolean conditionFulfilled(MBR rect, SpatialSearchTreeObject obj)
          Test for intersection.
 
Methods inherited from class spatial.LayerWindowQuery
getQueryLayer
 
Methods inherited from class spatial.BasicSpatialQuery
areEqual, conditionFulfilled, conditionFulfilled, setTolerance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayerScaleWindowQuery

public LayerScaleWindowQuery(int queryLayer,
                             int scale)
Constructor.

Parameters:
queryLayer - the index of the query layer
Method Detail

conditionFulfilled

public boolean conditionFulfilled(MBR rect,
                                  SpatialSearchTreeObject obj)
Test for intersection. Supports tolerance. The scale attribute is considered.

Specified by:
conditionFulfilled in interface SpatialQuery
Overrides:
conditionFulfilled in class LayerWindowQuery
Parameters:
rect - query rectangle
obj - leaf object
Returns:
condition fulfilled?