1 // Copyright (C) 2010-2011 CEA/DEN, EDF R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef __vtkMedFieldOverEntity_h_
21 #define __vtkMedFieldOverEntity_h_
23 #include "vtkObject.h"
26 #include "vtkMedSetGet.h"
27 #include "vtkMedUtilities.h"
29 class vtkMedFieldOnProfile;
30 class vtkMedFieldStep;
32 class VTK_EXPORT vtkMedFieldOverEntity: public vtkObject
35 static vtkMedFieldOverEntity* New();
36 vtkTypeMacro(vtkMedFieldOverEntity, vtkObject)
37 void PrintSelf(ostream& os, vtkIndent indent);
40 // the support of the cells : one of
41 void SetEntity(const vtkMedEntity& entity){this->Entity = entity;}
42 const vtkMedEntity& GetEntity(){return this->Entity;}
45 // This is the vtkMedFieldStep that owns this vtkMedFieldOverEntity
46 virtual void SetParentStep(vtkMedFieldStep*);
47 vtkGetObjectMacro(ParentStep, vtkMedFieldStep);
50 // This array store for each profile the field over this profile
51 vtkGetObjectVectorMacro(FieldOnProfile, vtkMedFieldOnProfile);
52 vtkSetObjectVectorMacro(FieldOnProfile, vtkMedFieldOnProfile);
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);
63 vtkMedFieldOverEntity();
64 virtual ~vtkMedFieldOverEntity();
66 vtkMedFieldStep* ParentStep;
73 vtkObjectVector<vtkMedFieldOnProfile>* FieldOnProfile;
77 vtkMedFieldOverEntity(const vtkMedFieldOverEntity&); // Not implemented.
78 void operator=(const vtkMedFieldOverEntity&); // Not implemented.
81 #endif //__vtkMedFieldOverEntity_h_