Salome HOME
NRI : First integration.
[modules/smesh.git] / src / SMESH / SMESH_MaxElementArea.hxx
1 //=============================================================================
2 // File      : SMESH_MaxElementArea.hxx
3 // Created   : sam mai 18 23:14:04 CEST 2002
4 // Author    : Paul RASCLE, EDF
5 // Project   : SALOME
6 // Copyright : EDF 2002
7 // $Header$
8 //=============================================================================
9
10 #ifndef _SMESH_MAXELEMENTAREA_HXX_
11 #define _SMESH_MAXELEMENTAREA_HXX_
12
13 #include "SMESH_Hypothesis.hxx"
14 #include "Utils_SALOME_Exception.hxx"
15
16 class SMESH_MaxElementArea:
17   public SMESH_Hypothesis
18 {
19 public:
20   SMESH_MaxElementArea(int hypId, int studyId, SMESH_Gen* gen);
21   virtual ~SMESH_MaxElementArea();
22
23   void SetMaxArea(double maxArea)
24     throw (SALOME_Exception);
25
26   double GetMaxArea();
27
28   virtual ostream & SaveTo(ostream & save);
29   virtual istream & LoadFrom(istream & load);
30   friend ostream & operator << (ostream & save, SMESH_MaxElementArea & hyp);
31   friend istream & operator >> (istream & load, SMESH_MaxElementArea & hyp);
32
33 protected:
34   double _maxArea;
35 };
36
37 #endif