Salome HOME
5be05a05e8845fee4ce3bb7c1232899149ca17fe
[modules/geom.git] / src / GEOM_I / GEOM_IBooleanOperations_i.hh
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
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.
10 //
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.
15 //
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
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 #ifndef _GEOM_IBooleanOperations_i_HeaderFile
23 #define _GEOM_IBooleanOperations_i_HeaderFile
24
25 #include "GEOMImpl_Gen.hxx"
26
27 #include <SALOMEconfig.h>
28
29 #include CORBA_SERVER_HEADER(GEOM_Gen)
30 #include "GEOM_IOperations_i.hh"
31 #include "GEOM_Object_i.hh"
32
33 #include "GEOMImpl_IBooleanOperations.hxx"
34
35 class GEOM_I_EXPORT GEOM_IBooleanOperations_i : 
36     public virtual POA_GEOM::GEOM_IBooleanOperations,
37     public virtual GEOM_IOperations_i
38 {
39  public:
40   GEOM_IBooleanOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine,
41                             ::GEOMImpl_IBooleanOperations* theImpl);
42   ~GEOM_IBooleanOperations_i();
43
44   GEOM::GEOM_Object_ptr MakeBoolean (GEOM::GEOM_Object_ptr theShape1,
45                                      GEOM::GEOM_Object_ptr theShape2,
46                                      CORBA::Long           theOp);
47
48   GEOM::GEOM_Object_ptr MakePartition (const GEOM::ListOfGO&   theShapes,
49                                        const GEOM::ListOfGO&   theTools,
50                                        const GEOM::ListOfGO&   theKeepInside,
51                                        const GEOM::ListOfGO&   theRemoveInside,
52                                        CORBA::Short            theLimit,
53                                        CORBA::Boolean          theRemoveWebs,
54                                        const GEOM::ListOfLong& theMaterials,
55                                        CORBA::Short theKeepNonlimitShapes);
56
57   GEOM::GEOM_Object_ptr MakePartitionNonSelfIntersectedShape (const GEOM::ListOfGO&   theShapes,
58                                                               const GEOM::ListOfGO&   theTools,
59                                                               const GEOM::ListOfGO&   theKeepInside,
60                                                               const GEOM::ListOfGO&   theRemoveInside,
61                                                               CORBA::Short            theLimit,
62                                                               CORBA::Boolean          theRemoveWebs,
63                                                               const GEOM::ListOfLong& theMaterials,
64                                                               CORBA::Short theKeepNonlimitShapes);
65
66
67   GEOM::GEOM_Object_ptr MakeHalfPartition (GEOM::GEOM_Object_ptr theShape,
68                                            GEOM::GEOM_Object_ptr thePlane);
69
70   ::GEOMImpl_IBooleanOperations* GetOperations()
71   { return (::GEOMImpl_IBooleanOperations*)GetImpl(); }
72 };
73
74 #endif