Salome HOME
Issue #2071 Fatal error when Create box
[modules/shaper.git] / src / SketchAPI / SketchAPI_Circle.h
index 76c7f1fac50101c274614bbdf36bf23f2b0be253..fe5e5f473c1b1188eeb96c663c90d01649f932a7 100644 (file)
@@ -14,7 +14,7 @@
 
 class ModelHighAPI_Selection;
 
-/// \class FeaturesAPI_Boolean
+/// \class SketchAPI_Circle
 /// \ingroup CPPHighAPI
 /// \brief Interface for Circle feature.
 class SketchAPI_Circle: public SketchAPI_SketchEntity
@@ -37,20 +37,6 @@ public:
                    const std::shared_ptr<GeomAPI_Pnt2d>& theCenter,
                    double theRadius);
 
-  /// Constructor with values.
-  SKETCHAPI_EXPORT
-  SketchAPI_Circle(const std::shared_ptr<ModelAPI_Feature>& theFeature,
-                   double theX1, double theY1,
-                   double theX2, double theY2,
-                   double theX3, double theY3);
-
-  /// Constructor with values.
-  SKETCHAPI_EXPORT
-  SketchAPI_Circle(const std::shared_ptr<ModelAPI_Feature>& theFeature,
-                   const std::shared_ptr<GeomAPI_Pnt2d>& thePoint1,
-                   const std::shared_ptr<GeomAPI_Pnt2d>& thePoint2,
-                   const std::shared_ptr<GeomAPI_Pnt2d>& thePoint3);
-
   /// Constructor with values.
   SKETCHAPI_EXPORT
   SketchAPI_Circle(const std::shared_ptr<ModelAPI_Feature>& theFeature,
@@ -65,14 +51,13 @@ public:
   SKETCHAPI_EXPORT
   virtual ~SketchAPI_Circle();
 
-  INTERFACE_7(SketchPlugin_Circle::ID(),
-              circleType, SketchPlugin_Circle::CIRCLE_TYPE(), ModelAPI_AttributeString, /** Circle type */,
-              center, SketchPlugin_Circle::CENTER_ID(), GeomDataAPI_Point2D, /** Center point */,
-              radius, SketchPlugin_Circle::RADIUS_ID(), ModelAPI_AttributeDouble, /** Radius */,
-              firstPoint, SketchPlugin_Circle::FIRST_POINT_ID(), GeomDataAPI_Point2D, /** First point */,
-              secondPoint, SketchPlugin_Circle::SECOND_POINT_ID(), GeomDataAPI_Point2D, /** Second point */,
-              thirdPoint, SketchPlugin_Circle::THIRD_POINT_ID(), GeomDataAPI_Point2D, /** Third point */,
-              external, SketchPlugin_Circle::EXTERNAL_ID(), ModelAPI_AttributeSelection, /** External */)
+  INTERFACE_3(SketchPlugin_Circle::ID(),
+              center, SketchPlugin_Circle::CENTER_ID(),
+              GeomDataAPI_Point2D, /** Center point */,
+              radius, SketchPlugin_Circle::RADIUS_ID(),
+              ModelAPI_AttributeDouble, /** Radius */,
+              external, SketchPlugin_Circle::EXTERNAL_ID(),
+              ModelAPI_AttributeSelection, /** External */)
 
   /// Set by center and radius.
   SKETCHAPI_EXPORT
@@ -82,18 +67,6 @@ public:
   SKETCHAPI_EXPORT
   void setByCenterAndRadius(const std::shared_ptr<GeomAPI_Pnt2d>& theCenter, double theRadius);
 
-  /// Set by three points.
-  SKETCHAPI_EXPORT
-  void setByThreePoints(double theX1, double theY1,
-                        double theX2, double theY2,
-                        double theX3, double theY3);
-
-  /// Set by three points.
-  SKETCHAPI_EXPORT
-  void setByThreePoints(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint1,
-                        const std::shared_ptr<GeomAPI_Pnt2d>& thePoint2,
-                        const std::shared_ptr<GeomAPI_Pnt2d>& thePoint3);
-
   /// Set by external.
   SKETCHAPI_EXPORT
   void setByExternal(const ModelHighAPI_Selection& theExternal);
@@ -114,30 +87,6 @@ public:
   SKETCHAPI_EXPORT
   void setRadius(double theRadius);
 
-  /// Set first point.
-  SKETCHAPI_EXPORT
-  void setFirstPoint(double theX, double theY);
-
-  /// Set first point.
-  SKETCHAPI_EXPORT
-  void setFirstPoint(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint);
-
-  /// Set second point.
-  SKETCHAPI_EXPORT
-  void setSecondPoint(double theX, double theY);
-
-  /// Set second point.
-  SKETCHAPI_EXPORT
-  void setSecondPoint(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint);
-
-  /// Set third point.
-  SKETCHAPI_EXPORT
-  void setThirdPoint(double theX, double theY);
-
-  /// Set third point.
-  SKETCHAPI_EXPORT
-  void setThirdPoint(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint);
-
   /// Dump wrapped feature
   SKETCHAPI_EXPORT
   virtual void dump(ModelHighAPI_Dumper& theDumper) const;