Salome HOME
[MEDCalc] : better slices + more error handling when invalid params
[modules/med.git] / src / MEDCalc / cmp / MEDPresentationSlices.hxx
index a738d7a3f8fda84736bed290a031eb422d922a69..721ff61a7889a24f431ee4d8a88b87dbbe52a285 100644 (file)
 class MEDCALC_EXPORT MEDPresentationSlices : public MEDPresentation
 {
 public:
-  MEDPresentationSlices(const MEDCALC::SlicesParameters& params) :
-    MEDPresentation(params.fieldHandlerId, "MEDPresentationSlices"), _params(params)
-  {}
+  static const std::string TYPE_NAME;
+  static const std::string PROP_NB_SLICES;
+  static const std::string PROP_SLICE_ORIENTATION;
+
+  MEDPresentationSlices(const MEDCALC::SlicesParameters& params, const MEDCALC::ViewModeType viewMode);
   virtual ~MEDPresentationSlices() {}
 
+  void updatePipeline(const MEDCALC::SlicesParameters& params);
+
+  void getParameters(MEDCALC::SlicesParameters & params) const { params = _params; } ;
+  void setParameters(const MEDCALC::SlicesParameters & params) { _params = params; } ;
+
 protected:
+  void updateNbSlices(const int nbSlices);
+  void updateOrientation(const MEDCALC::SliceOrientationType orientation);
   virtual void internalGeneratePipeline();
 
+  void deleteGroup();
+  void setSliceParametersAndGroup();
+  void adaptNumberOfSlices();
+  void generateAndDisplay();
+  void selectSliceOrientation(const std::string & obj);
+
+  std::string getNormalVector() const;
+
 private:
   MEDCALC::SlicesParameters _params;
+  std::string _sliceListVar;
 };
 
 #endif