Salome HOME
Merge from BR_PORTING_VTK6 01/03/2013
[modules/paravis.git] / src / Plugins / MedReader / IO / vtkMedVariableAttribute.h
1 #ifndef __vtkMedVariableAttribute_h_
2 #define __vtkMedVariableAttribute_h_
3
4 #include "vtkObject.h"
5 #include "vtkMed.h"
6 #include "vtkMedSetGet.h"
7
8 class vtkAbstractArray;
9 class vtkMedStructElement;
10 class vtkMedEntityArray;
11
12 class VTK_EXPORT vtkMedVariableAttribute : public vtkObject
13 {
14 public :
15   static vtkMedVariableAttribute* New();
16   vtkTypeMacro(vtkMedVariableAttribute, vtkObject)
17   void PrintSelf(ostream& os, vtkIndent indent);
18
19   // Description:
20   // This is the name of this attribute
21   vtkSetStringMacro(Name);
22   vtkGetStringMacro(Name);
23
24   // Description:
25   // The iterator in the med file of this constant attribute
26   vtkSetMacro(MedIterator, med_int);
27   vtkGetMacro(MedIterator, med_int);
28
29   // Description:
30   // The Geometry type this structural elements lies on.
31   vtkSetMacro(AttributeType, med_attribute_type);
32   vtkGetMacro(AttributeType, med_attribute_type);
33
34   // Description:
35   // The dimension of this structural elements model
36   vtkSetMacro(NumberOfComponent, med_int);
37   vtkGetMacro(NumberOfComponent, med_int);
38
39   // Description:
40   // The Structural element on which lies this attribute
41   virtual void  SetParentStructElement(vtkMedStructElement*);
42   vtkGetObjectMacro(ParentStructElement, vtkMedStructElement);
43
44   // Description:
45   // Load the values associated with this attribute for the given entity array;
46   void  Load(vtkMedEntityArray*);
47
48 protected:
49   vtkMedVariableAttribute();
50   virtual ~vtkMedVariableAttribute();
51
52   char *Name;
53   med_int MedIterator;
54   med_attribute_type AttributeType;
55   med_int NumberOfComponent;
56
57   vtkMedStructElement* ParentStructElement;
58
59 private:
60   vtkMedVariableAttribute(const vtkMedVariableAttribute&); // Not implemented.
61   void operator=(const vtkMedVariableAttribute&); // Not implemented.
62 };
63
64 #endif //__vtkMedVariableAttribute_h_