public class SectorVisibilityTree
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
SectorVisibilityTree.Context |
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
globeStateKey |
protected java.util.HashMap<Sector,Extent> |
newExtents |
protected java.util.HashMap<Sector,Extent> |
prevExtents |
protected java.util.ArrayList<Sector> |
sectors |
protected double |
sectorSize |
protected long |
timeStamp |
protected DecisionTree<Sector,SectorVisibilityTree.Context> |
tree |
Constructor and Description |
---|
SectorVisibilityTree() |
Modifier and Type | Method and Description |
---|---|
void |
clearSectors() |
java.util.List<Sector> |
getSectors() |
double |
getSectorSize() |
long |
getTimeStamp() |
java.util.List<Sector> |
refresh(DrawContext dc,
double sectorSize)
Determines the visible sectors at a specifed resolution within the draw context's current visible sector.
|
java.util.List<Sector> |
refresh(DrawContext dc,
double sectorSize,
java.util.List<Sector> searchSectors)
Determines the visible sectors at a specified resolution within a collection of sectors.
|
java.util.List<Sector> |
refresh(DrawContext dc,
double sectorSize,
Sector searchSector)
Determines the visible sectors at a specified resolution within a specified sector.
|
void |
setTimeStamp(long timeStamp) |
protected void |
swapCylinderLists(DrawContext dc) |
protected java.lang.Object globeStateKey
protected java.util.ArrayList<Sector> sectors
protected double sectorSize
protected long timeStamp
protected DecisionTree<Sector,SectorVisibilityTree.Context> tree
public void clearSectors()
public java.util.List<Sector> getSectors()
public double getSectorSize()
public long getTimeStamp()
public java.util.List<Sector> refresh(DrawContext dc, double sectorSize)
dc
- the current draw contextsectorSize
- the granularity of sector visibility, in degrees. All visible sectors of this size are found.
The value must be in the range, 1 second <= sectorSize <= 180 degrees.java.lang.IllegalArgumentException
- if the draw context is null.public java.util.List<Sector> refresh(DrawContext dc, double sectorSize, java.util.List<Sector> searchSectors)
dc
- the current draw contextsectorSize
- the granularity of sector visibility, in degrees. All visible sectors of this size are The
value must be in the range, 1 second <= sectorSize <= 180 degrees. found.searchSectors
- the sectors for which to determine visibility.java.lang.IllegalArgumentException
- if the draw context is null, the sector size is less than or equal to zero or
the search sector list is null.public java.util.List<Sector> refresh(DrawContext dc, double sectorSize, Sector searchSector)
dc
- the current draw contextsectorSize
- the granularity of sector visibility, in degrees. All visible sectors of this size are found.
The value must be in the range, 1 second <= sectorSize <= 180 degrees.searchSector
- the overall sector for which to determine visibility. May be null, in which case the current
visible sector of the draw context is used.java.lang.IllegalArgumentException
- if the draw context is null, the sector size is less than or equal to zero, or
the search sector list is null.public void setTimeStamp(long timeStamp)
protected void swapCylinderLists(DrawContext dc)