X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Feature.h;h=300cfc8b4ee68e23223ce4ced12995bd7252593b;hb=cdbbde4803e9c320204d537d22af4ac7ef024962;hp=c5403b5c9a3d5cc05b3518b8a70675c0799d0691;hpb=6e421e939851e0de46554ae45a3ca0e1f67cd91d;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Feature.h b/src/SketchPlugin/SketchPlugin_Feature.h index c5403b5c9..300cfc8b4 100644 --- a/src/SketchPlugin/SketchPlugin_Feature.h +++ b/src/SketchPlugin/SketchPlugin_Feature.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2021 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 @@ -78,11 +78,18 @@ protected: /// initializes mySketch SketchPlugin_Feature(); + /// Store current feature of the document if it is not the sub-feature of the current sketch + void keepCurrentFeature(); + /// Restore current feature of the document after adding new feature to the sketch + void restoreCurrentFeature(); + friend class SketchPlugin_Sketch; - private: +private: std::shared_ptr myPreview; ///< the preview shape SketchPlugin_Sketch* mySketch; /// sketch that contains this feature + + FeaturePtr myCurrentFeature; /// temporary stored current feature }; #endif