Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/paravis.git] / src / Plugins / MedReader / IO / vtkMedSupportMesh.cxx
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 #include "vtkMedSupportMesh.h"
21
22 #include "vtkObjectFactory.h"
23 #include "vtkMedUtilities.h"
24 #include "vtkMedFile.h"
25
26 #include "vtkStringArray.h"
27
28 #include <map>
29 #include <string>
30 #include <vector>
31 using namespace std;
32
33 vtkCxxSetObjectMacro(vtkMedSupportMesh, ParentFile, vtkMedFile);
34
35 vtkCxxRevisionMacro(vtkMedSupportMesh, "$Revision$")
36 vtkStandardNewMacro(vtkMedSupportMesh)
37
38 vtkMedSupportMesh::vtkMedSupportMesh()
39 {
40   this->MedIterator = -1;
41   this->Name = NULL;
42   this->ParentFile = NULL;
43   this->AxisName = vtkStringArray::New();
44   this->AxisUnit = vtkStringArray::New();
45   this->Description = NULL;
46   this->AxisType = MED_UNDEF_AXIS_TYPE;
47   this->SpaceDimension = 0;
48   this->MeshDimension = 0;
49 }
50
51 vtkMedSupportMesh::~vtkMedSupportMesh()
52 {
53   this->SetName(NULL);
54   this->SetDescription(NULL);
55   this->SetParentFile(NULL);
56   this->AxisName->Delete();
57   this->AxisUnit->Delete();
58 }
59
60 void vtkMedSupportMesh::PrintSelf(ostream& os, vtkIndent indent)
61 {
62   this->Superclass::PrintSelf(os, indent);
63 }