Back to index

salome-paravis  6.5.0
vtkMedFamily.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 __vtkMedFamily_h_
00021 #define __vtkMedFamily_h_
00022 
00023 #include "vtkObject.h"
00024 #include "vtkMedSetGet.h"
00025 #include "vtkMed.h"
00026 
00027 class vtkMedMesh;
00028 class vtkMedGroup;
00029 class vtkMedString;
00030 
00031 class VTK_EXPORT vtkMedFamily: public vtkObject
00032 {
00033 public:
00034   static vtkMedFamily* New();
00035   vtkTypeRevisionMacro(vtkMedFamily, vtkObject);
00036   void PrintSelf(ostream& os, vtkIndent indent);
00037 
00038   // Description:
00039   // Set the name of this family.
00040   vtkSetStringMacro(Name);
00041   vtkGetStringMacro(Name);
00042 
00043   // Description:
00044   // The id of this family.
00045   vtkGetMacro(Id, med_int);
00046   vtkSetMacro(Id, med_int);
00047 
00048   // Description:
00049   // Each family can be part of one or several groups.
00050   // This give access to the group names.
00051   vtkGetObjectVectorMacro(Group, vtkMedGroup);
00052   vtkSetObjectVectorMacro(Group, vtkMedGroup);
00053 
00054   // Description:
00055   // returns id this is a node or a cell centered family.
00056   vtkSetMacro(PointOrCell, int);
00057   vtkGetMacro(PointOrCell, int);
00058 
00059   // Description:
00060   // the index of this field in the med file.
00061   vtkSetMacro(MedIterator, med_int);
00062   vtkGetMacro(MedIterator, med_int);
00063 
00064 protected:
00065   vtkMedFamily();
00066   virtual ~vtkMedFamily();
00067 
00068   med_int Id;
00069   med_int MedIterator;
00070   char* Name;
00071   int PointOrCell;
00072 
00073   //BTX
00074   vtkObjectVector<vtkMedGroup>* Group;
00075   //ETX
00076 
00077 private:
00078   vtkMedFamily(const vtkMedFamily&); // Not implemented.
00079   void operator=(const vtkMedFamily&); // Not implemented.
00080 
00081 };
00082 
00083 #endif //__vtkMedFamily_h_