Salome HOME
Merge from V6_main (04/10/2012)
[modules/paravis.git] / src / Plugins / MedReader / IO / vtkMedFieldOverEntity.h
1 // Copyright (C) 2010-2012  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef __vtkMedFieldOverEntity_h_
21 #define __vtkMedFieldOverEntity_h_
22
23 #include "vtkObject.h"
24 #include "vtkMed.h"
25
26 #include "vtkMedSetGet.h"
27 #include "vtkMedUtilities.h"
28
29 class vtkMedFieldOnProfile;
30 class vtkMedFieldStep;
31
32 class VTK_EXPORT vtkMedFieldOverEntity: public vtkObject
33 {
34 public:
35   static vtkMedFieldOverEntity* New();
36   vtkTypeRevisionMacro(vtkMedFieldOverEntity, vtkObject)
37   void PrintSelf(ostream& os, vtkIndent indent);
38
39   // Description:
40   // the support of the cells : one of
41   void  SetEntity(const vtkMedEntity& entity){this->Entity = entity;}
42   const vtkMedEntity& GetEntity(){return this->Entity;}
43
44   // Description:
45   // This is the vtkMedFieldStep that owns this vtkMedFieldOverEntity
46   virtual void  SetParentStep(vtkMedFieldStep*);
47   vtkGetObjectMacro(ParentStep, vtkMedFieldStep);
48
49   // Description:
50   // This array store for each profile the field over this profile
51   vtkGetObjectVectorMacro(FieldOnProfile, vtkMedFieldOnProfile);
52   vtkSetObjectVectorMacro(FieldOnProfile, vtkMedFieldOnProfile);
53
54   // Description:
55   // This flag is set during the information pass, and tells if
56   // there is a profile of not.
57   // Note that if there is no profile, a dummy vtkMedFieldOnProfile
58   // is created to store the actual data.
59   vtkGetMacro(HasProfile, int);
60   vtkSetMacro(HasProfile, int);
61
62 protected:
63   vtkMedFieldOverEntity();
64   virtual ~vtkMedFieldOverEntity();
65
66   vtkMedFieldStep* ParentStep;
67
68   vtkMedEntity  Entity;
69
70   int HasProfile;
71
72   //BTX
73   vtkObjectVector<vtkMedFieldOnProfile>* FieldOnProfile;
74   //ETX
75
76 private:
77   vtkMedFieldOverEntity(const vtkMedFieldOverEntity&); // Not implemented.
78   void operator=(const vtkMedFieldOverEntity&); // Not implemented.
79 };
80
81 #endif //__vtkMedFieldOverEntity_h_