X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_RemoveSubShapes.h;h=15e51f32bcdd5d52c51c1a1ba0042d8226e76559;hb=ea593bc59e7e9461f6c4e2afd3f24d621edb1011;hp=39cb6fabeafc166a9e99e5084807c03f276b99c3;hpb=a94fc319f2aa64b43c9a73b5ff7063923648faec;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.h b/src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.h index 39cb6fabe..15e51f32b 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.h +++ b/src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 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 FeaturesPlugin_RemoveSubShapes_H_ @@ -48,13 +47,42 @@ public: return MY_BASE_SHAPE_ID; } - /// Attribute name of sub-shapes. - inline static const std::string& SUBSHAPES_ID() + /// Attribute name for creation method. + inline static const std::string& CREATION_METHOD() { - static const std::string MY_SUBSHAPES_ID("subshapes"); + static const std::string MY_CREATION_METHOD_ID("creation_method"); + return MY_CREATION_METHOD_ID; + } + + /// Attribute name for creation method. + inline static const std::string& CREATION_METHOD_BY_KEEP_SUBSHAPES() + { + static const std::string MY_CREATION_METHOD_ID("by_keep_subshapes"); + return MY_CREATION_METHOD_ID; + } + + /// Attribute name for creation method. + inline static const std::string& CREATION_METHOD_BY_REMOVE_SUBSHAPES() + { + static const std::string MY_CREATION_METHOD_ID("by_remove_subshapes"); + return MY_CREATION_METHOD_ID; + } + + /// Attribute name of sub-shapes to keep. + inline static const std::string& SUBSHAPES_TO_KEEP_ID() + { + static const std::string MY_SUBSHAPES_ID("subshapes_to_keep"); return MY_SUBSHAPES_ID; } + /// Attribute name of sub-shapes to remove. + inline static const std::string& SUBSHAPES_TO_REMOVE_ID() + { + static const std::string MY_SUBSHAPES_ID("subshapes_to_remove"); + return MY_SUBSHAPES_ID; + } + + /// \return the kind of a feature. FEATURESPLUGIN_EXPORT virtual const std::string& getKind() { @@ -71,6 +99,9 @@ public: /// Creates a new part document if needed. FEATURESPLUGIN_EXPORT virtual void execute(); + +private: + bool myChangedInCode; }; #endif