1 #ifndef __vtkMedConstantAttribute_h_
2 #define __vtkMedConstantAttribute_h_
7 class vtkAbstractArray;
8 class vtkMedStructElement;
11 class VTK_EXPORT vtkMedConstantAttribute : public vtkObject
14 static vtkMedConstantAttribute* New();
15 vtkTypeMacro(vtkMedConstantAttribute, vtkObject)
16 void PrintSelf(ostream& os, vtkIndent indent);
19 // This is the name of this attribute
20 vtkSetStringMacro(Name);
21 vtkGetStringMacro(Name);
24 // The iterator in the med file of this constant attribute
25 vtkSetMacro(MedIterator, med_int);
26 vtkGetMacro(MedIterator, med_int);
29 // The Geometry type this structural elements lies on.
30 vtkSetMacro(AttributeType, med_attribute_type);
31 vtkGetMacro(AttributeType, med_attribute_type);
34 // The dimension of this structural elements model
35 vtkSetMacro(NumberOfComponent, med_int);
36 vtkGetMacro(NumberOfComponent, med_int);
39 // MED_CELL if the support mesh has any cell, MED_NODE otherwise
40 vtkSetMacro(SupportEntityType, med_entity_type);
41 vtkGetMacro(SupportEntityType, med_entity_type);
44 // The name of the profile if any, MED_NO_PROFILE by default
45 vtkSetStringMacro(ProfileName);
46 vtkGetStringMacro(ProfileName);
49 // The Size of the profile if any
50 vtkSetMacro(ProfileSize, med_int);
51 vtkGetMacro(ProfileSize, med_int);
54 // This store the values of this attribute
55 virtual void SetValues(vtkAbstractArray*);
56 vtkGetObjectMacro(Values, vtkAbstractArray);
59 // This is the pointer to the actual profile used by this attribute
60 virtual void SetProfile(vtkMedProfile*);
61 vtkGetObjectMacro(Profile, vtkMedProfile);
64 // The Structural element on which lies this attribute
65 virtual void SetParentStructElement(vtkMedStructElement*);
66 vtkGetObjectMacro(ParentStructElement, vtkMedStructElement);
69 vtkMedConstantAttribute();
70 virtual ~vtkMedConstantAttribute();
74 med_attribute_type AttributeType;
75 med_int NumberOfComponent;
76 med_entity_type SupportEntityType;
79 vtkAbstractArray* Values;
80 vtkMedProfile* Profile;
82 vtkMedStructElement * ParentStructElement;
85 vtkMedConstantAttribute(const vtkMedConstantAttribute&); // Not implemented.
86 void operator=(const vtkMedConstantAttribute&); // Not implemented.
90 #endif //__vtkMedConstantAttribute_h_