Salome HOME
Issue #2024: Redesign of circle and arc of circle
[modules/shaper.git] / src / SketchAPI / SketchAPI_Arc.h
index c1d302377f4473e6ec4fe8948fda3fff46859566..b0123d4aea54e1d5de76d77ee6ccc1e06d0655bb 100644 (file)
@@ -43,34 +43,6 @@ public:
                 const std::shared_ptr<GeomAPI_Pnt2d>& theEnd,
                 bool theInversed);
 
-  /// Constructor with values.
-  SKETCHAPI_EXPORT
-  SketchAPI_Arc(const std::shared_ptr<ModelAPI_Feature>& theFeature,
-                double theStartX, double theStartY,
-                double theEndX, double theEndY,
-                double thePassedX, double thePassedY);
-
-  /// Constructor with values.
-  SKETCHAPI_EXPORT
-  SketchAPI_Arc(const std::shared_ptr<ModelAPI_Feature>& theFeature,
-                const std::shared_ptr<GeomAPI_Pnt2d>& theStart,
-                const std::shared_ptr<GeomAPI_Pnt2d>& theEnd,
-                const std::shared_ptr<GeomAPI_Pnt2d>& thePassed);
-
-  /// Constructor with values.
-  SKETCHAPI_EXPORT
-  SketchAPI_Arc(const std::shared_ptr<ModelAPI_Feature>& theFeature,
-                const ModelHighAPI_RefAttr& theTangentPoint,
-                double theEndX, double theEndY,
-                bool theInversed);
-
-  /// Constructor with values.
-  SKETCHAPI_EXPORT
-  SketchAPI_Arc(const std::shared_ptr<ModelAPI_Feature>& theFeature,
-                const ModelHighAPI_RefAttr& theTangentPoint,
-                const std::shared_ptr<GeomAPI_Pnt2d>& theEnd,
-                bool theInversed);
-
   /// Constructor with values.
   SKETCHAPI_EXPORT
   SketchAPI_Arc(const std::shared_ptr<ModelAPI_Feature>& theFeature,
@@ -85,21 +57,15 @@ public:
   SKETCHAPI_EXPORT
   virtual ~SketchAPI_Arc();
 
-  INTERFACE_10(SketchPlugin_Arc::ID(),
-               arcType, SketchPlugin_Arc::ARC_TYPE(),
-               ModelAPI_AttributeString, /** Arc type */,
+  INTERFACE_7(SketchPlugin_Arc::ID(),
                center, SketchPlugin_Arc::CENTER_ID(),
                GeomDataAPI_Point2D, /** Center point */,
                startPoint, SketchPlugin_Arc::START_ID(),
                GeomDataAPI_Point2D, /** Start point */,
                endPoint, SketchPlugin_Arc::END_ID(),
                GeomDataAPI_Point2D, /** End point */,
-               inversed, SketchPlugin_Arc::INVERSED_ID(),
+               reversed, SketchPlugin_Arc::REVERSED_ID(),
                ModelAPI_AttributeBoolean, /** Inversed flag */,
-               passedPoint, SketchPlugin_Arc::PASSED_POINT_ID(),
-               GeomDataAPI_Point2D, /** Passed point */,
-               tangentPoint, SketchPlugin_Arc::TANGENT_POINT_ID(),
-               ModelAPI_AttributeRefAttr, /** Tangent point */,
                radius, SketchPlugin_Arc::RADIUS_ID(),
                ModelAPI_AttributeDouble, /** Radius */,
                angle, SketchPlugin_Arc::ANGLE_ID(),
@@ -121,30 +87,6 @@ public:
                            const std::shared_ptr<GeomAPI_Pnt2d>& theEnd,
                            bool theInversed);
 
-  /// Set by start, end and passed points.
-  SKETCHAPI_EXPORT
-  void setByStartEndPassed(double theStartX, double theStartY,
-                           double theEndX, double theEndY,
-                           double thePassedX, double thePassedY);
-
-  /// Set by start, end and passed points.
-  SKETCHAPI_EXPORT
-  void setByStartEndPassed(const std::shared_ptr<GeomAPI_Pnt2d>& theStart,
-                           const std::shared_ptr<GeomAPI_Pnt2d>& theEnd,
-                           const std::shared_ptr<GeomAPI_Pnt2d>& thePassed);
-
-  /// Set by tangent and end point.
-  SKETCHAPI_EXPORT
-  void setByTangent(const ModelHighAPI_RefAttr& theTangentPoint,
-                    double theEndX, double theEndY,
-                    bool theInversed);
-
-  /// Set by tangent and end point.
-  SKETCHAPI_EXPORT
-  void setByTangent(const ModelHighAPI_RefAttr& theTangentPoint,
-                    const std::shared_ptr<GeomAPI_Pnt2d>& theEnd,
-                    bool theInversed);
-
   /// Set by external.
   SKETCHAPI_EXPORT
   void setByExternal(const ModelHighAPI_Selection& theExternal);
@@ -153,14 +95,6 @@ public:
   SKETCHAPI_EXPORT
   void setByExternalName(const std::string& theExternalName);
 
-  /// Set radius.
-  SKETCHAPI_EXPORT
-  void setRadius(double theRadius);
-
-  /// Set angle.
-  SKETCHAPI_EXPORT
-  void setAngle(double theAngle);
-
   /// Dump wrapped feature
   SKETCHAPI_EXPORT
   virtual void dump(ModelHighAPI_Dumper& theDumper) const;