X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver_ConstraintMovement.h;h=32c45625da7c82c17e7dd20304ed1345f55b5c1e;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=1735a70b0488bc1c5e562cbd1fd4bb06495166cf;hpb=97917d3698f5a2f7fc9596e7c755ff8f6751e373;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_ConstraintMovement.h b/src/SketchSolver/SketchSolver_ConstraintMovement.h index 1735a70b0..32c45625d 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMovement.h +++ b/src/SketchSolver/SketchSolver_ConstraintMovement.h @@ -1,4 +1,4 @@ -// Copyright (C) 2017-2019 CEA/DEN, EDF R&D +// Copyright (C) 2017-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,7 +39,7 @@ public: SketchSolver_ConstraintMovement(FeaturePtr theFeature); /// Creates movement constraint based on point - SketchSolver_ConstraintMovement(AttributePtr thePoint); + SketchSolver_ConstraintMovement(AttributePtr theMovedAttribute, const int thePointIndex = -1); /// \brief Set coordinates of the start point of the movement void startPoint(const std::shared_ptr& theStartPoint); @@ -66,12 +66,16 @@ protected: /// \brief Create constraint to fix moved arc extremity ConstraintWrapperPtr fixArcExtremity(const EntityWrapperPtr& theArcExtremity); - /// \brief Creat constraint to fix moved point on circle/arc + /// \brief Create constraint to fix moved point on circle/arc ConstraintWrapperPtr fixPointOnCircle(const EntityWrapperPtr& theCircular); + /// \brief Create constraint to fix moved point on ellipse/elliptic arc + ConstraintWrapperPtr fixPointOnEllipse(const EntityWrapperPtr& theConic); + private: FeaturePtr myMovedFeature; ///< fixed feature (if set, myBaseConstraint should be NULL) - AttributePtr myDraggedPoint; ///< one of the feature points which has been moved + AttributePtr myDraggedAttribute; ///< one of the feature points which has been moved + int myDraggedPointIndex; ///< index of the point if the moved attribute is an array std::shared_ptr myStartPoint; ///< start point of the movement bool mySimpleMove; ///< simple move, thus all parameters should be increased by movement delta