Salome HOME
85dcf3ae1d1c01665e894edcecc09c738f13bb4d
[modules/visu.git] / src / VISU_I / VISU_Deformation_i.hh
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //  File   : VISU_Deformation_i.hxx
23 //  Author : 
24 //  Module : VISU
25 //
26 #ifndef VISU_Deformation_i_HeaderFile
27 #define VISU_Deformation_i_HeaderFile
28
29 #include "VISU_I.hxx"
30 #include "VISU_ColoredPrs3d_i.hh"
31 #include "VISU_DeformationPL.hxx"
32
33
34
35 namespace VISU{
36
37   class VISU_I_EXPORT Deformation_i : public virtual POA_VISU::Deformation
38   {
39     Deformation_i(const Deformation_i&);
40   public:
41     typedef VISU::Deformation TInterface;
42
43     Deformation_i(VISU::ColoredPrs3d_i* theColoredPrs3d);
44     virtual ~Deformation_i();
45
46     virtual 
47     void
48     SetScale(CORBA::Double theScale);
49
50     virtual
51     CORBA::Double 
52     GetScale();
53
54     virtual
55     void
56     DeformationToStream(std::ostringstream& theStr);
57
58     virtual
59     void
60     RestoreDeformation(SALOMEDS::SObject_ptr theSObject,
61             const Storable::TRestoringMap& theMap);
62
63     virtual 
64     void 
65     SameAsDeformation(const Deformation_i *aDeformedPrs);
66
67     virtual
68     VISU::Entity
69     GetVectorialFieldEntity();
70
71     virtual
72     char* 
73     GetVectorialFieldName();
74
75     virtual void SetVectorialField(Entity theEntity, const char* theFieldName);
76
77   protected:
78     virtual
79     void
80     InitDeformedPipeLine(VISU_DeformationPL* theDeformedPipeLine);
81
82     VISU_DeformationPL*
83     GetSpecificDeformedPL() const
84     { 
85       return myDeformationPL; 
86     }
87
88     ColoredPrs3d_i* GetColoredPrs3d(){
89       return myColoredPrs3d;
90     }
91     
92     
93   private:
94     VISU_DeformationPL *myDeformationPL;
95
96     PField myVectorialField;
97     VISU::Entity myVectorialEntity;
98     std::string myVectorialFieldName;
99     ColoredPrs3d_i *myColoredPrs3d;
100     
101   };
102 }
103
104 #endif