Salome HOME
Merge from V6_main (04/10/2012)
[modules/paravis.git] / src / Plugins / MedReader / IO / vtkMedInterpolation.h
1 // Copyright (C) 2010-2012  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef __vtkMedInterpolation_h_
21 #define __vtkMedInterpolation_h_
22
23 #include "vtkObject.h"
24 #include "vtkMed.h"
25 #include "vtkMedSetGet.h"
26
27 class vtkMedString;
28 class vtkMedFraction;
29
30 class VTK_EXPORT vtkMedInterpolation : public vtkObject
31 {
32 public:
33   static vtkMedInterpolation* New();
34   vtkTypeRevisionMacro(vtkMedInterpolation, vtkObject)
35   void PrintSelf(ostream& os, vtkIndent indent);
36
37   // Description:
38   // name of the interpolation function
39   vtkGetStringMacro(Name);
40   vtkSetStringMacro(Name);
41
42   // Description:
43   // This is the iterator that should be used to read this interpolation
44   // in the med file
45   vtkSetMacro(MedIterator, med_int);
46   vtkGetMacro(MedIterator, med_int);
47
48   // Description:
49   // Type geometrique des mailles
50   vtkSetMacro(GeometryType, med_geometry_type);
51   vtkGetMacro(GeometryType, med_geometry_type);
52
53   // Description:
54   // 1 if the basis functions are relative to the vertices of the cell.
55   vtkSetMacro(IsCellNode, int);
56   vtkGetMacro(IsCellNode, int);
57
58   // Description:
59   // Maximum degree of any coefficient of any basis function
60   vtkSetMacro(MaximumDegree, int);
61   vtkGetMacro(MaximumDegree, int);
62
63   // Description:
64   // Maximum number of coefficients for any basis function
65   vtkSetMacro(MaximumNumberOfCoefficient, int);
66   vtkGetMacro(MaximumNumberOfCoefficient, int);
67
68   // Description:
69   // Maximum number of coefficients for any basis function
70   vtkSetMacro(NumberOfVariable, int);
71   vtkGetMacro(NumberOfVariable, int);
72
73   // Description:
74   // The basis functions
75   vtkGetObjectVectorMacro(BasisFunction, vtkMedFraction);
76   vtkSetObjectVectorMacro(BasisFunction, vtkMedFraction);
77
78 protected :
79   vtkMedInterpolation();
80   ~vtkMedInterpolation();
81
82   med_int MedIterator;
83   med_geometry_type GeometryType;
84   int IsCellNode;
85   int MaximumNumberOfCoefficient;
86   int MaximumDegree;
87   int NumberOfVariable;
88   char* Name;
89   vtkObjectVector<vtkMedFraction>* BasisFunction;
90 };
91
92 #endif //__vtkMedInterpolation_h_