Salome HOME
Copyright update 2022
[modules/med.git] / src / MEDCalc / cmp / MEDPresentationVectorField.hxx
index 3da7403113c2ab6e15240c44b7b04a803acfa9c9..8aae2b7dafe419e49c44c89740fc5b37ddc5382d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2016  CEA/DEN, EDF R&D
+// Copyright (C) 2016-2022  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 MEDCALC_EXPORT MEDPresentationVectorField : public MEDPresentation
 {
 public:
-  MEDPresentationVectorField(const MEDCALC::VectorFieldParameters& params) :
-    MEDPresentation(params.fieldHandlerId, "MEDPresentationVectorField"), _params(params)
-  {}
+  static const std::string TYPE_NAME;
+  static const std::string PROP_SCALE_FACTOR;
+  static const std::string PROP_CUSTOM_SCALE_FACTOR;
+
+  MEDPresentationVectorField(const MEDCALC::VectorFieldParameters& params, const MEDCALC::ViewModeType viewMode);
   virtual ~MEDPresentationVectorField() {}
 
+  virtual void initFieldMeshInfos();
+
   void updatePipeline(const MEDCALC::VectorFieldParameters& params);
-  MEDCALC::MEDPresentationViewMode getViewMode() { return _params.viewMode; }
+
+  void getParameters(MEDCALC::VectorFieldParameters & params) const { params = _params; } ;
+  void setParameters(const MEDCALC::VectorFieldParameters & params) { _params = params; } ;
 
 protected:
   virtual void internalGeneratePipeline();
-
+  void updateScaleFactor(const double, const bool);
+  void autoScale();
+  void scale();
 private:
   MEDCALC::VectorFieldParameters _params;
+
 };
 
 #endif