X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FPluginUtils%2FGeomSelectionTools.h;h=3df7d90fe0bfd3ee99455b20356d974862979828;hp=c4013ff99ea1be648e251a9a78ea043a81f92f09;hb=cb55604f37e3d2583272fd436bb6557b041948b5;hpb=7646a7f54e99134575c14521e60b6fa8c2418201 diff --git a/src/PluginUtils/GeomSelectionTools.h b/src/PluginUtils/GeomSelectionTools.h index c4013ff99..3df7d90fe 100644 --- a/src/PluginUtils/GeomSelectionTools.h +++ b/src/PluginUtils/GeomSelectionTools.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -49,25 +49,20 @@ class LightApp_SelectionMgr; class PLUGINUTILS_EXPORT GeomSelectionTools { -private: - - _PTR(Study) myStudy; - public: - GeomSelectionTools(_PTR(Study)); + GeomSelectionTools(); static SalomeApp_Application* GetSalomeApplication(); static LightApp_SelectionMgr* selectionMgr(); SALOME_ListIO* getSelectedSalomeObjects(); Handle(SALOME_InteractiveObject) getFirstSelectedSalomeObject(); std::string getFirstSelectedEntry(); std::string getEntryOfObject(Handle(SALOME_InteractiveObject)); - std::string getNameFromEntry(std::string); + std::string getNameFromEntry(const std::string& ); std::string getFirstSelectedComponentDataType(); TopAbs_ShapeEnum getFirstSelectedShapeType(); - TopAbs_ShapeEnum entryToShapeType(std::string ); + TopAbs_ShapeEnum entryToShapeType(const std::string& ); GeomAbs_SurfaceType getFaceInformation(TopoDS_Shape); - _PTR(Study) getMyStudy(); }; ////////////////////////////////////////// @@ -77,7 +72,7 @@ public: namespace PluginUtils { PLUGINUTILS_EXPORT QString PrintDoubleValue( double, int = 16 ); -}; +} #endif // _GEOMSELECTIONTOOLS_H_