Class BinPlan
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.BinPlan
Drawing plan object for counting the number of hits to each bin in
a grid. It's a 2-d histogram.
The calculatePointCloudPlan
method
is intended for use by Drawing
implementations.
- Since:
- 15 Feb 2013
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BinPlan
calculatePointCloudPlan
(PointCloud pointCloud, Surface surface, DataStore dataStore, Object[] knownPlans) Returns a BinPlan instance which reports where on a grid points in a PointCloud have landed.Returns count information.Returns grid geometry.
-
Constructor Details
-
BinPlan
Constructor.- Parameters:
binner
- contains countsgridder
- contains pixel grid geometry
-
-
Method Details
-
getBinner
Returns count information.- Returns:
- binner
-
getGridder
Returns grid geometry.- Returns:
- gridder
-
calculatePointCloudPlan
public static BinPlan calculatePointCloudPlan(PointCloud pointCloud, Surface surface, DataStore dataStore, Object[] knownPlans) Returns a BinPlan instance which reports where on a grid points in a PointCloud have landed. Used as a plan for plot layers which want a count of the data points falling in each plot surface pixel. Instances returned by this method are reusable by layers which have the same requirements.- Parameters:
pointCloud
- data position setsurface
- plot surfacedataStore
- data storage objectknownPlans
- existing pre-calculated plans; if one of these fits the bill it will be returned without any calculations being performed
-