Sketcher: GeoId, GeoElementId and GeoUndef refactor
=================================================== This commit is an independent refactor of the identifications used at Sketcher level. It introduces a new type "GeoElementId" as a combination of GeoId and PointPos. It moves the Undefined GeoId, previous Constraint::GeoUndef to GeoEnum, together with all other fixed values of GeoIds.
This commit is contained in:
@@ -43,18 +43,16 @@ using namespace Base;
|
||||
|
||||
TYPESYSTEM_SOURCE(Sketcher::Constraint, Base::Persistence)
|
||||
|
||||
const int Constraint::GeoUndef = -2000;
|
||||
|
||||
Constraint::Constraint()
|
||||
: Value(0.0),
|
||||
Type(None),
|
||||
AlignmentType(Undef),
|
||||
Name(""),
|
||||
First(GeoUndef),
|
||||
First(GeoEnum::GeoUndef),
|
||||
FirstPos(none),
|
||||
Second(GeoUndef),
|
||||
Second(GeoEnum::GeoUndef),
|
||||
SecondPos(none),
|
||||
Third(GeoUndef),
|
||||
Third(GeoEnum::GeoUndef),
|
||||
ThirdPos(none),
|
||||
LabelDistance(10.f),
|
||||
LabelPosition(0.f),
|
||||
|
||||
Reference in New Issue
Block a user