-// 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
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
/// \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,
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