Salome HOME
updated copyright message
[modules/shaper.git] / src / PartSet / PartSet_SketcherReentrantMgr.h
index 91ab34ebcef3c26f8cdefe4dca02fb8db0facd8c..220120e56844b2a5416d60d84b1ff0543eeb1ac8 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -134,6 +134,8 @@ public:
   bool isAutoConstraints() const { return myIsAutoConstraints; }
 
 
+  bool isLastAutoConstraint(const ObjectPtr& theObj) const;
+
 public slots:
   /// The slot is called when user checks "Automatic constraints" button
   /// \param isOn a state of the check box
@@ -197,7 +199,7 @@ private:
   /// \param theSourceFeature a source feature
   /// \param theNewFeature a new feature
   /// \param theSketch an active sketch
-  /// \param isTemporary is used to do not create additional features(e.g. coicidence for line)
+  /// \param isTemporary is used to do not create additional features(e.g. coincidence for line)
   /// \return true is something is copied
   static bool copyReetntrantAttributes(const FeaturePtr& theSourceFeature,
                                       const FeaturePtr& theNewFeature,
@@ -240,6 +242,8 @@ private:
   std::shared_ptr<GeomAPI_Pnt2d> myClickedSketchPoint; /// cashed clicked point
 
   bool myIsAutoConstraints;
+  void* myLastAutoConstraint; //< Stores address of last automatic constraint.
+                              //< Cannot be used as a pointer!!!
 };
 
 #endif