1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File : GEOMImpl_IAdvancedOperations.hxx
23 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
26 #ifndef _GEOMImpl_IAdvancedOperations_HXX_
27 #define _GEOMImpl_IAdvancedOperations_HXX_
29 #include <Utils_SALOME_Exception.hxx>
30 #include "GEOM_IOperations.hxx"
31 #include "GEOM_Engine.hxx"
32 #include "GEOM_Object.hxx"
34 #define Handle_GEOM_Object Handle(GEOM_Object)
35 #define Handle_TColStd_HSequenceOfTransient Handle(TColStd_HSequenceOfTransient)
36 #define Handle_TColStd_HSequenceOfInteger Handle(TColStd_HSequenceOfInteger)
38 class GEOMImpl_IAdvancedOperations: public GEOM_IOperations {
40 bool MakePipeTShapePartition(/*std::vector<GEOM_IOperations*> theOperations, */Handle_GEOM_Object theShape, double theR1, double theW1, double theL1, double theR2,
41 double theW2, double theL2, double theH = 0, double theW = 0, double theRF = 0, bool isNormal = true);
42 bool MakePipeTShapeMirrorAndGlue(/*std::vector<GEOM_IOperations*> theOperations, */Handle_GEOM_Object theShape, double theR1, double theW1, double theL1, double theR2,
43 double theW2, double theL2);
44 bool MakeGroups(/*std::vector<GEOM_IOperations*> theOperations, */Handle_GEOM_Object theShape, int shapType, double theR1, double theW1, double theL1, double theR2,
45 double theW2, double theL2, Handle_TColStd_HSequenceOfTransient theSeq, gp_Trsf aTrsf);
46 gp_Trsf GetPositionTrsf(double theL1, double theL2, Handle_GEOM_Object P1 = NULL, Handle_GEOM_Object P2 = NULL,
47 Handle_GEOM_Object P3 = NULL);
48 bool CheckCompatiblePosition(double& theL1, double& theL2, Handle_GEOM_Object theP1, Handle_GEOM_Object theP2,
49 Handle_GEOM_Object theP3, double theTolerance);
53 GEOMImpl_IAdvancedOperations(GEOM_Engine* theEngine, int theDocID);Standard_EXPORT
54 ~GEOMImpl_IAdvancedOperations();
56 Standard_EXPORT Handle_TColStd_HSequenceOfTransient MakePipeTShape(double theR1, double theW1, double theL1,
57 double theR2, double theW2, double theL2, bool theHexMesh = true);
58 Standard_EXPORT Handle_TColStd_HSequenceOfTransient
59 MakePipeTShapeWithPosition(double theR1, double theW1, double theL1, double theR2, double theW2, double theL2,
60 bool theHexMesh = true, Handle_GEOM_Object P1 = NULL, Handle_GEOM_Object P2 = NULL, Handle_GEOM_Object P3 =
62 Standard_EXPORT Handle_TColStd_HSequenceOfTransient MakePipeTShapeChamfer(double theR1, double theW1, double theL1,
63 double theR2, double theW2, double theL2, double theH, double theW, bool theHexMesh = true);
64 Standard_EXPORT Handle_TColStd_HSequenceOfTransient
65 MakePipeTShapeChamferWithPosition(double theR1, double theW1, double theL1, double theR2, double theW2,
66 double theL2, double theH, double theW, bool theHexMesh = true, Handle_GEOM_Object P1 = NULL,
67 Handle_GEOM_Object P2 = NULL, Handle_GEOM_Object P3 = NULL);
68 Standard_EXPORT Handle_TColStd_HSequenceOfTransient MakePipeTShapeFillet(double theR1, double theW1, double theL1,
69 double theR2, double theW2, double theL2, double theRF, bool theHexMesh = true);
70 Standard_EXPORT Handle_TColStd_HSequenceOfTransient
71 MakePipeTShapeFilletWithPosition(double theR1, double theW1, double theL1, double theR2, double theW2,
72 double theL2, double theRF, bool theHexMesh = true, Handle_GEOM_Object P1 = NULL, Handle_GEOM_Object P2 =
73 NULL, Handle_GEOM_Object P3 = NULL);
74 /*@@ insert new functions before this line @@*/
77 #undef Handle_GEOM_Object
78 #undef Handle_TColStd_HSequenceOfTransient
79 #undef Handle_TColStd_HSequenceOfInteger