Class DimReductionDataSet

    • Constructor Detail

      • DimReductionDataSet

        public DimReductionDataSet​(GridDataSet source,
                                   int dimIndex,
                                   DimReductionDataSet.Option reductionOption)
        Reduces 3D grid data to 2D DataSet either via slicing, min, mean, max or integration
        Parameters:
        source - 3D DataSet to take projections from
        dimIndex - the axis index onto which the projection should be performed (ie. DIM_X <-> integrate over the Y axis within given value ranges and vice versa)
        reductionOption - one of the reduction options given in DimReductionDataSet.Option
    • Method Detail

      • getMaxIndex

        public int getMaxIndex()
      • getMaxValue

        public double getMaxValue()
      • getMinIndex

        public int getMinIndex()
      • getMinValue

        public double getMinValue()
      • getSourceDataSet

        public DataSet getSourceDataSet()
        Returns:
        source data set
      • handle

        public void handle​(UpdateEvent event)
        Description copied from interface: EventListener
        This method needs to be provided by an implementation of UpdateListener. It is called if an EventSource has been modified/updated.

        In general is is considered bad practice to modify the observed value in this method.

        Specified by:
        handle in interface EventListener
        Parameters:
        event - The UpdateEvent issued by the modified UpdateSource
      • setMaxValue

        public void setMaxValue​(double val)
      • setMinValue

        public void setMinValue​(double val)
      • setRange

        public void setRange​(double min,
                             double max)
      • updateMeanIntegral

        protected void updateMeanIntegral​(boolean isMean)
      • updateMinMax

        protected void updateMinMax​(boolean isMin)
      • updateSlice

        protected void updateSlice()