Commit f1ddef1d authored by Daniel Schramm's avatar Daniel Schramm
Browse files

Heatmap of weighted HD replaced with a saturated heatmap of regular HD

parent 7e37cf33
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -142,6 +142,7 @@ public class DistanceAction extends ControlPanelAction {
                getSecondaryDrawableFace().setRenderHeatmap(isHeatmapDisplayed());
            } else {
                weightedFeaturePoints.hide();
                getSecondaryDrawableFace().clearHeatMapSaturation();
            }
        });
        topControlPanel.setSelectedComponent(controlPanel); // Focus Hausdorff distance panel
@@ -227,20 +228,22 @@ public class DistanceAction extends ControlPanelAction {
            setHausdorffDistanceStatistics();
        }
        
        final Map<MeshFacet, List<Double>> heatmap;
        switch (heatmapDisplayed) {
            case DistancePanel.HEATMAP_HAUSDORFF_DISTANCE:
                heatmap = visitor.getDistances();
                getSecondaryDrawableFace().clearHeatMapSaturation();
                break;
            case DistancePanel.HEATMAP_WEIGHTED_HAUSDORFF_DISTANCE:
                heatmap = weightedHausdorffDistance;
                getSecondaryDrawableFace().setHeatMapSaturation(
                        visitor.getMergedPriorities()
                                .get(getSecondaryDrawableFace().getHumanFace())
                );
                break;
            case DistancePanel.HEATMAP_HIDE:
                return;
            default:
                throw new UnsupportedOperationException(heatmapDisplayed);
        }
        getSecondaryDrawableFace().setHeatMap(heatmap);
        getSecondaryDrawableFace().setHeatMap(visitor.getDistances());
    }
    
    /**