/// to avoid cyclic dependencies in automatic updates: they mean that
/// update is performed right now and automatic updates are not needed
bool myStartUpdate, myEndUpdate;
+ /// to avoid (if possible) additional modification of changed coordinate (issue #855)
+ double myXEndBefore, myYEndBefore;
+
+ /// to define in which direction draw arc
+ double myParamBefore;
public:
/// Arc feature kind
return MY_END_ID;
}
+ /// Inversed flag
+ inline static const std::string& INVERSED_ID()
+ {
+ static const std::string MY_INVERSED_ID("InversedArc");
+ return MY_INVERSED_ID;
+ }
+
/// Returns the kind of a feature
SKETCHPLUGIN_EXPORT virtual const std::string& getKind()
{
/// \param theDeltaY the delta for Y coordinate is moved
SKETCHPLUGIN_EXPORT virtual void move(const double theDeltaX, const double theDeltaY);
- /// Return the distance between the feature and the point
- /// \param thePoint the point
- virtual double distanceToPoint(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint);
+ /// Updates the "reversed" flag
+ /// \param isReversed whether the arc will be reversed
+ void setReversed(bool isReversed);
+ /// Returns \c true is the arc is reversed
+ bool isReversed();
/// Use plugin manager for features creation
SketchPlugin_Arc();