Salome HOME
Merge from V6_main (04/10/2012)
[modules/paravis.git] / src / Plugins / MedReader / IO / vtkMedSupportMesh.h
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 #ifndef __vtkMedSupportMesh_h_
21 #define __vtkMedSupportMesh_h_
22
23 #include "vtkObject.h"
24 #include "vtkMed.h"
25 #include "vtkMedSetGet.h"
26
27 class vtkStringArray;
28 class vtkMedFile;
29
30 class VTK_EXPORT vtkMedSupportMesh : public vtkObject
31 {
32 public :
33   static vtkMedSupportMesh* New();
34   vtkTypeRevisionMacro(vtkMedSupportMesh, vtkObject)
35   void PrintSelf(ostream& os, vtkIndent indent);
36
37   // Description:
38   // The iterator to identify this struct element model in the med file
39   vtkSetMacro(MedIterator, med_int);
40   vtkGetMacro(MedIterator, med_int);
41
42   // Description:
43   // This is the name of this structural element model
44   vtkSetStringMacro(Name);
45   vtkGetStringMacro(Name);
46
47   // Description:
48   // This is the dsecription of this structural element model
49   vtkSetStringMacro(Description);
50   vtkGetStringMacro(Description);
51
52   // Description:
53   // The dimension of this support mesh lives in
54   vtkSetMacro(SpaceDimension, med_int);
55   vtkGetMacro(SpaceDimension, med_int);
56
57   // Description:
58   // The dimension of this support mesh model
59   vtkSetMacro(MeshDimension, med_int);
60   vtkGetMacro(MeshDimension, med_int);;
61
62   // Description:
63   // The dimension of this support mesh model
64   vtkSetMacro(AxisType, med_axis_type);
65   vtkGetMacro(AxisType, med_axis_type);;
66
67   // Description:
68   // The file this support mesh is stored in.
69   virtual void SetParentFile(vtkMedFile*);
70   vtkGetObjectMacro(ParentFile, vtkMedFile);
71
72   // Dsecription:
73   // This array stores the units of the axis
74   vtkGetObjectMacro(AxisName, vtkStringArray);
75
76   // Description:
77   // This array store the units of thi support mesh for each axis
78   vtkGetObjectMacro(AxisUnit, vtkStringArray);
79
80 protected:
81   vtkMedSupportMesh();
82   virtual ~vtkMedSupportMesh();
83
84   med_int MedIterator;
85   med_int SpaceDimension;
86   med_int MeshDimension;
87   char *Name;
88   char *Description;
89   med_axis_type AxisType;
90   vtkStringArray *AxisName;
91   vtkStringArray *AxisUnit;
92
93   vtkMedFile* ParentFile;
94
95 private:
96   vtkMedSupportMesh(const vtkMedSupportMesh&); // Not implemented.
97   void operator=(const vtkMedSupportMesh&); // Not implemented.
98
99 };
100
101 #endif //__vtkMedSupportMesh_h_