Version: 6.3.1

src/VISU_I/VISU_CutLines_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_CutLines_i_HeaderFile
00029 #define VISU_CutLines_i_HeaderFile
00030 
00031 #include "VISU_I.hxx"
00032 #include "VISU_CutLinesBase_i.hh"
00033 
00034 class VISU_CutLinesPL;
00035 
00036 namespace VISU
00037 {
00038   //----------------------------------------------------------------------------
00039   class VISU_I_EXPORT CutLines_i : public virtual POA_VISU::CutLines,
00040                                    public virtual CutLinesBase_i
00041   {
00042     static int myNbPresent;
00043     CutLines_i(const CutLines_i&);
00044 
00045   public:
00046     //----------------------------------------------------------------------------
00047     typedef CutLinesBase_i TSuperClass;
00048     typedef VISU::CutLines TInterface;
00049 
00050     explicit
00051     CutLines_i(EPublishInStudyMode thePublishInStudyModep);
00052 
00053     virtual
00054     ~CutLines_i();
00055 
00056     virtual
00057     VISU::VISUType
00058     GetType() 
00059     {
00060       return VISU::TCUTLINES;
00061     }
00062 
00063     virtual
00064     void
00065     SetOrientation(VISU::CutPlanes::Orientation theOrient,
00066              CORBA::Double theXAngle, 
00067              CORBA::Double theYAngle);
00068     
00069     virtual
00070     void
00071     SetOrientation2(VISU::CutPlanes::Orientation theOrient,
00072               CORBA::Double theXAngle, 
00073               CORBA::Double theYAngle);
00074 
00075     virtual 
00076     VISU::CutPlanes::Orientation 
00077     GetOrientationType();
00078 
00079     virtual
00080     VISU::CutPlanes::Orientation 
00081     GetOrientationType2();
00082 
00083     virtual 
00084     CORBA::Double 
00085     GetRotateX();
00086 
00087     virtual
00088     CORBA::Double 
00089     GetRotateY();
00090 
00091     virtual
00092     CORBA::Double 
00093     GetRotateX2();
00094 
00095     virtual 
00096     CORBA::Double 
00097     GetRotateY2();
00098 
00099     virtual
00100     void 
00101     SetDisplacement(CORBA::Double theDisp);
00102 
00103     virtual
00104     CORBA::Double 
00105     GetDisplacement();
00106 
00107     virtual
00108     void 
00109     SetDisplacement2(CORBA::Double theDisp);
00110 
00111     virtual
00112     CORBA::Double 
00113     GetDisplacement2();
00114 
00115     virtual
00116     void 
00117     SetBasePlanePosition(CORBA::Double thePlanePosition);
00118 
00119     virtual
00120     CORBA::Double 
00121     GetBasePlanePosition();
00122 
00123     virtual
00124     void 
00125     SetLinePosition(CORBA::Long thePlaneNumber, 
00126               CORBA::Double thePlanePosition);
00127 
00128     virtual
00129     CORBA::Double
00130     GetLinePosition(CORBA::Long thePlaneNumber);
00131 
00132     virtual
00133     void 
00134     SetDefault();
00135 
00136     virtual 
00137     CORBA::Boolean 
00138     IsDefault();
00139 
00140     virtual
00141     void 
00142     SetDefaultPosition(CORBA::Long thePlaneNumber);
00143 
00144     virtual
00145     CORBA::Boolean 
00146     IsDefaultPosition(CORBA::Long thePlaneNumber);
00147 
00148     VISU_CutLinesPL* 
00149     GetSpecificPL() const
00150     { 
00151       return myCutLinesPL; 
00152     }
00153     
00154   protected:
00156     virtual 
00157     void
00158     CreatePipeLine(VISU_PipeLine* thePipeLine);
00159 
00161     virtual 
00162     bool 
00163     CheckIsPossible();
00164 
00165     virtual 
00166     const char* 
00167     GetIconName();
00168 
00169     VISU_CutLinesPL *myCutLinesPL;
00170 
00171   public:
00173     static
00174     size_t
00175     IsPossible(Result_i* theResult, 
00176             const std::string& theMeshName, 
00177             VISU::Entity theEntity,
00178             const std::string& theFieldName, 
00179             CORBA::Long theTimeStampNumber,
00180             bool theIsMemoryCheck);
00181 
00183     virtual 
00184     Storable* 
00185     Create(const std::string& theMeshName, 
00186         VISU::Entity theEntity,
00187         const std::string& theFieldName, 
00188         CORBA::Long theTimeStampNumber);
00189 
00191     virtual 
00192     void
00193     ToStream(std::ostringstream& theStr);
00194 
00196     virtual
00197     Storable* 
00198     Restore(SALOMEDS::SObject_ptr theSObject,
00199          const Storable::TRestoringMap& theMap);
00200 
00201     virtual 
00202     void
00203     SameAs(const Prs3d_i* theOrigin);
00204 
00206     virtual 
00207     VISU_Actor* 
00208     CreateActor();
00209 
00210     static const std::string myComment;
00211 
00212     virtual
00213     const char* 
00214     GetComment() const;
00215 
00216     virtual
00217     QString 
00218     GenerateName();
00219   };
00220 }
00221 
00222 #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