Salome HOME
Issue #2071 Fatal error when Create box
[modules/shaper.git] / src / SketchAPI / SketchAPI_Arc.h
index 4cff2004402bbd5ce9f7a7c8e59b296cc59f200d..b0123d4aea54e1d5de76d77ee6ccc1e06d0655bb 100644 (file)
@@ -17,7 +17,7 @@
 class ModelHighAPI_RefAttr;
 class ModelHighAPI_Selection;
 
-/// \class FeaturesAPI_Boolean
+/// \class SketchAPI_Arc
 /// \ingroup CPPHighAPI
 /// \brief Interface for Arc feature.
 class SketchAPI_Arc: public SketchAPI_SketchEntity
@@ -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,17 +57,21 @@ public:
   SKETCHAPI_EXPORT
   virtual ~SketchAPI_Arc();
 
-  INTERFACE_10(SketchPlugin_Arc::ID(),
-               arcType, SketchPlugin_Arc::ARC_TYPE(), ModelAPI_AttributeString, /** Arc type */,
-               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(), 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(), ModelAPI_AttributeDouble, /** Angle */,
-               external, SketchPlugin_Arc::EXTERNAL_ID(), ModelAPI_AttributeSelection, /** External */)
+  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 */,
+               reversed, SketchPlugin_Arc::REVERSED_ID(),
+               ModelAPI_AttributeBoolean, /** Inversed flag */,
+               radius, SketchPlugin_Arc::RADIUS_ID(),
+               ModelAPI_AttributeDouble, /** Radius */,
+               angle, SketchPlugin_Arc::ANGLE_ID(),
+               ModelAPI_AttributeDouble, /** Angle */,
+               external, SketchPlugin_Arc::EXTERNAL_ID(),
+               ModelAPI_AttributeSelection, /** External */)
 
   /// Set by center and start, end point.
   SKETCHAPI_EXPORT
@@ -111,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);
@@ -143,13 +95,9 @@ public:
   SKETCHAPI_EXPORT
   void setByExternalName(const std::string& theExternalName);
 
-  /// Set radius.
-  SKETCHAPI_EXPORT
-  void setRadius(double theRadius);
-
-  /// Set angle.
+  /// Dump wrapped feature
   SKETCHAPI_EXPORT
-  void setAngle(double theAngle);
+  virtual void dump(ModelHighAPI_Dumper& theDumper) const;
 };
 
 /// Pointer on Arc object.