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 __vtkMedSupportMesh_h_
21 #define __vtkMedSupportMesh_h_
23 #include "vtkObject.h"
25 #include "vtkMedSetGet.h"
30 class VTK_EXPORT vtkMedSupportMesh : public vtkObject
33 static vtkMedSupportMesh* New();
34 vtkTypeRevisionMacro(vtkMedSupportMesh, vtkObject)
35 void PrintSelf(ostream& os, vtkIndent indent);
38 // The iterator to identify this struct element model in the med file
39 vtkSetMacro(MedIterator, med_int);
40 vtkGetMacro(MedIterator, med_int);
43 // This is the name of this structural element model
44 vtkSetStringMacro(Name);
45 vtkGetStringMacro(Name);
48 // This is the dsecription of this structural element model
49 vtkSetStringMacro(Description);
50 vtkGetStringMacro(Description);
53 // The dimension of this support mesh lives in
54 vtkSetMacro(SpaceDimension, med_int);
55 vtkGetMacro(SpaceDimension, med_int);
58 // The dimension of this support mesh model
59 vtkSetMacro(MeshDimension, med_int);
60 vtkGetMacro(MeshDimension, med_int);;
63 // The dimension of this support mesh model
64 vtkSetMacro(AxisType, med_axis_type);
65 vtkGetMacro(AxisType, med_axis_type);;
68 // The file this support mesh is stored in.
69 virtual void SetParentFile(vtkMedFile*);
70 vtkGetObjectMacro(ParentFile, vtkMedFile);
73 // This array stores the units of the axis
74 vtkGetObjectMacro(AxisName, vtkStringArray);
77 // This array store the units of thi support mesh for each axis
78 vtkGetObjectMacro(AxisUnit, vtkStringArray);
82 virtual ~vtkMedSupportMesh();
85 med_int SpaceDimension;
86 med_int MeshDimension;
89 med_axis_type AxisType;
90 vtkStringArray *AxisName;
91 vtkStringArray *AxisUnit;
93 vtkMedFile* ParentFile;
96 vtkMedSupportMesh(const vtkMedSupportMesh&); // Not implemented.
97 void operator=(const vtkMedSupportMesh&); // Not implemented.
101 #endif //__vtkMedSupportMesh_h_