Salome HOME
[MEDCalcl] PointSprite and VectorField presentations.
[modules/med.git] / src / MEDCalc / cmp / MEDPresentationSlices.hxx
index ed747a478418532db44bb30370ab0338f5bc544e..81d5ae7e8ac117c1f9a879afcecadc1b290dffd1 100644 (file)
@@ -15,6 +15,7 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 #ifndef SRC_MEDCALC_CMP_MEDPRESENTATION_SLICES_HXX_
 #define SRC_MEDCALC_CMP_MEDPRESENTATION_SLICES_HXX_
 class MEDCALC_EXPORT MEDPresentationSlices : public MEDPresentation
 {
 public:
-  MEDPresentationSlices(MEDCALC::FieldHandler* fieldHdl, bool wireframe) :
-    MEDPresentation(fieldHdl, "MEDPresentationSlices"),
-    _isWireframe(wireframe)
-  {}
+  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 setNumberOfSlices();
+  void selectSliceOrientation();
+
 private:
-  bool _isWireframe;
+  MEDCALC::SlicesParameters _params;
 };
 
 #endif