Class ContourDataSetRenderer

    • Field Detail

      • gradientRect

        protected final javafx.scene.shape.Rectangle gradientRect
    • Constructor Detail

      • ContourDataSetRenderer

        public ContourDataSetRenderer()
    • Method Detail

      • colorGradientProperty

        public javafx.beans.property.ObjectProperty<ColorGradient> colorGradientProperty()
        Color gradient (linear) used to encode data point values.
        Returns:
        gradient property
      • computeLocalRange

        public boolean computeLocalRange()
        Returns the value of the computeLocalRangeProperty().
        Returns:
        true if the local range calculation is applied, false otherwise
      • computeLocalRangeProperty

        public javafx.beans.property.BooleanProperty computeLocalRangeProperty()
        Indicates if the chart should compute the min/max z-Axis for the local (true) or global (false) visible range
        Returns:
        computeLocalRange property
      • contourTypeProperty

        public javafx.beans.property.ObjectProperty<ContourType> contourTypeProperty()
        Indicates if the chart should plot contours (true) or color gradient map (false)
        Returns:
        plotContourProperty property
      • drawLegendSymbol

        public javafx.scene.canvas.Canvas drawLegendSymbol​(de.gsi.dataset.DataSet dataSet,
                                                           int dsIndex,
                                                           int width,
                                                           int height)
        Specified by:
        drawLegendSymbol in interface Renderer
        Parameters:
        dataSet - the data set for which the representative icon should be generated
        dsIndex - index within renderer set
        width - requested width of the returning Canvas
        height - requested height of the returning Canvas
        Returns:
        a graphical icon representation of the given data sets
      • getContourType

        public ContourType getContourType()
        Returns the value of the contourTypeProperty().
        Returns:
        if the chart should plot contours (true) or color gradient map (false)
      • getMaxContourSegments

        public int getMaxContourSegments()
        Returns:
        the maximum number of segments for which a contour is being drawn
      • getMinHexTileSizeProperty

        public int getMinHexTileSizeProperty()
      • getNumberQuantisationLevels

        public int getNumberQuantisationLevels()
      • getZAxis

        public Axis getZAxis()
      • isSmooth

        public boolean isSmooth()
        Returns the value of the smoothProperty().
        Returns:
        true if the smoothing should be applied, false otherwise
      • layoutZAxis

        protected void layoutZAxis​(Axis zAxis,
                                   de.gsi.chart.renderer.spi.ContourDataSetRenderer.Cache lCache)
      • maxContourSegmentsProperty

        public javafx.beans.property.IntegerProperty maxContourSegmentsProperty()
        Returns:
        the property controlling the maximum number of sub-segments allowed for a contour to be drawn.
      • minHexTileSizeProperty

        public javafx.beans.property.IntegerProperty minHexTileSizeProperty()
      • quantisationLevelsProperty

        public javafx.beans.property.IntegerProperty quantisationLevelsProperty()
      • render

        public void render​(javafx.scene.canvas.GraphicsContext gc,
                           Chart chart,
                           int dataSetOffset,
                           javafx.collections.ObservableList<de.gsi.dataset.DataSet> datasets)
        Specified by:
        render in interface Renderer
      • setComputeLocalRange

        public void setComputeLocalRange​(boolean value)
        Sets the value of the computeLocalRangeProperty().
        Parameters:
        value - true if the local range calculation is applied, false otherwise
      • setContourType

        public void setContourType​(ContourType value)
        Sets the value of the contourTypeProperty().
        Parameters:
        value - if the chart should plot contours (true) or color gradient map (false)
      • setMaxContourSegments

        public ContourDataSetRenderer setMaxContourSegments​(int nSegments)
        suppresses contour segments being drawn that have more than the specified number of sub-segments
        Parameters:
        nSegments - the maximum number of segments
        Returns:
        itself
      • setNumberQuantisationLevels

        public ContourDataSetRenderer setNumberQuantisationLevels​(int nQuantisation)
      • setSmooth

        public void setSmooth​(boolean value)
        Sets the value of the smoothProperty().
        Parameters:
        value - true to enable smoothing
      • shiftZAxisToLeft

        public void shiftZAxisToLeft()
      • shiftZAxisToRight

        public void shiftZAxisToRight()
      • smoothProperty

        public javafx.beans.property.BooleanProperty smoothProperty()
        Indicates if the chart should smooth colors between data points or render each data point as a rectangle with uniform color.

        By default smoothing is disabled.

        Returns:
        smooth property
        See Also:
        ImageView.setFitWidth(double), ImageView.setFitHeight(double), ImageView.setSmooth(boolean)
      • convolution

        public static double convolution​(double[][] pixelMatrix)
      • erosionConvolution

        public static double erosionConvolution​(double[][] pixelMatrix)
      • erosionConvolution2

        public static double erosionConvolution2​(double[][] pixelMatrix)