00001 // Copyright (C) 2007-2011 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_IGroupOperations_HXX_ 00024 #define _GEOMImpl_IGroupOperations_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_HArray1OfInteger.hxx> 00032 #include <TColStd_HSequenceOfInteger.hxx> 00033 #include <TopAbs.hxx> 00034 00035 class GEOMImpl_IGroupOperations : public GEOM_IOperations { 00036 public: 00037 Standard_EXPORT GEOMImpl_IGroupOperations(GEOM_Engine* theEngine, int theDocID); 00038 Standard_EXPORT ~GEOMImpl_IGroupOperations(); 00039 00040 Standard_EXPORT Handle(GEOM_Object) CreateGroup(Handle(GEOM_Object) theMainShape, TopAbs_ShapeEnum theShapeType); 00041 00042 Standard_EXPORT void AddObject(Handle(GEOM_Object) theGroup, int theSubShapeID); 00043 00044 Standard_EXPORT void RemoveObject(Handle(GEOM_Object) theGroup, int theSubShapeID); 00045 00046 Standard_EXPORT void UnionList (Handle(GEOM_Object) theGroup, 00047 const Handle(TColStd_HSequenceOfTransient)& theSubShapes); 00048 00049 Standard_EXPORT void DifferenceList (Handle(GEOM_Object) theGroup, 00050 const Handle(TColStd_HSequenceOfTransient)& theSubShapes); 00051 00052 Standard_EXPORT void UnionIDs (Handle(GEOM_Object) theGroup, 00053 const Handle(TColStd_HSequenceOfInteger)& theSubShapes); 00054 00055 Standard_EXPORT void DifferenceIDs (Handle(GEOM_Object) theGroup, 00056 const Handle(TColStd_HSequenceOfInteger)& theSubShapes); 00057 00058 Standard_EXPORT TopAbs_ShapeEnum GetType(Handle(GEOM_Object) theGroup); 00059 00060 Standard_EXPORT Handle(GEOM_Object) GetMainShape(Handle(GEOM_Object) theGroup); 00061 00062 Standard_EXPORT Handle(TColStd_HArray1OfInteger) GetObjects(Handle(GEOM_Object) theGroup); 00063 00064 }; 00065 00066 #endif