1 #ifndef __vtkMedVariableAttribute_h_
2 #define __vtkMedVariableAttribute_h_
6 #include "vtkMedSetGet.h"
8 class vtkAbstractArray;
9 class vtkMedStructElement;
10 class vtkMedEntityArray;
12 class VTK_EXPORT vtkMedVariableAttribute : public vtkObject
15 static vtkMedVariableAttribute* New();
16 vtkTypeMacro(vtkMedVariableAttribute, vtkObject)
17 void PrintSelf(ostream& os, vtkIndent indent);
20 // This is the name of this attribute
21 vtkSetStringMacro(Name);
22 vtkGetStringMacro(Name);
25 // The iterator in the med file of this constant attribute
26 vtkSetMacro(MedIterator, med_int);
27 vtkGetMacro(MedIterator, med_int);
30 // The Geometry type this structural elements lies on.
31 vtkSetMacro(AttributeType, med_attribute_type);
32 vtkGetMacro(AttributeType, med_attribute_type);
35 // The dimension of this structural elements model
36 vtkSetMacro(NumberOfComponent, med_int);
37 vtkGetMacro(NumberOfComponent, med_int);
40 // The Structural element on which lies this attribute
41 virtual void SetParentStructElement(vtkMedStructElement*);
42 vtkGetObjectMacro(ParentStructElement, vtkMedStructElement);
45 // Load the values associated with this attribute for the given entity array;
46 void Load(vtkMedEntityArray*);
49 vtkMedVariableAttribute();
50 virtual ~vtkMedVariableAttribute();
54 med_attribute_type AttributeType;
55 med_int NumberOfComponent;
57 vtkMedStructElement* ParentStructElement;
60 vtkMedVariableAttribute(const vtkMedVariableAttribute&); // Not implemented.
61 void operator=(const vtkMedVariableAttribute&); // Not implemented.
64 #endif //__vtkMedVariableAttribute_h_