-// Copyright (C) 2016 CEA/DEN, EDF R&D
+// Copyright (C) 2016-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#ifndef SRC_MEDCALC_GUI_MEDWIDGETHELPER_HXX_
#define SRC_MEDCALC_GUI_MEDWIDGETHELPER_HXX_
+#include <Python.h>
#include "WidgetPresentationParameters.hxx"
#include "PresentationEvent.hxx"
void onComponentChanged(int idx);
void onColorMapChanged(int idx);
void onScalarBarRangeChanged(int idx);
+ void onScalarBarVisibilityChanged(int idx);
+ void onUseCustomRangeChanged(int idx);
+ void onCustomRangeValueChanged(double min, double max);
+ void onHideDataOutsideCustomRangeChanged(int idx);
+
protected:
///! GUI needs to talk directly to the pres manager to activate a view, get some params, etc ...:
int _selectedCompo; // Selected field component
int _nbCompos; // Total number of available components
std::vector<std::string> _allCompos; // All available components
+ bool _scalarBarVisibility;
+ double _scalarBarRangeArray[2];
+ bool _hideDataOutsideCustomRange;
// Color map
MEDCALC::ColorMapType _colorMap;