com.metsci.glimpse.util.quadtree
Class QuadTreeLongs

java.lang.Object
  extended by com.metsci.glimpse.util.quadtree.QuadTree<com.metsci.glimpse.util.quadtree.QuadTreeLongs.Bucket>
      extended by com.metsci.glimpse.util.quadtree.QuadTreeLongs

public abstract class QuadTreeLongs
extends QuadTree<com.metsci.glimpse.util.quadtree.QuadTreeLongs.Bucket>

Author:
hogye

Nested Class Summary
 
Nested classes/interfaces inherited from class com.metsci.glimpse.util.quadtree.QuadTree
QuadTree.Accumulator<B>, QuadTree.Node<B>
 
Constructor Summary
QuadTreeLongs(int maxBucketSize)
           
 
Method Summary
 void add(long v)
          If x(v) or y(v) returns NaN, this method returns immediately without adding v to the tree.
static void appendFiltered(LongsArray from, FilterLong filter, LongsModifiable to)
           
 void remove(long v)
           
 Longs search(float xMin, float xMax, float yMin, float yMax)
           
 Longs search(float xMin, float xMax, float yMin, float yMax, FilterLong vFilter)
           
 int search(float xMin, float xMax, float yMin, float yMax, FilterLong vFilter, LongsModifiable results)
           
 int search(float xMin, float xMax, float yMin, float yMax, LongsModifiable results)
           
 
Methods inherited from class com.metsci.glimpse.util.quadtree.QuadTree
accumulate, leaf, quadrant, truncInf
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuadTreeLongs

public QuadTreeLongs(int maxBucketSize)
Method Detail

search

public Longs search(float xMin,
                    float xMax,
                    float yMin,
                    float yMax)

search

public int search(float xMin,
                  float xMax,
                  float yMin,
                  float yMax,
                  LongsModifiable results)
Returns:
The number of elements appended to results.

search

public Longs search(float xMin,
                    float xMax,
                    float yMin,
                    float yMax,
                    FilterLong vFilter)

search

public int search(float xMin,
                  float xMax,
                  float yMin,
                  float yMax,
                  FilterLong vFilter,
                  LongsModifiable results)
Returns:
The number of elements appended to results.

add

public void add(long v)
If x(v) or y(v) returns NaN, this method returns immediately without adding v to the tree.


remove

public void remove(long v)

appendFiltered

public static void appendFiltered(LongsArray from,
                                  FilterLong filter,
                                  LongsModifiable to)


Copyright © 2012 Metron, Inc.. All Rights Reserved.