Salome HOME
First version of SizeMap for BLSurf :
[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
31 class LightApp_SelectionMgr;  
32
33 class GeomSelectionTools
34 {
35
36 private:
37  
38   _PTR(Study) myStudy; 
39
40 public:
41
42   GeomSelectionTools(_PTR(Study)); 
43   static LightApp_SelectionMgr* selectionMgr();
44   SALOME_ListIO* getSelectedSalomeObjects();
45   Handle(SALOME_InteractiveObject) getFirstSelectedSalomeObject();
46   std::string getFirstSelectedEntry();
47   std::string getEntryOfObject(Handle(SALOME_InteractiveObject));
48   std::string getNameFromEntry(std::string);
49   std::string getFirstSelectedComponentDataType();
50   TopoDS_Shape getFirstSelectedTopoDSShape();
51   TopAbs_ShapeEnum getFirstSelectedShapeType();
52   TopoDS_Shape entryToShape(std::string );
53   void getFaceInformation();
54 };
55
56