X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_MultiRotation.h;h=416f477b14ef26bfe20fb94fbb89ad319e53dbd5;hb=c7a5ff20294ae8270bfb9120b8887f0c9959d658;hp=7fd3cf14a333c3ee48f4980c27bb56ece585dfd2;hpb=aa7989f7a1aff79777404200842d8bc905ee8a45;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_MultiRotation.h b/src/SketchPlugin/SketchPlugin_MultiRotation.h index 7fd3cf14a..416f477b1 100644 --- a/src/SketchPlugin/SketchPlugin_MultiRotation.h +++ b/src/SketchPlugin/SketchPlugin_MultiRotation.h @@ -52,12 +52,26 @@ class SketchPlugin_MultiRotation : public SketchPlugin_ConstraintBase static const std::string MY_CENTER_ID("MultiRotationCenter"); return MY_CENTER_ID; } + /// attribute name for first point + inline static const std::string& ANGLE_TYPE() + { + static const std::string ANGLE_TYPE_ATTR("AngleType"); + return ANGLE_TYPE_ATTR; + } + /// End point of translation inline static const std::string& ANGLE_ID() { static const std::string MY_ANGLE_ID("MultiRotationAngle"); return MY_ANGLE_ID; } + /// End point of translation + inline static const std::string& ANGLE_FULL_ID() + { + static const std::string MY_ANGLE_FULL_ID("MultiRotationFullAngle"); + return MY_ANGLE_FULL_ID; + } + /// Total number of objects, initial and translated objects inline static const std::string& NUMBER_OF_OBJECTS_ID() { @@ -85,6 +99,11 @@ private: ObjectPtr copyFeature(ObjectPtr theObject); void rotateFeature(ObjectPtr theInitial, ObjectPtr theTarget, double theCenterX, double theCenterY, double theAngle); + + bool updateFullAngleValue(); + +private: + bool myBlockAngle; /// a boolean state to avoid recusive angle change in attributeChanged }; #endif