From 6f7e06fa49c42e268703383b1c701ec58e3ae7d3 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Wed, 14 Feb 2018 19:12:09 +0100 Subject: [PATCH] GCS: Extension of solver geometric elements to store whether they have dependent parameters --- src/Mod/Sketcher/App/planegcs/Geo.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Mod/Sketcher/App/planegcs/Geo.h b/src/Mod/Sketcher/App/planegcs/Geo.h index 44664c7d08..1cdb983347 100644 --- a/src/Mod/Sketcher/App/planegcs/Geo.h +++ b/src/Mod/Sketcher/App/planegcs/Geo.h @@ -28,7 +28,14 @@ namespace GCS { - class Point + class DependentParameters + { + public: + DependentParameters():hasDependentParameters(false) {} + bool hasDependentParameters; + }; + + class Point : public DependentParameters { public: Point(){x = 0; y = 0;} @@ -88,7 +95,7 @@ namespace GCS // Geometries /////////////////////////////////////// - class Curve //a base class for all curve-based objects (line, circle/arc, ellipse/arc) + class Curve: public DependentParameters //a base class for all curve-based objects (line, circle/arc, ellipse/arc) { public: virtual ~Curve(){}