Class BinPlan
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.BinPlan
-
public class BinPlan extends java.lang.Object
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 byDrawing
implementations.- Since:
- 15 Feb 2013
- Author:
- Mark Taylor
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BinPlan
calculatePointCloudPlan(PointCloud pointCloud, Surface surface, DataStore dataStore, java.lang.Object[] knownPlans)
Returns a BinPlan instance which reports where on a grid points in a PointCloud have landed.Binner
getBinner()
Returns count information.Gridder
getGridder()
Returns grid geometry.
-
-
-
Method Detail
-
getBinner
public Binner getBinner()
Returns count information.- Returns:
- binner
-
getGridder
public Gridder getGridder()
Returns grid geometry.- Returns:
- gridder
-
calculatePointCloudPlan
public static BinPlan calculatePointCloudPlan(PointCloud pointCloud, Surface surface, DataStore dataStore, java.lang.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
-
-