X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Folder.h;h=749eca6c1cd3558bb4c232a78a896422b4a28b8d;hb=88ee9b2b81cf93a6324336b57e30cc8a3a487499;hp=7945ff12d1917d13ec3080dc07b63e4f1e30cbf6;hpb=97917d3698f5a2f7fc9596e7c755ff8f6751e373;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Folder.h b/src/ModelAPI/ModelAPI_Folder.h index 7945ff12d..749eca6c1 100644 --- a/src/ModelAPI/ModelAPI_Folder.h +++ b/src/ModelAPI/ModelAPI_Folder.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2022 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -82,7 +82,7 @@ public: // Helper methods, aliases for data()->method() // ----------------------------------------------------------------------------------------------- /// Returns the name stored in the attribute - inline std::string name() + inline std::wstring name() { return data()->name(); } @@ -92,6 +92,10 @@ public: return data()->reference(theID); } + /// Returns the last visible feature in the folder, passing through invisible, + /// that may appear as the last ones. + MODELAPI_EXPORT std::shared_ptr lastVisibleFeature(); + protected: /// This method is called just after creation of the object: it must initialize /// all fields, normally initialized in the constructor