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 #include "vtkMedSupportMesh.h"
22 #include "vtkObjectFactory.h"
23 #include "vtkMedUtilities.h"
24 #include "vtkMedFile.h"
26 #include "vtkStringArray.h"
33 vtkCxxSetObjectMacro(vtkMedSupportMesh, ParentFile, vtkMedFile);
35 vtkCxxRevisionMacro(vtkMedSupportMesh, "$Revision$")
36 vtkStandardNewMacro(vtkMedSupportMesh)
38 vtkMedSupportMesh::vtkMedSupportMesh()
40 this->MedIterator = -1;
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;
51 vtkMedSupportMesh::~vtkMedSupportMesh()
54 this->SetDescription(NULL);
55 this->SetParentFile(NULL);
56 this->AxisName->Delete();
57 this->AxisUnit->Delete();
60 void vtkMedSupportMesh::PrintSelf(ostream& os, vtkIndent indent)
62 this->Superclass::PrintSelf(os, indent);