Class PointLike3D

java.lang.Object
xal.extension.widgets.plot.ColorSurfaceData
xal.extension.widgets.plot.PointLike3D

public class PointLike3D extends ColorSurfaceData
This class is a data class for data used in the FunctionGraphsJPanel class. This class contains 2D grid with values at the grid points. These values will be presented as colored rectangles in the plot. It does not use interpolation to calculate z-value between grid points.
Version:
1.0
Author:
A. Shishlo
  • Constructor Details

    • PointLike3D

      public PointLike3D(int nX, int nY)
      The data set constructor with size of the grid.
  • Method Details

    • getValue

      public double getValue(double x, double y)
      Returns the interpolated value of the 2D array for x and y.
      Specified by:
      getValue in class ColorSurfaceData
    • addValue

      public void addValue(double x, double y, double value)
      Bins value into the 2D array for x and y with weight = value.
      Specified by:
      addValue in class ColorSurfaceData