Salome HOME
updated copyright message
[modules/med.git] / src / MEDCalc / gui / MEDWidgetHelperVectorField.hxx
index daca5dfb98c085a4c6b7618d9e7c6191267340c3..dbece4d4895157403254040508ff8aa23f48d2c8 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2016  CEA/DEN, EDF R&D
+// Copyright (C) 2016-2023  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 
 class PresentationController;
 
-class MEDWidgetHelperVectorField: public MEDWidgetHelperComponent
+class MEDWidgetHelperVectorField: public MEDWidgetHelper
 {
   Q_OBJECT
 
 public:
   MEDWidgetHelperVectorField(const PresentationController* presController,
                            MEDCALC::MEDPresentationManager_ptr presManager, int presId, const std::string & presName,
-                           WidgetPresentationParameters * paramW):
-     MEDWidgetHelperComponent(presController, presManager, presId, presName, paramW)
-  {}
+                           WidgetPresentationParameters * paramW);
 
-  virtual ~MEDWidgetHelperVectorField() {}
+  virtual ~MEDWidgetHelperVectorField();
+
+  virtual void updateWidget(bool connect);
+  virtual void releaseWidget();
 
   virtual std::string getPythonTag() const { return "VectorField"; }
+
+protected slots:
+  void onScaleFactorChanged(double);
+  void onCustomScaleFactorChanged(int);
+
+protected:
+  virtual void loadParametersFromEngine();
+  double _scaleFactor;
+  bool _customScaleFactor;
 };
 
 #endif /* SRC_MEDCALC_GUI_MEDWIDGETHELPERVECTORFIELD_HXX_ */