]> SALOME platform Git repositories - plugins/blsurfplugin.git/blob - src/PluginUtils/GeomSelectionTools.h
Salome HOME
Size Map feature integration.
[plugins/blsurfplugin.git] / src / PluginUtils / GeomSelectionTools.h
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D
2 //
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.
11 //
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
15 //
16 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
17 //
18 // ---
19 // File    : GeomSelectionTools.h
20 // Authors : Nicolas GEIMER (OCC)
21 // ---
22
23
24
25 #include "SALOMEDSClient.hxx"
26 #include "SALOME_InteractiveObject.hxx"
27 #include <SALOME_ListIO.hxx>
28
29 #include <TopoDS_Shape.hxx>
30 #include <GeomAbs_SurfaceType.hxx>
31
32 class LightApp_SelectionMgr;  
33
34
35 /*!
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.
38  *
39  * @param myStudy This class is specific to the study !
40  *
41  */
42
43 class GeomSelectionTools
44 {
45
46 private:
47  
48   _PTR(Study) myStudy; 
49
50 public:
51
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();
65 };
66
67