Back to index

salome-paravis  6.5.0
vtkMedVariableAttribute.h
Go to the documentation of this file.
00001 // Copyright (C) 2010-2012  CEA/DEN, EDF R&D
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 #ifndef __vtkMedVariableAttribute_h_
00021 #define __vtkMedVariableAttribute_h_
00022 
00023 #include "vtkObject.h"
00024 #include "vtkMed.h"
00025 #include "vtkMedSetGet.h"
00026 
00027 class vtkAbstractArray;
00028 class vtkMedStructElement;
00029 class vtkMedEntityArray;
00030 
00031 class VTK_EXPORT vtkMedVariableAttribute : public vtkObject
00032 {
00033 public :
00034   static vtkMedVariableAttribute* New();
00035   vtkTypeRevisionMacro(vtkMedVariableAttribute, vtkObject)
00036   void PrintSelf(ostream& os, vtkIndent indent);
00037 
00038   // Description:
00039   // This is the name of this attribute
00040   vtkSetStringMacro(Name);
00041   vtkGetStringMacro(Name);
00042 
00043   // Description:
00044   // The iterator in the med file of this constant attribute
00045   vtkSetMacro(MedIterator, med_int);
00046   vtkGetMacro(MedIterator, med_int);
00047 
00048   // Description:
00049   // The Geometry type this structural elements lies on.
00050   vtkSetMacro(AttributeType, med_attribute_type);
00051   vtkGetMacro(AttributeType, med_attribute_type);
00052 
00053   // Description:
00054   // The dimension of this structural elements model
00055   vtkSetMacro(NumberOfComponent, med_int);
00056   vtkGetMacro(NumberOfComponent, med_int);
00057 
00058   // Description:
00059   // The Structural element on which lies this attribute
00060   virtual void  SetParentStructElement(vtkMedStructElement*);
00061   vtkGetObjectMacro(ParentStructElement, vtkMedStructElement);
00062 
00063   // Description:
00064   // Load the values associated with this attribute for the given entity array;
00065   void  Load(vtkMedEntityArray*);
00066 
00067 protected:
00068   vtkMedVariableAttribute();
00069   virtual ~vtkMedVariableAttribute();
00070 
00071   char *Name;
00072   med_int MedIterator;
00073   med_attribute_type AttributeType;
00074   med_int NumberOfComponent;
00075 
00076   vtkMedStructElement* ParentStructElement;
00077 
00078 private:
00079   vtkMedVariableAttribute(const vtkMedVariableAttribute&); // Not implemented.
00080   void operator=(const vtkMedVariableAttribute&); // Not implemented.
00081 };
00082 
00083 #endif //__vtkMedVariableAttribute_h_