Salome HOME
Update unit tests for the PlaneGCS solver. Bug fixes.
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_MultiRotation.h
index 7fd3cf14a333c3ee48f4980c27bb56ece585dfd2..3a1be2088bd46f66a413418e9f465c38c0c055c2 100644 (file)
@@ -52,12 +52,20 @@ 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;
   }
+
   /// Total number of objects, initial and translated objects
   inline static const std::string& NUMBER_OF_OBJECTS_ID()
   {
@@ -78,13 +86,18 @@ class SketchPlugin_MultiRotation : public SketchPlugin_ConstraintBase
   /// Returns the AIS preview
   SKETCHPLUGIN_EXPORT virtual AISObjectPtr getAISObject(AISObjectPtr thePrevious);
 
+  /// removes all fields from this feature: results, data, etc
+  SKETCHPLUGIN_EXPORT virtual void erase();
+
   /// \brief Use plugin manager for features creation
   SketchPlugin_MultiRotation();
 
 private:
   ObjectPtr copyFeature(ObjectPtr theObject);
-  void rotateFeature(ObjectPtr theInitial, ObjectPtr theTarget,
-                     double theCenterX, double theCenterY, double theAngle);
+  //void rotateFeature(ObjectPtr theInitial, ObjectPtr theTarget,
+  //                   double theCenterX, double theCenterY, double theAngle);
+
+  bool updateFullAngleValue();
 };
 
 #endif