Back to index

salome-paravis  6.5.0
vtkMedConstantAttribute.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 __vtkMedConstantAttribute_h_
00021 #define __vtkMedConstantAttribute_h_
00022 
00023 #include "vtkObject.h"
00024 #include "vtkMed.h"
00025 
00026 class vtkAbstractArray;
00027 class vtkMedStructElement;
00028 class vtkMedProfile;
00029 
00030 class VTK_EXPORT vtkMedConstantAttribute : public vtkObject
00031 {
00032 public :
00033   static vtkMedConstantAttribute* New();
00034   vtkTypeRevisionMacro(vtkMedConstantAttribute, vtkObject)
00035   void PrintSelf(ostream& os, vtkIndent indent);
00036 
00037   // Description:
00038   // This is the name of this attribute
00039   vtkSetStringMacro(Name);
00040   vtkGetStringMacro(Name);
00041 
00042   // Description:
00043   // The iterator in the med file of this constant attribute
00044   vtkSetMacro(MedIterator, med_int);
00045   vtkGetMacro(MedIterator, med_int);
00046 
00047   // Description:
00048   // The Geometry type this structural elements lies on.
00049   vtkSetMacro(AttributeType, med_attribute_type);
00050   vtkGetMacro(AttributeType, med_attribute_type);
00051 
00052   // Description:
00053   // The dimension of this structural elements model
00054   vtkSetMacro(NumberOfComponent, med_int);
00055   vtkGetMacro(NumberOfComponent, med_int);
00056 
00057   // Description:
00058   // MED_CELL if the support mesh has any cell, MED_NODE otherwise
00059   vtkSetMacro(SupportEntityType, med_entity_type);
00060   vtkGetMacro(SupportEntityType, med_entity_type);
00061 
00062   // Description:
00063   // The name of the profile if any, MED_NO_PROFILE by default
00064   vtkSetStringMacro(ProfileName);
00065   vtkGetStringMacro(ProfileName);
00066 
00067   // Description:
00068   // The Size of the profile if any
00069   vtkSetMacro(ProfileSize, med_int);
00070   vtkGetMacro(ProfileSize, med_int);
00071 
00072   // Description:
00073   // This store the values of this attribute
00074   virtual void  SetValues(vtkAbstractArray*);
00075   vtkGetObjectMacro(Values, vtkAbstractArray);
00076 
00077   // Description:
00078   // This is the pointer to the actual profile used by this attribute
00079   virtual void  SetProfile(vtkMedProfile*);
00080   vtkGetObjectMacro(Profile, vtkMedProfile);
00081 
00082   // Description:
00083   // The Structural element on which lies this attribute
00084   virtual void  SetParentStructElement(vtkMedStructElement*);
00085   vtkGetObjectMacro(ParentStructElement, vtkMedStructElement);
00086 
00087 protected:
00088   vtkMedConstantAttribute();
00089   virtual ~vtkMedConstantAttribute();
00090 
00091   char *Name;
00092   med_int MedIterator;
00093   med_attribute_type AttributeType;
00094   med_int NumberOfComponent;
00095   med_entity_type SupportEntityType;
00096   char* ProfileName;
00097   med_int ProfileSize;
00098   vtkAbstractArray* Values;
00099   vtkMedProfile* Profile;
00100 
00101   vtkMedStructElement * ParentStructElement;
00102 
00103 private:
00104   vtkMedConstantAttribute(const vtkMedConstantAttribute&); // Not implemented.
00105   void operator=(const vtkMedConstantAttribute&); // Not implemented.
00106 
00107 };
00108 
00109 #endif //__vtkMedConstantAttribute_h_