Version: 6.3.1

src/VISU_I/VISU_DeformedShape_i.hh

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  VISU OBJECT : interactive object for VISU entities implementation
00024 //  File   : VISU_PrsObject_i.hxx
00025 //  Author : Alexey PETROV
00026 //  Module : VISU
00027 //
00028 #ifndef VISU_DeformedShape_i_HeaderFile
00029 #define VISU_DeformedShape_i_HeaderFile
00030 
00031 #include "VISU_I.hxx"
00032 #include "VISU_MonoColorPrs_i.hh"
00033 
00034 class VISU_DeformedShapePL;
00035 
00036 namespace VISU
00037 {
00038   //----------------------------------------------------------------------------
00039   class VISU_I_EXPORT DeformedShape_i : public virtual POA_VISU::DeformedShape,
00040                          public virtual MonoColorPrs_i
00041   {
00042     static int myNbPresent;
00043     DeformedShape_i(const DeformedShape_i&);
00044 
00045   public:
00046     //----------------------------------------------------------------------------
00047     typedef MonoColorPrs_i TSuperClass;
00048     typedef VISU::DeformedShape TInterface;
00049 
00050     explicit
00051     DeformedShape_i(EPublishInStudyMode thePublishInStudyModep);
00052 
00053     virtual 
00054     void 
00055     SameAs(const Prs3d_i* theOrigin);
00056 
00057     virtual 
00058     ~DeformedShape_i();
00059 
00060     virtual 
00061     VISU::VISUType 
00062     GetType() 
00063     { 
00064       return VISU::TDEFORMEDSHAPE;
00065     }
00066 
00067     virtual
00068     void 
00069     SetScale(CORBA::Double theScale);
00070 
00071     virtual
00072     CORBA::Double 
00073     GetScale();
00074 
00075     VISU_DeformedShapePL* 
00076     GetSpecificPL() const
00077     { 
00078       return myDeformedShapePL; 
00079     }
00080     
00081   protected:
00083     virtual 
00084     void
00085     CreatePipeLine(VISU_PipeLine* thePipeLine);
00086 
00088     virtual 
00089     bool 
00090     CheckIsPossible();
00091 
00092     VISU_DeformedShapePL *myDeformedShapePL;
00093 
00094   public:
00095     static
00096     size_t
00097     IsPossible(Result_i* theResult, 
00098             const std::string& theMeshName, 
00099             VISU::Entity theEntity,
00100             const std::string& theFieldName, 
00101             CORBA::Long theTimeStampNumber,
00102             bool theIsMemoryCheck);
00103 
00104     virtual 
00105     Storable* 
00106     Create(const std::string& theMeshName, 
00107         VISU::Entity theEntity,
00108         const std::string& theFieldName, 
00109         CORBA::Long theTimeStampNumber);
00110 
00111     static const std::string myComment;
00112 
00113     virtual 
00114     const char* 
00115     GetComment() const;
00116 
00117     virtual
00118     QString 
00119     GenerateName();
00120 
00121     virtual
00122     const char* 
00123     GetIconName();
00124 
00125     virtual
00126     void
00127     ToStream(std::ostringstream& theStr);
00128 
00129     virtual
00130     Storable* 
00131     Restore(SALOMEDS::SObject_ptr theSObject,
00132          const Storable::TRestoringMap& theMap);
00133 
00134     virtual
00135     void
00136     SetMapScale(double theMapScale = 1.0);
00137 
00138     virtual 
00139     VISU_Actor* 
00140     CreateActor(bool toSupressShrinking);
00141 
00142   };
00143 }
00144 
00145 #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