Class HeatMap3D

java.lang.Object
cz.fidentis.analyst.data.shapes.HeatMap3D

public class HeatMap3D extends Object
A 3D meat map with a saturation "layer".
  • Field Details

    • INITE_VALUE_COLOR

      public static final Color INITE_VALUE_COLOR
      The default color for infinite values
  • Constructor Details

    • HeatMap3D

      public HeatMap3D(Map<MeshFacet,List<Double>> values, Map<MeshFacet,List<Double>> saturation, double minValue, double maxValue)
      Constructor for given min-max values. Any values less than min and bigger than max Maps are assumed immutable, i.e., additional changes to them do not affect the heatmap. Maps have to contain the same facets.
      Parameters:
      values - Mesh values to be transformed into colors. Must not be null
      saturation - Saturation values Mesh values to be transformed into colors. Can be null
      minValue - Min cut-off value
      maxValue - Max cut-off value
    • HeatMap3D

      public HeatMap3D(Map<MeshFacet,List<Double>> values, Map<MeshFacet,List<Double>> saturation)
      Constructor. Maps are assumed immutable, i.e., additional changes to them do not affect the heatmap. Maps have to contain the same facets.
      Parameters:
      values - Mesh values to be transformed into colors. Must not be null
      saturation - Saturation values Mesh values to be transformed into colors. Can be null
  • Method Details

    • getFacets

      public Set<MeshFacet> getFacets()
      Returns mesh facet from which the heatmap consists
      Returns:
      mesh facet from which the heatmap consists
    • getColor

      public Color getColor(MeshFacet meshFacet, int vertexIndex)
      Maps the value and weight of given vertex into a heatmap color.
      Parameters:
      meshFacet - Mesh facet covered by this heat map
      vertexIndex - Facet's vertex
      Returns:
      A heatmap color