Back to index

salome-geom  6.5.0
GEOM_IBooleanOperations_i.hh
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 _GEOM_IBooleanOperations_i_HeaderFile
00024 #define _GEOM_IBooleanOperations_i_HeaderFile
00025 
00026 #include "GEOMImpl_Gen.hxx"
00027 
00028 #include <SALOMEconfig.h>
00029 
00030 #include CORBA_SERVER_HEADER(GEOM_Gen)
00031 #include "GEOM_IOperations_i.hh"
00032 #include "GEOM_Object_i.hh"
00033 
00034 #include "GEOMImpl_IBooleanOperations.hxx"
00035 
00036 class GEOM_I_EXPORT GEOM_IBooleanOperations_i : 
00037     public virtual POA_GEOM::GEOM_IBooleanOperations,
00038     public virtual GEOM_IOperations_i
00039 {
00040  public:
00041   GEOM_IBooleanOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine,
00042                          ::GEOMImpl_IBooleanOperations* theImpl);
00043   ~GEOM_IBooleanOperations_i();
00044 
00045   GEOM::GEOM_Object_ptr MakeBoolean (GEOM::GEOM_Object_ptr theShape1,
00046                                  GEOM::GEOM_Object_ptr theShape2,
00047                                  CORBA::Long           theOp);
00048 
00049   GEOM::GEOM_Object_ptr MakePartition (const GEOM::ListOfGO&   theShapes,
00050                                    const GEOM::ListOfGO&   theTools,
00051                                    const GEOM::ListOfGO&   theKeepInside,
00052                                    const GEOM::ListOfGO&   theRemoveInside,
00053                                    CORBA::Short            theLimit,
00054                                    CORBA::Boolean          theRemoveWebs,
00055                                    const GEOM::ListOfLong& theMaterials,
00056                                    CORBA::Short theKeepNonlimitShapes);
00057 
00058   GEOM::GEOM_Object_ptr MakePartitionNonSelfIntersectedShape (const GEOM::ListOfGO&   theShapes,
00059                                                        const GEOM::ListOfGO&   theTools,
00060                                                        const GEOM::ListOfGO&   theKeepInside,
00061                                                        const GEOM::ListOfGO&   theRemoveInside,
00062                                                        CORBA::Short            theLimit,
00063                                                        CORBA::Boolean          theRemoveWebs,
00064                                                        const GEOM::ListOfLong& theMaterials,
00065                                                        CORBA::Short theKeepNonlimitShapes);
00066 
00067 
00068   GEOM::GEOM_Object_ptr MakeHalfPartition (GEOM::GEOM_Object_ptr theShape,
00069                                       GEOM::GEOM_Object_ptr thePlane);
00070 
00071   ::GEOMImpl_IBooleanOperations* GetOperations()
00072   { return (::GEOMImpl_IBooleanOperations*)GetImpl(); }
00073 };
00074 
00075 #endif