Back to index

salome-paravis  6.5.0
vtkMedInterpolation.h
Go to the documentation of this file.
00001 // Copyright (C) 2010-2012  CEA/DEN, EDF R&D
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 #ifndef __vtkMedInterpolation_h_
00021 #define __vtkMedInterpolation_h_
00022 
00023 #include "vtkObject.h"
00024 #include "vtkMed.h"
00025 #include "vtkMedSetGet.h"
00026 
00027 class vtkMedString;
00028 class vtkMedFraction;
00029 
00030 class VTK_EXPORT vtkMedInterpolation : public vtkObject
00031 {
00032 public:
00033   static vtkMedInterpolation* New();
00034   vtkTypeRevisionMacro(vtkMedInterpolation, vtkObject)
00035   void PrintSelf(ostream& os, vtkIndent indent);
00036 
00037   // Description:
00038   // name of the interpolation function
00039   vtkGetStringMacro(Name);
00040   vtkSetStringMacro(Name);
00041 
00042   // Description:
00043   // This is the iterator that should be used to read this interpolation
00044   // in the med file
00045   vtkSetMacro(MedIterator, med_int);
00046   vtkGetMacro(MedIterator, med_int);
00047 
00048   // Description:
00049   // Type geometrique des mailles
00050   vtkSetMacro(GeometryType, med_geometry_type);
00051   vtkGetMacro(GeometryType, med_geometry_type);
00052 
00053   // Description:
00054   // 1 if the basis functions are relative to the vertices of the cell.
00055   vtkSetMacro(IsCellNode, int);
00056   vtkGetMacro(IsCellNode, int);
00057 
00058   // Description:
00059   // Maximum degree of any coefficient of any basis function
00060   vtkSetMacro(MaximumDegree, int);
00061   vtkGetMacro(MaximumDegree, int);
00062 
00063   // Description:
00064   // Maximum number of coefficients for any basis function
00065   vtkSetMacro(MaximumNumberOfCoefficient, int);
00066   vtkGetMacro(MaximumNumberOfCoefficient, int);
00067 
00068   // Description:
00069   // Maximum number of coefficients for any basis function
00070   vtkSetMacro(NumberOfVariable, int);
00071   vtkGetMacro(NumberOfVariable, int);
00072 
00073   // Description:
00074   // The basis functions
00075   vtkGetObjectVectorMacro(BasisFunction, vtkMedFraction);
00076   vtkSetObjectVectorMacro(BasisFunction, vtkMedFraction);
00077 
00078 protected :
00079   vtkMedInterpolation();
00080   ~vtkMedInterpolation();
00081 
00082   med_int MedIterator;
00083   med_geometry_type GeometryType;
00084   int IsCellNode;
00085   int MaximumNumberOfCoefficient;
00086   int MaximumDegree;
00087   int NumberOfVariable;
00088   char* Name;
00089   vtkObjectVector<vtkMedFraction>* BasisFunction;
00090 };
00091 
00092 #endif //__vtkMedInterpolation_h_