Back to index

salome-geom  6.5.0
GEOM_IGroupOperations_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_IGroupOperations_i_HeaderFile
00024 #define _GEOM_IGroupOperations_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_IGroupOperations.hxx"
00035 
00036 class GEOM_I_EXPORT GEOM_IGroupOperations_i : 
00037     public virtual POA_GEOM::GEOM_IGroupOperations,
00038     public virtual GEOM_IOperations_i
00039 {
00040  public:
00041   GEOM_IGroupOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine,
00042                         ::GEOMImpl_IGroupOperations* theImpl);
00043   ~GEOM_IGroupOperations_i();
00044 
00045   GEOM::GEOM_Object_ptr CreateGroup  (GEOM::GEOM_Object_ptr theMainShape, CORBA::Long theShapeType);
00046  
00047   void AddObject (GEOM::GEOM_Object_ptr theGroup, CORBA::Long theSubShapeId);
00048 
00049   void RemoveObject (GEOM::GEOM_Object_ptr theGroup, CORBA::Long theSubShapeId);
00050 
00051   void UnionList (GEOM::GEOM_Object_ptr theGroup, const GEOM::ListOfGO& theSubShapes);
00052 
00053   void DifferenceList (GEOM::GEOM_Object_ptr theGroup, const GEOM::ListOfGO& theSubShapes);
00054 
00055   void UnionIDs (GEOM::GEOM_Object_ptr theGroup, const GEOM::ListOfLong& theSubShapes);
00056 
00057   void DifferenceIDs (GEOM::GEOM_Object_ptr theGroup, const GEOM::ListOfLong& theSubShapes);
00058 
00059   CORBA::Long GetType (GEOM::GEOM_Object_ptr theGroup);
00060   
00061   GEOM::GEOM_Object_ptr GetMainShape (GEOM::GEOM_Object_ptr theGroup);
00062 
00063   GEOM::ListOfLong* GetObjects (GEOM::GEOM_Object_ptr theGroup);
00064 
00065   ::GEOMImpl_IGroupOperations* GetOperations()
00066   { return (::GEOMImpl_IGroupOperations*)GetImpl(); }
00067 };
00068 
00069 #endif