Package cz.fidentis.analyst.data.shapes
Class HeatMap3D
java.lang.Object
cz.fidentis.analyst.data.shapes.HeatMap3D
A 3D meat map with a saturation "layer".
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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 benull
saturation
- Saturation values Mesh values to be transformed into colors. Can benull
minValue
- Min cut-off valuemaxValue
- Max cut-off value
-
HeatMap3D
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 benull
saturation
- Saturation values Mesh values to be transformed into colors. Can benull
-
-
Method Details
-
getFacets
Returns mesh facet from which the heatmap consists- Returns:
- mesh facet from which the heatmap consists
-
getColor
Maps the value and weight of given vertex into a heatmap color.- Parameters:
meshFacet
- Mesh facet covered by this heat mapvertexIndex
- Facet's vertex- Returns:
- A heatmap color
-