Package gov.nasa.worldwind.util
Class BasicClutterFilter
- java.lang.Object
-
- gov.nasa.worldwind.util.BasicClutterFilter
-
- All Implemented Interfaces:
ClutterFilter
public class BasicClutterFilter extends java.lang.Object implements ClutterFilter
A simple clutter filter that compares bounding rectangles to each other.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.awt.geom.Rectangle2D>
rectList
-
Constructor Summary
Constructors Constructor Description BasicClutterFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(DrawContext dc, java.util.List<Declutterable> shapes)
Applies the filter for a specified list ofDeclutterable
shapes.protected void
clear()
protected java.awt.geom.Rectangle2D
intersects(java.awt.geom.Rectangle2D rectangle)
Indicates whether a specified region intersects a region in the filter.
-
-
-
Method Detail
-
apply
public void apply(DrawContext dc, java.util.List<Declutterable> shapes)
Description copied from interface:ClutterFilter
Applies the filter for a specified list ofDeclutterable
shapes.- Specified by:
apply
in interfaceClutterFilter
- Parameters:
dc
- the current draw context.shapes
- the shapes to declutter.
-
clear
protected void clear()
-
intersects
protected java.awt.geom.Rectangle2D intersects(java.awt.geom.Rectangle2D rectangle)
Indicates whether a specified region intersects a region in the filter.- Parameters:
rectangle
- the region to test.- Returns:
- true if the region intersects one or more other regions in the filter, otherwise false.
-
-