Version: 6.3.1

src/VISU_I/VISU_OptionalDeformation_i.hh

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
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 //  File   : VISU_Deformation_i.hxx
00021 //  Author : 
00022 //  Module : VISU
00023 //
00024 #ifndef VISU_OptionalDeformation_i_HeaderFile
00025 #define VISU_OptionalDeformation_i_HeaderFile
00026 
00027 #include "VISU_I.hxx"
00028 #include "VISU_Deformation_i.hh"
00029 #include "VISU_OptionalDeformationPL.hxx"
00030 
00031 namespace VISU {
00032   class VISU_I_EXPORT OptionalDeformation_i : public virtual POA_VISU::OptionalDeformation,
00033                                public virtual Deformation_i
00034   {
00035     OptionalDeformation_i(const OptionalDeformation_i&);
00036   public:
00037     typedef VISU::OptionalDeformation TInterface;
00038     typedef Deformation_i TSuperClass;
00039 
00040     OptionalDeformation_i(VISU::ColoredPrs3d_i* theModifiedEngine);
00041     virtual ~OptionalDeformation_i();
00042     
00043     virtual void UseDeformation(CORBA::Boolean theFlag);
00044     virtual CORBA::Boolean IsDeformed();
00045 
00046 
00047     virtual
00048     void
00049     DeformationToStream(std::ostringstream& theStr);
00050 
00051     virtual
00052     void
00053     RestoreDeformation(SALOMEDS::SObject_ptr theSObject,
00054          const Storable::TRestoringMap& theMap);
00055 
00056     virtual 
00057     void 
00058     SameAsDeformation(const Deformation_i *aDeformedPrs);
00059 
00060   protected:
00061     virtual
00062     void InitDeformedPipeLine(VISU_DeformationPL* theDeformedPipeLine);
00063 
00064     VISU_OptionalDeformationPL*
00065     GetSpecificDeformedPL() const
00066     { 
00067       return myOptionalDeformationPL;
00068     }
00069     
00070   private:
00071     VISU_OptionalDeformationPL* myOptionalDeformationPL;
00072     
00073   };
00074 }
00075 #endif
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS