Back to index

salome-paravis  6.5.0
vtkMedSupportMesh.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 __vtkMedSupportMesh_h_
00021 #define __vtkMedSupportMesh_h_
00022 
00023 #include "vtkObject.h"
00024 #include "vtkMed.h"
00025 #include "vtkMedSetGet.h"
00026 
00027 class vtkStringArray;
00028 class vtkMedFile;
00029 
00030 class VTK_EXPORT vtkMedSupportMesh : public vtkObject
00031 {
00032 public :
00033   static vtkMedSupportMesh* New();
00034   vtkTypeRevisionMacro(vtkMedSupportMesh, vtkObject)
00035   void PrintSelf(ostream& os, vtkIndent indent);
00036 
00037   // Description:
00038   // The iterator to identify this struct element model in the med file
00039   vtkSetMacro(MedIterator, med_int);
00040   vtkGetMacro(MedIterator, med_int);
00041 
00042   // Description:
00043   // This is the name of this structural element model
00044   vtkSetStringMacro(Name);
00045   vtkGetStringMacro(Name);
00046 
00047   // Description:
00048   // This is the dsecription of this structural element model
00049   vtkSetStringMacro(Description);
00050   vtkGetStringMacro(Description);
00051 
00052   // Description:
00053   // The dimension of this support mesh lives in
00054   vtkSetMacro(SpaceDimension, med_int);
00055   vtkGetMacro(SpaceDimension, med_int);
00056 
00057   // Description:
00058   // The dimension of this support mesh model
00059   vtkSetMacro(MeshDimension, med_int);
00060   vtkGetMacro(MeshDimension, med_int);;
00061 
00062   // Description:
00063   // The dimension of this support mesh model
00064   vtkSetMacro(AxisType, med_axis_type);
00065   vtkGetMacro(AxisType, med_axis_type);;
00066 
00067   // Description:
00068   // The file this support mesh is stored in.
00069   virtual void SetParentFile(vtkMedFile*);
00070   vtkGetObjectMacro(ParentFile, vtkMedFile);
00071 
00072   // Dsecription:
00073   // This array stores the units of the axis
00074   vtkGetObjectMacro(AxisName, vtkStringArray);
00075 
00076   // Description:
00077   // This array store the units of thi support mesh for each axis
00078   vtkGetObjectMacro(AxisUnit, vtkStringArray);
00079 
00080 protected:
00081   vtkMedSupportMesh();
00082   virtual ~vtkMedSupportMesh();
00083 
00084   med_int MedIterator;
00085   med_int SpaceDimension;
00086   med_int MeshDimension;
00087   char *Name;
00088   char *Description;
00089   med_axis_type AxisType;
00090   vtkStringArray *AxisName;
00091   vtkStringArray *AxisUnit;
00092 
00093   vtkMedFile* ParentFile;
00094 
00095 private:
00096   vtkMedSupportMesh(const vtkMedSupportMesh&); // Not implemented.
00097   void operator=(const vtkMedSupportMesh&); // Not implemented.
00098 
00099 };
00100 
00101 #endif //__vtkMedSupportMesh_h_