X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FPluginUtils%2FGeomSelectionTools.h;h=e1b8c741ec4749fb49b0ccc34cc33817c9556ae1;hp=55337150cad856ecc0264dbc60904b6a0f141ff9;hb=HEAD;hpb=c98d9fcd7f02c1f1f5c24dd3e709ed75228d66c4 diff --git a/src/PluginUtils/GeomSelectionTools.h b/src/PluginUtils/GeomSelectionTools.h index 55337150c..cadfe2204 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-2024 CEA, EDF, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -25,18 +25,10 @@ #ifndef _GEOMSELECTIONTOOLS_H_ #define _GEOMSELECTIONTOOLS_H_ -#ifdef WIN32 -# ifdef GeomSelectionTools_EXPORTS -# define GEOMSELECTIONTOOLS_EXPORT __declspec( dllexport ) -# else -# define GEOMSELECTIONTOOLS_EXPORT __declspec( dllimport ) -# endif -#else -# define GEOMSELECTIONTOOLS_EXPORT -#endif +#include "SMESH_PluginUtils.h" -#include "SALOMEDSClient.hxx" -#include "SALOME_InteractiveObject.hxx" +#include +#include #include #include @@ -49,33 +41,25 @@ class LightApp_SelectionMgr; /*! * The GeomSelectionTools class gives high level tools to select Geom (and other objects) * A specific attention has been given to analyze selected GEOM objects. - * - * @param myStudy This class is specific to the study ! - * */ -class GEOMSELECTIONTOOLS_EXPORT GeomSelectionTools +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(); }; ////////////////////////////////////////// @@ -84,8 +68,8 @@ public: namespace PluginUtils { - GEOMSELECTIONTOOLS_EXPORT QString PrintDoubleValue( double, int = 16 ); -}; + PLUGINUTILS_EXPORT QString PrintDoubleValue( double, int = 16 ); +} #endif // _GEOMSELECTIONTOOLS_H_