]> SALOME platform Git repositories - modules/visu.git/blob - src/VISU_I/VISU_OptionalDeformation_i.hh
Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/visu.git] / src / VISU_I / VISU_OptionalDeformation_i.hh
1 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
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 //  File   : VISU_Deformation_i.hxx
21 //  Author : 
22 //  Module : VISU
23 //
24 #ifndef VISU_OptionalDeformation_i_HeaderFile
25 #define VISU_OptionalDeformation_i_HeaderFile
26
27 #include "VISU_I.hxx"
28 #include "VISU_Deformation_i.hh"
29 #include "VISU_OptionalDeformationPL.hxx"
30
31 namespace VISU {
32   class VISU_I_EXPORT OptionalDeformation_i : public virtual POA_VISU::OptionalDeformation,
33                                               public virtual Deformation_i
34   {
35     OptionalDeformation_i(const OptionalDeformation_i&);
36   public:
37     typedef VISU::OptionalDeformation TInterface;
38     typedef Deformation_i TSuperClass;
39
40     OptionalDeformation_i(VISU::ColoredPrs3d_i* theModifiedEngine);
41     virtual ~OptionalDeformation_i();
42     
43     virtual void UseDeformation(CORBA::Boolean theFlag);
44     virtual CORBA::Boolean IsDeformed();
45
46
47     virtual
48     void
49     DeformationToStream(std::ostringstream& theStr);
50
51     virtual
52     void
53     RestoreDeformation(SALOMEDS::SObject_ptr theSObject,
54             const Storable::TRestoringMap& theMap);
55
56     virtual 
57     void 
58     SameAsDeformation(const Deformation_i *aDeformedPrs);
59
60   protected:
61     virtual
62     void InitDeformedPipeLine(VISU_DeformationPL* theDeformedPipeLine);
63
64     VISU_OptionalDeformationPL*
65     GetSpecificDeformedPL() const
66     { 
67       return myOptionalDeformationPL;
68     }
69     
70   private:
71     VISU_OptionalDeformationPL* myOptionalDeformationPL;
72     
73   };
74 }
75 #endif