From 9de980008707eb4d5fa185fa568bf60734f9fa85 Mon Sep 17 00:00:00 2001 From: Sylvie Lamy-Thepaut Date: Mon, 5 Jun 2023 18:03:43 +0100 Subject: [PATCH] Magics : contour_shade_max/min_level wher used evne idf contour_shade was off . [SD-79687] --- src/visualisers/IsoPlot.cc | 2 +- src/visualisers/IsoShading.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/visualisers/IsoPlot.cc b/src/visualisers/IsoPlot.cc index bca07225..016f728d 100644 --- a/src/visualisers/IsoPlot.cc +++ b/src/visualisers/IsoPlot.cc @@ -1342,7 +1342,7 @@ bool IsoPlot::prepare(MatrixHandler& data) { double min = data.min(); double max = data.max(); (*levelSelection_).clear(); - (*levelSelection_).calculate(min, max, true); + (*levelSelection_).calculate(min, max, shading_->isShading()); bool need_isolines = (*shading_)(*levelSelection_); shading_->reset(); (*label_).prepare(*levelSelection_, (*colour_).name()); diff --git a/src/visualisers/IsoShading.h b/src/visualisers/IsoShading.h index 64931e41..641c2afd 100644 --- a/src/visualisers/IsoShading.h +++ b/src/visualisers/IsoShading.h @@ -76,6 +76,7 @@ class NoIsoShading { virtual bool needClipping() { return false; } virtual bool method(ContourMethod*) { return false; } virtual void reset() {} + virtual bool isShading() { return false; } protected: //! Method to print string about this class on to a stream of type ostream (virtual). @@ -109,6 +110,8 @@ class IsoShading : public NoIsoShading, public IsoShadingAttributes { object->copy(*this); return object; } + + bool isShading() override { return true; } CellArray* array(MatrixHandler& matrix, IntervalMap& range, const Transformation& transformation, int width, int height, float resolution, const string& technique) override {