Salome HOME
updating or adding when merging in the main trunk with the version in the
[modules/smesh.git] / src / SMESH / SMESH_MaxElementVolume.hxx
index fe530497f23067b928b518ce9f66fae6200308d4..f69fb7747443f922d6b948246f6ed6c40893f947 100644 (file)
 //  Module : SMESH
 //  $Header$
 
+#ifndef _SMESH_MAXELEMENTVOLUME_HXX_
+#define _SMESH_MAXELEMENTVOLUME_HXX_
+
+#include "SMESH_Hypothesis.hxx"
+#include "Utils_SALOME_Exception.hxx"
+
+class SMESH_MaxElementVolume:
+  public SMESH_Hypothesis
+{
+public:
+  SMESH_MaxElementVolume(int hypId, int studyId, SMESH_Gen* gen);
+  virtual ~SMESH_MaxElementVolume();
+
+  void SetMaxVolume(double maxVolume)
+    throw (SALOME_Exception);
+
+  double GetMaxVolume() const;
+
+  virtual ostream & SaveTo(ostream & save);
+  virtual istream & LoadFrom(istream & load);
+  friend ostream & operator << (ostream & save, SMESH_MaxElementVolume & hyp);
+  friend istream & operator >> (istream & load, SMESH_MaxElementVolume & hyp);
+
+protected:
+  double _maxVolume;
+};
+
+#endif