Version: 6.3.1

src/VISU_I/VISU_CutPlanes_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_CutPlanes_i_HeaderFile
00029 #define VISU_CutPlanes_i_HeaderFile
00030 
00031 #include "VISU_ScalarMap_i.hh"
00032 #include "VISU_OptionalDeformation_i.hh"
00033 
00034 class VISU_CutPlanesPL;
00035 
00036 namespace VISU
00037 {
00038   //----------------------------------------------------------------------------
00039   class VISU_I_EXPORT CutPlanes_i : public virtual POA_VISU::CutPlanes,
00040                         public virtual ScalarMap_i,
00041                         public virtual OptionalDeformation_i
00042   {
00043     static int myNbPresent;
00044     CutPlanes_i(const CutPlanes_i&);
00045 
00046   public:
00047     //----------------------------------------------------------------------------
00048     typedef ScalarMap_i TSuperClass;
00049     typedef VISU::CutPlanes TInterface;
00050 
00051     explicit
00052     CutPlanes_i(EPublishInStudyMode thePublishInStudyModep);
00053 
00054     virtual
00055     ~CutPlanes_i();
00056 
00057     virtual
00058     VISU::VISUType 
00059     GetType() 
00060     { 
00061       return VISU::TCUTPLANES;
00062     }
00063 
00064     virtual
00065     void
00066     SetOrientation(VISU::CutPlanes::Orientation theOrient,
00067              CORBA::Double theXAngle, 
00068              CORBA::Double theYAngle);
00069 
00070     virtual 
00071     VISU::CutPlanes::Orientation 
00072     GetOrientationType();
00073 
00074     virtual
00075     CORBA::Double
00076     GetRotateX();
00077 
00078     virtual
00079     CORBA::Double
00080     GetRotateY();
00081 
00082     virtual
00083     void
00084     SetDisplacement(CORBA::Double theDisp);
00085 
00086     virtual
00087     CORBA::Double
00088     GetDisplacement();
00089 
00090     virtual
00091     void
00092     SetPlanePosition(CORBA::Long thePlaneNumber, 
00093                CORBA::Double thePlanePosition);
00094     virtual 
00095     CORBA::Double 
00096     GetPlanePosition(CORBA::Long thePlaneNumber);
00097 
00098     virtual
00099     void
00100     SetDefault(CORBA::Long thePlaneNumber);
00101 
00102     virtual
00103     CORBA::Boolean 
00104     IsDefault(CORBA::Long thePlaneNumber);
00105 
00106     virtual
00107     void
00108     SetNbPlanes(CORBA::Long theNb);
00109 
00110     virtual
00111     CORBA::Long
00112     GetNbPlanes();
00113 
00114     VISU_CutPlanesPL* 
00115     GetSpecificPL() const
00116     { 
00117       return myCutPlanesPL; 
00118     }
00119     
00120   protected:
00122     virtual
00123     void
00124     CreatePipeLine(VISU_PipeLine* thePipeLine);
00125 
00127     virtual 
00128     bool 
00129     CheckIsPossible();
00130 
00131     VISU_CutPlanesPL *myCutPlanesPL;
00132 
00133   public:
00135     static
00136     size_t
00137     IsPossible(Result_i* theResult, 
00138             const std::string& theMeshName, 
00139             VISU::Entity theEntity,
00140             const std::string& theFieldName, 
00141             CORBA::Long theTimeStampNumber,
00142             bool theIsMemoryCheck);
00143 
00145     virtual 
00146     Storable* 
00147     Create(const std::string& theMeshName, 
00148         VISU::Entity theEntity,
00149         const std::string& theFieldName, 
00150         CORBA::Long theTimeStampNumber);
00151 
00153     virtual
00154     void
00155     ToStream(std::ostringstream& theStr);
00156 
00158     virtual
00159     Storable* 
00160     Restore(SALOMEDS::SObject_ptr theSObject,
00161          const Storable::TRestoringMap& theMap);
00162 
00163     virtual 
00164     void
00165     SameAs(const Prs3d_i* theOrigin);
00166 
00168     virtual 
00169     VISU_Actor* 
00170     CreateActor();
00171 
00172     static const std::string myComment;
00173 
00175     virtual 
00176     const char* 
00177     GetComment() const;
00178 
00180     virtual
00181     QString
00182     GenerateName();
00183 
00184     virtual
00185     const char* 
00186     GetIconName();
00187   };
00188 }
00189 
00190 #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