spatial
Class LayerWindowQuery

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

public class LayerWindowQuery
extends WindowQuery
implements LayerQuery

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.


Field Summary
 
Fields inherited from class spatial.BasicSpatialQuery
tolerance
 
Constructor Summary
LayerWindowQuery(int queryLayer)
          Constructor.
 
Method Summary
 boolean conditionFulfilled(MBR rect, SpatialSearchTreeObject obj)
          Test for intersection.
 int getQueryLayer()
          Returns the index of the query layer.
 
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

LayerWindowQuery

public LayerWindowQuery(int queryLayer)
Constructor.

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

conditionFulfilled

public boolean conditionFulfilled(MBR rect,
                                  SpatialSearchTreeObject obj)
Test for intersection. Supports tolerance.

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

getQueryLayer

public int getQueryLayer()
Returns the index of the query layer.

Specified by:
getQueryLayer in interface LayerQuery
Returns:
the index of the query layer