Salome HOME
Merge from BR_PORTING_VTK6 01/03/2013
[modules/paravis.git] / src / Plugins / MedReader / IO / vtkMedInterpolation.cxx
1 // Copyright (C) 2010-2011  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 #include "vtkMedInterpolation.h"
21
22 #include "vtkObjectFactory.h"
23
24 #include "vtkMedUtilities.h"
25 #include "vtkMedFraction.h"
26
27 // vtkCxxRevisionMacro(vtkMedInterpolation, "$Revision$")
28 vtkStandardNewMacro(vtkMedInterpolation)
29
30 vtkCxxGetObjectVectorMacro(vtkMedInterpolation, BasisFunction,
31                            vtkMedFraction);
32 vtkCxxSetObjectVectorMacro(vtkMedInterpolation, BasisFunction,
33                            vtkMedFraction);
34
35 vtkMedInterpolation::vtkMedInterpolation()
36 {
37   this->GeometryType = MED_UNDEF_GEOTYPE;
38   this->IsCellNode = 1;
39   this->MaximumNumberOfCoefficient = 0;
40   this->MaximumDegree = 0;
41   this->NumberOfVariable = 0;
42   this->Name = NULL;
43   this->BasisFunction = new vtkObjectVector<vtkMedFraction>();
44 }
45
46 vtkMedInterpolation::~vtkMedInterpolation()
47 {
48   delete this->BasisFunction;
49   this->SetName(NULL);
50 }
51
52 void vtkMedInterpolation::PrintSelf(ostream& os, vtkIndent indent)
53 {
54   this->Superclass::PrintSelf(os, indent);
55 }