Salome HOME
Merge from BR_PORTING_VTK6 01/03/2013
[modules/paravis.git] / src / Plugins / MedReader / IO / vtkMedSupportMesh.h
1 #ifndef __vtkMedSupportMesh_h_
2 #define __vtkMedSupportMesh_h_
3
4 #include "vtkObject.h"
5 #include "vtkMed.h"
6 #include "vtkMedSetGet.h"
7
8 class vtkStringArray;
9 class vtkMedFile;
10
11 class VTK_EXPORT vtkMedSupportMesh : public vtkObject
12 {
13 public :
14   static vtkMedSupportMesh* New();
15   vtkTypeMacro(vtkMedSupportMesh, vtkObject)
16   void PrintSelf(ostream& os, vtkIndent indent);
17
18   // Description:
19   // The iterator to identify this struct element model in the med file
20   vtkSetMacro(MedIterator, med_int);
21   vtkGetMacro(MedIterator, med_int);
22
23   // Description:
24   // This is the name of this structural element model
25   vtkSetStringMacro(Name);
26   vtkGetStringMacro(Name);
27
28   // Description:
29   // This is the dsecription of this structural element model
30   vtkSetStringMacro(Description);
31   vtkGetStringMacro(Description);
32
33   // Description:
34   // The dimension of this support mesh lives in
35   vtkSetMacro(SpaceDimension, med_int);
36   vtkGetMacro(SpaceDimension, med_int);
37
38   // Description:
39   // The dimension of this support mesh model
40   vtkSetMacro(MeshDimension, med_int);
41   vtkGetMacro(MeshDimension, med_int);;
42
43   // Description:
44   // The dimension of this support mesh model
45   vtkSetMacro(AxisType, med_axis_type);
46   vtkGetMacro(AxisType, med_axis_type);;
47
48   // Description:
49   // The file this support mesh is stored in.
50   virtual void SetParentFile(vtkMedFile*);
51   vtkGetObjectMacro(ParentFile, vtkMedFile);
52
53   // Dsecription:
54   // This array stores the units of the axis
55   vtkGetObjectMacro(AxisName, vtkStringArray);
56
57   // Description:
58   // This array store the units of thi support mesh for each axis
59   vtkGetObjectMacro(AxisUnit, vtkStringArray);
60
61 protected:
62   vtkMedSupportMesh();
63   virtual ~vtkMedSupportMesh();
64
65   med_int MedIterator;
66   med_int SpaceDimension;
67   med_int MeshDimension;
68   char *Name;
69   char *Description;
70   med_axis_type AxisType;
71   vtkStringArray *AxisName;
72   vtkStringArray *AxisUnit;
73
74   vtkMedFile* ParentFile;
75
76 private:
77   vtkMedSupportMesh(const vtkMedSupportMesh&); // Not implemented.
78   void operator=(const vtkMedSupportMesh&); // Not implemented.
79
80 };
81
82 #endif //__vtkMedSupportMesh_h_