Version: 6.3.1

src/VISU_I/VISU_Deformation_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_Deformation_i_HeaderFile
00025 #define VISU_Deformation_i_HeaderFile
00026 
00027 #include "VISU_I.hxx"
00028 #include "VISU_ColoredPrs3d_i.hh"
00029 #include "VISU_DeformationPL.hxx"
00030 
00031 
00032 
00033 namespace VISU{
00034 
00035   class VISU_I_EXPORT Deformation_i : public virtual POA_VISU::Deformation
00036   {
00037     Deformation_i(const Deformation_i&);
00038   public:
00039     typedef VISU::Deformation TInterface;
00040 
00041     Deformation_i(VISU::ColoredPrs3d_i* theColoredPrs3d);
00042     virtual ~Deformation_i();
00043 
00044     virtual 
00045     void
00046     SetScale(CORBA::Double theScale);
00047 
00048     virtual
00049     CORBA::Double 
00050     GetScale();
00051 
00052     virtual
00053     void
00054     DeformationToStream(std::ostringstream& theStr);
00055 
00056     virtual
00057     void
00058     RestoreDeformation(SALOMEDS::SObject_ptr theSObject,
00059          const Storable::TRestoringMap& theMap);
00060 
00061     virtual 
00062     void 
00063     SameAsDeformation(const Deformation_i *aDeformedPrs);
00064 
00065     virtual
00066     VISU::Entity
00067     GetVectorialFieldEntity();
00068 
00069     virtual
00070     char* 
00071     GetVectorialFieldName();
00072 
00073     virtual void SetVectorialField(Entity theEntity, const char* theFieldName);
00074 
00075   protected:
00076     virtual
00077     void
00078     InitDeformedPipeLine(VISU_DeformationPL* theDeformedPipeLine);
00079 
00080     VISU_DeformationPL*
00081     GetSpecificDeformedPL() const
00082     { 
00083       return myDeformationPL; 
00084     }
00085 
00086     ColoredPrs3d_i* GetColoredPrs3d(){
00087       return myColoredPrs3d;
00088     }
00089     
00090     
00091   private:
00092     VISU_DeformationPL *myDeformationPL;
00093 
00094     PField myVectorialField;
00095     VISU::Entity myVectorialEntity;
00096     std::string myVectorialFieldName;
00097     ColoredPrs3d_i *myColoredPrs3d;
00098     
00099   };
00100 }
00101 
00102 #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