Maven module :un.api : api-geometry :
Class : un.api.geometry.index.quadtrees.QuadTreeBuilderType
Extends/Implements : -
Subclasses : -

A mutable builder for instantiating quadtree implementations.
param  
The precise type of members.
author  Mark Raynsford


Variables : -
Functions : build, buildWithSD, disableLimitedQuadrantSizes, disablePruning, enableLimitedQuadrantSizes, enablePruning, setPosition2i, setSize2i




return  A new quadtree based on the parameters given so far.
QuadTreeType build ()


return  A new SD quadtree based on the parameters given so far.
QuadTreeSDType buildWithSD ()


Do not use specific minimum quadrant sizes.
void disableLimitedQuadrantSizes ()


Disable pruning of empty quadtree nodes.
void disablePruning ()


Use specific minimum quadrant sizes.
param  x
The minimum quadrant width - Must be even and greater than or
equal to 2.
param  y
The minimum quadrant height - Must be even and greater than or
equal to 2.
throws  IllegalArgumentException
If the preconditions above are not satisfied.
void enableLimitedQuadrantSizes (int x, int y)


Enable pruning of empty quadtree nodes.
void enablePruning ()


Set the position of the quadtree.
param  x
The X coordinate.
param  y
The Y coordinate.
void setPosition2i (int x, int y)



Set the size of the quadtree.



@param x
The width - Must be even and greater than or equal to
2.
@param y
The height - Must be even and greater than or equal to
2.

@throws IllegalArgumentException
If the preconditions above are not satisfied.
void setSize2i (int x, int y)