]> SALOME platform Git repositories - modules/paravis.git/blob - src/Plugins/MedReader/IO/vtkMedVariableAttribute.cxx
Salome HOME
Merge from BR_PORTING_VTK6 01/03/2013
[modules/paravis.git] / src / Plugins / MedReader / IO / vtkMedVariableAttribute.cxx
1 #include "vtkMedVariableAttribute.h"
2
3 #include "vtkObjectFactory.h"
4 #include "vtkMedUtilities.h"
5 #include "vtkMedStructElement.h"
6 #include "vtkMedFile.h"
7 #include "vtkMedDriver.h"
8
9 #include <map>
10 #include <string>
11 #include <vector>
12 using namespace std;
13
14 // vtkCxxRevisionMacro(vtkMedVariableAttribute, "$Revision$")
15 vtkStandardNewMacro(vtkMedVariableAttribute);
16
17 vtkCxxSetObjectMacro(vtkMedVariableAttribute, ParentStructElement, vtkMedStructElement);
18
19 vtkMedVariableAttribute::vtkMedVariableAttribute()
20 {
21   this->Name = NULL;
22   this->AttributeType = MED_ATT_UNDEF;
23   this->NumberOfComponent = 0;
24   this->ParentStructElement = NULL;
25 }
26
27 vtkMedVariableAttribute::~vtkMedVariableAttribute()
28 {
29   this->SetName(NULL);
30   this->SetParentStructElement(NULL);
31 }
32
33 void  vtkMedVariableAttribute::Load(vtkMedEntityArray* array)
34 {
35   this->GetParentStructElement()->GetParentFile()->GetMedDriver()->LoadVariableAttribute(this, array);
36 }
37
38 void vtkMedVariableAttribute::PrintSelf(ostream& os, vtkIndent indent)
39 {
40   this->Superclass::PrintSelf(os, indent);
41 }