X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Folder.h;h=13c1493dfcba4e2074f483fcb6e7f558bb85f72f;hb=380f01e1fce1a012267d604a1190d04bf4659447;hp=8128df05a2a85b86ec765eda1cbdc08267bbbc05;hpb=2714903267d23cd0c81166c506fb3edd1e069d40;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Folder.h b/src/ModelHighAPI/ModelHighAPI_Folder.h index 8128df05a..13c1493df 100644 --- a/src/ModelHighAPI/ModelHighAPI_Folder.h +++ b/src/ModelHighAPI/ModelHighAPI_Folder.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 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 @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_FOLDER_H_ @@ -47,6 +46,7 @@ public: static std::string ID() { return ModelAPI_Folder::ID(); } virtual std::string getID() { return ID(); } + const std::shared_ptr& folder() const {return myFolder;} /// First feature reference std::shared_ptr firstFeature() const @@ -56,6 +56,19 @@ public: std::shared_ptr lastFeature() const { return myLastFeature; } + /// Shortcut for data()->setName() + MODELHIGHAPI_EXPORT + void setName(const std::wstring& theName); + + /// Shortcut for data()->name() + MODELHIGHAPI_EXPORT + std::wstring name() const; + + /// To update the folder state + /// \param isForce start execution of feature instead of sending events + //MODELHIGHAPI_EXPORT void execute(); + + /// Dump wrapped feature MODELHIGHAPI_EXPORT virtual void dump(ModelHighAPI_Dumper& theDumper) const; @@ -83,5 +96,10 @@ MODELHIGHAPI_EXPORT std::shared_ptr addFolder(const std::shared_ptr& theDoc, const ModelHighAPI_Reference& theFirstFeature, const ModelHighAPI_Reference& theLastFeature); +/**\ingroup CPPHighAPI +* \brief Removes Folder feature +*/ +MODELHIGHAPI_EXPORT +void removeFolder(std::shared_ptr& theFolder); //-------------------------------------------------------------------------------------- #endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_FOLDER_H_ */