Back to index

salome-geom  6.5.0
GEOMImpl_I3DPrimOperations.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  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 #ifndef _GEOMImpl_I3DPrimOperations_HXX_
00024 #define _GEOMImpl_I3DPrimOperations_HXX_
00025 
00026 #include "Utils_SALOME_Exception.hxx"
00027 #include "GEOM_IOperations.hxx"
00028 #include "GEOM_Engine.hxx"
00029 #include "GEOM_Object.hxx"
00030 #include <TDocStd_Document.hxx>
00031 #include <TColStd_HSequenceOfTransient.hxx>
00032 
00033 class GEOMImpl_I3DPrimOperations : public GEOM_IOperations {
00034  public:
00035   Standard_EXPORT GEOMImpl_I3DPrimOperations(GEOM_Engine* theEngine, int theDocID);
00036   Standard_EXPORT ~GEOMImpl_I3DPrimOperations();
00037 
00038   Standard_EXPORT Handle(GEOM_Object) MakeBoxDXDYDZ (double theDX, double theDY, double theDZ);
00039   Standard_EXPORT Handle(GEOM_Object) MakeBoxTwoPnt (Handle(GEOM_Object) thePnt1,
00040                                                      Handle(GEOM_Object) thePnt2);
00041   Standard_EXPORT Handle(GEOM_Object) MakeFaceHW (double theH, double theW, int theOrientation);
00042   Standard_EXPORT Handle(GEOM_Object) MakeFaceObjHW (Handle(GEOM_Object) theObj,
00043                                                      double theH, double theW);
00044   Standard_EXPORT Handle(GEOM_Object) MakeDiskThreePnt (Handle(GEOM_Object) thePnt1,
00045                                                         Handle(GEOM_Object) thePnt2,
00046                                                         Handle(GEOM_Object) thePnt3);
00047   Standard_EXPORT Handle(GEOM_Object) MakeDiskPntVecR (Handle(GEOM_Object) thePnt1,
00048                                                        Handle(GEOM_Object) theVec,
00049                                                        double theR);
00050   Standard_EXPORT Handle(GEOM_Object) MakeDiskR (double theR, int theOrientation);
00051   Standard_EXPORT Handle(GEOM_Object) MakeCylinderRH       (double theR, double theH);
00052   Standard_EXPORT Handle(GEOM_Object) MakeCylinderPntVecRH (Handle(GEOM_Object) thePnt,
00053                                             Handle(GEOM_Object) theVec,
00054                                             double theR, double theH);
00055 
00056   Standard_EXPORT Handle(GEOM_Object) MakeConeR1R2H       (double theR1, double theR2, double theH);
00057   Standard_EXPORT Handle(GEOM_Object) MakeConePntVecR1R2H (Handle(GEOM_Object) thePnt,
00058                                            Handle(GEOM_Object) theVec,
00059                                            double theR1, double theR2, double theH);
00060 
00061   Standard_EXPORT Handle(GEOM_Object) MakeSphereR    (double theR);
00062   Standard_EXPORT Handle(GEOM_Object) MakeSpherePntR (Handle(GEOM_Object) thePnt, double theR);
00063 
00064   Standard_EXPORT Handle(GEOM_Object) MakeTorusRR (double theRMajor, double theRMinor);
00065 
00066   Standard_EXPORT Handle(GEOM_Object) MakeTorusPntVecRR (Handle(GEOM_Object) thePnt,
00067                                          Handle(GEOM_Object) theVec,
00068                                          double theRMajor, double theRMinor);
00069 
00070   Standard_EXPORT Handle(GEOM_Object) MakePrismVecH (Handle(GEOM_Object) theBase,
00071                                                      Handle(GEOM_Object) theVec,
00072                                                      double theH, double theScaleFactor = -1.0);
00073 
00074   Standard_EXPORT Handle(GEOM_Object) MakePrismVecH2Ways (Handle(GEOM_Object) theBase,
00075                                                           Handle(GEOM_Object) theVec, double theH);
00076 
00077   Standard_EXPORT Handle(GEOM_Object) MakePrismTwoPnt (Handle(GEOM_Object) theBase,
00078                                                        Handle(GEOM_Object) thePoint1,
00079                                                        Handle(GEOM_Object) thePoint2,
00080                                                        double theScaleFactor = -1.0);
00081 
00082   Standard_EXPORT Handle(GEOM_Object) MakePrismTwoPnt2Ways (Handle(GEOM_Object) theBase,
00083                                                             Handle(GEOM_Object) thePoint1,
00084                                                             Handle(GEOM_Object) thePoint2);
00085 
00086   Standard_EXPORT Handle(GEOM_Object) MakePrismDXDYDZ (Handle(GEOM_Object) theBase,
00087                                                        double theDX, double theDY, double theDZ,
00088                                                        double theScaleFactor = -1.0);
00089 
00090   Standard_EXPORT Handle(GEOM_Object) MakePrismDXDYDZ2Ways (Handle(GEOM_Object) theBase,
00091                                                             double theDX, double theDY, double theDZ);
00092   
00093   Standard_EXPORT Handle(GEOM_Object) MakeDraftPrism  (Handle(GEOM_Object) theInitShape, Handle(GEOM_Object) theBase,
00094                                                        double theHeight, double theAngle, bool theFuse);
00095   
00096   Standard_EXPORT Handle(GEOM_Object) MakePipe (Handle(GEOM_Object) theBase,
00097                                                 Handle(GEOM_Object) thePath);
00098 
00099   Standard_EXPORT Handle(GEOM_Object) MakeRevolutionAxisAngle (Handle(GEOM_Object) theBase,
00100                                                                Handle(GEOM_Object) theAxis,
00101                                                                double theAngle);
00102 
00103   Standard_EXPORT Handle(GEOM_Object) MakeRevolutionAxisAngle2Ways (Handle(GEOM_Object) theBase,
00104                                                                     Handle(GEOM_Object) theAxis,
00105                                                                     double theAngle);
00106 
00107   Standard_EXPORT Handle(GEOM_Object) MakeFilling (Handle(GEOM_Object) theShape,
00108                                                    int theMinDeg, int theMaxDeg,
00109                                                    double theTol2D, double theTol3D,
00110                                                    int theNbIter, int theMethod,
00111                                                    bool isApprox);
00112 
00113   Standard_EXPORT Handle(GEOM_Object) MakeThruSections
00114                                       (const Handle(TColStd_HSequenceOfTransient)& theSeqSections,
00115                                        bool theModeSolid,
00116                                        double thePreci,
00117                                        bool theRuled);
00118 
00119   Standard_EXPORT Handle(GEOM_Object) MakePipeWithDifferentSections(
00120                 const Handle(TColStd_HSequenceOfTransient)& theBases,
00121                 const Handle(TColStd_HSequenceOfTransient)& theLocations,
00122                 const Handle(GEOM_Object)& thePath,
00123                 bool theWithContact,
00124                 bool theWithCorrections);
00125 
00126   Standard_EXPORT Handle(GEOM_Object) MakePipeWithShellSections(
00127                 const Handle(TColStd_HSequenceOfTransient)& theBases,
00128                 const Handle(TColStd_HSequenceOfTransient)& theSubBases,
00129                 const Handle(TColStd_HSequenceOfTransient)& theLocations,
00130                 const Handle(GEOM_Object)& thePath,
00131                 bool theWithContact,
00132                 bool theWithCorrections);
00133 
00134   Standard_EXPORT Handle(GEOM_Object) MakePipeShellsWithoutPath(
00135                 const Handle(TColStd_HSequenceOfTransient)& theBases,
00136                 const Handle(TColStd_HSequenceOfTransient)& theLocations);
00137 
00138   Standard_EXPORT Handle(GEOM_Object) MakePipeBiNormalAlongVector (Handle(GEOM_Object) theBase,
00139                                                                    Handle(GEOM_Object) thePath,
00140                                                                    Handle(GEOM_Object) theVec);
00141 
00142 };
00143 
00144 #endif