1 // Copyright (C) 2010-2012 CEA/DEN, EDF R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef __vtkMedInterpolation_h_
21 #define __vtkMedInterpolation_h_
23 #include "vtkObject.h"
25 #include "vtkMedSetGet.h"
30 class VTK_EXPORT vtkMedInterpolation : public vtkObject
33 static vtkMedInterpolation* New();
34 vtkTypeRevisionMacro(vtkMedInterpolation, vtkObject)
35 void PrintSelf(ostream& os, vtkIndent indent);
38 // name of the interpolation function
39 vtkGetStringMacro(Name);
40 vtkSetStringMacro(Name);
43 // This is the iterator that should be used to read this interpolation
45 vtkSetMacro(MedIterator, med_int);
46 vtkGetMacro(MedIterator, med_int);
49 // Type geometrique des mailles
50 vtkSetMacro(GeometryType, med_geometry_type);
51 vtkGetMacro(GeometryType, med_geometry_type);
54 // 1 if the basis functions are relative to the vertices of the cell.
55 vtkSetMacro(IsCellNode, int);
56 vtkGetMacro(IsCellNode, int);
59 // Maximum degree of any coefficient of any basis function
60 vtkSetMacro(MaximumDegree, int);
61 vtkGetMacro(MaximumDegree, int);
64 // Maximum number of coefficients for any basis function
65 vtkSetMacro(MaximumNumberOfCoefficient, int);
66 vtkGetMacro(MaximumNumberOfCoefficient, int);
69 // Maximum number of coefficients for any basis function
70 vtkSetMacro(NumberOfVariable, int);
71 vtkGetMacro(NumberOfVariable, int);
74 // The basis functions
75 vtkGetObjectVectorMacro(BasisFunction, vtkMedFraction);
76 vtkSetObjectVectorMacro(BasisFunction, vtkMedFraction);
79 vtkMedInterpolation();
80 ~vtkMedInterpolation();
83 med_geometry_type GeometryType;
85 int MaximumNumberOfCoefficient;
89 vtkObjectVector<vtkMedFraction>* BasisFunction;
92 #endif //__vtkMedInterpolation_h_