Skip to content

Commit

Permalink
Magics : contour_shade_max/min_level wher used evne idf contour_shade…
Browse files Browse the repository at this point in the history
… was off . [SD-79687]
  • Loading branch information
sylvielamythepaut committed Jun 5, 2023
1 parent cb99925 commit 9de9800
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/visualisers/IsoPlot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
3 changes: 3 additions & 0 deletions src/visualisers/IsoShading.h
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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<int>& range, const Transformation& transformation, int width,
int height, float resolution, const string& technique) override {
Expand Down

0 comments on commit 9de9800

Please sign in to comment.