1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 // This library is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 // Lesser General Public License for more details.
12 // You should have received a copy of the GNU Lesser General Public
13 // License along with this library; if not, write to the Free Software
14 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 // File : GeomSelectionTools.h
20 // Authors : Nicolas GEIMER (OCC)
25 #include "SALOMEDSClient.hxx"
26 #include "SALOME_InteractiveObject.hxx"
27 #include <SALOME_ListIO.hxx>
29 #include <TopoDS_Shape.hxx>
30 #include <GeomAbs_SurfaceType.hxx>
32 class LightApp_SelectionMgr;
36 * The GeomSelectionTools class gives high level tools to select Geom (and other objects)
37 * A specific attention has been given to analyze selected GEOM objects.
39 * @param myStudy This class is specific to the study !
43 class GeomSelectionTools
52 GeomSelectionTools(_PTR(Study));
53 static LightApp_SelectionMgr* selectionMgr();
54 SALOME_ListIO* getSelectedSalomeObjects();
55 Handle(SALOME_InteractiveObject) getFirstSelectedSalomeObject();
56 std::string getFirstSelectedEntry();
57 std::string getEntryOfObject(Handle(SALOME_InteractiveObject));
58 std::string getNameFromEntry(std::string);
59 std::string getFirstSelectedComponentDataType();
60 TopoDS_Shape getFirstSelectedTopoDSShape();
61 TopAbs_ShapeEnum getFirstSelectedShapeType();
62 TopoDS_Shape entryToShape(std::string );
63 GeomAbs_SurfaceType getFaceInformation();
64 _PTR(Study) getMyStudy();