Version: 6.3.1

src/VISU_I/VISU_IsoSurfaces_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_IsoSurfaces_i_HeaderFile
00029 #define VISU_IsoSurfaces_i_HeaderFile
00030 
00031 #include "VISU_I.hxx"
00032 //#include "VISU_ScalarMap_i.hh"
00033 #include "VISU_MonoColorPrs_i.hh"
00034 
00035 class VISU_IsoSurfacesPL;
00036 
00037 namespace VISU
00038 {
00039   //----------------------------------------------------------------------------
00040   class VISU_I_EXPORT IsoSurfaces_i : public virtual POA_VISU::IsoSurfaces,
00041                           public virtual MonoColorPrs_i
00042   {
00043     static int myNbPresent;
00044     IsoSurfaces_i(const IsoSurfaces_i&);
00045 
00046   public:
00047     //----------------------------------------------------------------------------
00048     typedef MonoColorPrs_i TSuperClass;
00049     typedef VISU::IsoSurfaces TInterface;
00050 
00051     explicit
00052     IsoSurfaces_i(EPublishInStudyMode thePublishInStudyModep);
00053 
00054     virtual void SameAs(const Prs3d_i* theOrigin);
00055 
00056     virtual 
00057     ~IsoSurfaces_i();
00058 
00059     virtual
00060     VISU::VISUType 
00061     GetType() 
00062     { 
00063       return VISU::TISOSURFACES;
00064     }
00065 
00066     virtual
00067     void
00068     SetNbSurfaces(CORBA::Long theNb);
00069 
00070     virtual
00071     CORBA::Long 
00072     GetNbSurfaces();
00073 
00074     virtual 
00075     void
00076     SetSubRange(CORBA::Double theMin, CORBA::Double theMax);
00077 
00078     virtual
00079     CORBA::Double 
00080     GetSubMin();
00081 
00082     virtual
00083     CORBA::Double 
00084     GetSubMax();
00085 
00086     virtual
00087     void
00088     SetSubRangeFixed(CORBA::Boolean theIsFixed);
00089 
00090     virtual
00091     CORBA::Boolean
00092     IsSubRangeFixed();
00093 
00094     VISU_IsoSurfacesPL* 
00095     GetSpecificPL() const
00096     { 
00097       return myIsoSurfacesPL; 
00098     }
00099 
00100 
00101     virtual CORBA::Boolean IsLabeled();
00102     virtual void ShowLabels(CORBA::Boolean theShow, CORBA::Long theNb);
00103 
00104     virtual CORBA::Long GetNbLabels();
00105     
00106 
00107   protected:
00109     virtual 
00110     void 
00111     CreatePipeLine(VISU_PipeLine* thePipeLine);
00112 
00114     virtual 
00115     void
00116     DoSetInput(bool theIsInitilizePipe, bool theReInit);
00117 
00119     virtual 
00120     bool 
00121     CheckIsPossible();
00122 
00123     VISU_IsoSurfacesPL* myIsoSurfacesPL;
00124 
00125     bool myIsLabeled;
00126     CORBA::Long myNbLabels;
00127 
00128   public:
00129     static
00130     size_t
00131     IsPossible(Result_i* theResult, 
00132             const std::string& theMeshName, 
00133             VISU::Entity theEntity,
00134             const std::string& theFieldName, 
00135             CORBA::Long theTimeStampNumber,
00136             bool theIsMemoryCheck);
00137 
00138     virtual
00139     Storable* 
00140     Create(const std::string& theMeshName, 
00141         VISU::Entity theEntity,
00142         const std::string& theFieldName, 
00143         CORBA::Long theTimeStampNumber);
00144 
00145     static const std::string myComment;
00146 
00147     virtual 
00148     const char* 
00149     GetComment() const;
00150 
00151     virtual
00152     QString
00153     GenerateName();
00154 
00155     virtual
00156     const char* 
00157     GetIconName();
00158 
00159     virtual
00160     void
00161     ToStream(std::ostringstream& theStr);
00162 
00163     virtual
00164     Storable* 
00165     Restore(SALOMEDS::SObject_ptr theSObject,
00166          const Storable::TRestoringMap& theMap);
00167 
00168     virtual 
00169     VISU_Actor* 
00170     CreateActor();
00171     
00172     virtual 
00173     void 
00174     SetMapScale(double theMapScale = 1.0);
00175 
00176     virtual void UpdateActor(VISU_ActorBase* theActor);
00177     
00178   };
00179 }
00180 
00181 #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