Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/smesh.git] / src / SMESH / SMESH_Regular_1D.hxx
1 //=============================================================================
2 // File      : SMESH_Regular_1D.hxx
3 // Created   : sam mai 18 08:11:54 CEST 2002
4 // Author    : Paul RASCLE, EDF
5 // Project   : SALOME
6 // Copyright : EDF 2002
7 // $Header$
8 //=============================================================================
9
10 #ifndef _SMESH_REGULAR_1D_HXX_
11 #define _SMESH_REGULAR_1D_HXX_
12
13 #include "SMESH_1D_Algo.hxx"
14
15 class SMESH_LocalLength;
16 class SMESH_NumberOfSegments;
17
18 class SMESH_Regular_1D:
19   public SMESH_1D_Algo
20 {
21 public:
22   SMESH_Regular_1D(int hypId, int studyId, SMESH_Gen* gen);
23   virtual ~SMESH_Regular_1D();
24
25   virtual bool CheckHypothesis(SMESH_Mesh& aMesh,
26                                const TopoDS_Shape& aShape);
27
28   virtual bool Compute(SMESH_Mesh& aMesh,
29                        const TopoDS_Shape& aShape);
30
31   ostream & SaveTo(ostream & save);
32   istream & LoadFrom(istream & load);
33   friend ostream & operator << (ostream & save, SMESH_Regular_1D & hyp);
34   friend istream & operator >> (istream & load, SMESH_Regular_1D & hyp);
35
36 protected:
37   double _localLength;
38   int _numberOfSegments;
39   SMESH_LocalLength* _hypLocalLength;
40   SMESH_NumberOfSegments* _hypNumberOfSegments;
41 };
42
43 #endif