1 #include "vtkMedVariableAttribute.h"
3 #include "vtkObjectFactory.h"
4 #include "vtkMedUtilities.h"
5 #include "vtkMedStructElement.h"
6 #include "vtkMedFile.h"
7 #include "vtkMedDriver.h"
14 // vtkCxxRevisionMacro(vtkMedVariableAttribute, "$Revision$")
15 vtkStandardNewMacro(vtkMedVariableAttribute);
17 vtkCxxSetObjectMacro(vtkMedVariableAttribute, ParentStructElement, vtkMedStructElement);
19 vtkMedVariableAttribute::vtkMedVariableAttribute()
22 this->AttributeType = MED_ATT_UNDEF;
23 this->NumberOfComponent = 0;
24 this->ParentStructElement = NULL;
27 vtkMedVariableAttribute::~vtkMedVariableAttribute()
30 this->SetParentStructElement(NULL);
33 void vtkMedVariableAttribute::Load(vtkMedEntityArray* array)
35 this->GetParentStructElement()->GetParentFile()->GetMedDriver()->LoadVariableAttribute(this, array);
38 void vtkMedVariableAttribute::PrintSelf(ostream& os, vtkIndent indent)
40 this->Superclass::PrintSelf(os, indent);