From b9640eec63d2251732adc765e6ccc3db1fc42a0f Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Fri, 22 Jan 2021 19:32:16 +0100 Subject: [PATCH] GCS: convenience diagnosis functions --- src/Mod/Sketcher/App/planegcs/GCS.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Mod/Sketcher/App/planegcs/GCS.h b/src/Mod/Sketcher/App/planegcs/GCS.h index 0764ab54c8..ee606a5095 100644 --- a/src/Mod/Sketcher/App/planegcs/GCS.h +++ b/src/Mod/Sketcher/App/planegcs/GCS.h @@ -368,6 +368,11 @@ namespace GCS void getDependentParamsGroups(std::vector> &pdependentparametergroups) const { pdependentparametergroups = pDependentParametersGroups;} bool isEmptyDiagnoseMatrix() const {return emptyDiagnoseMatrix;} + + bool hasConflicting() const {return !(hasDiagnosis && conflictingTags.empty());} + bool hasRedundant() const {return !(hasDiagnosis && redundantTags.empty());} + bool hasPartiallyRedundant() const {return !(hasDiagnosis && partiallyRedundantTags.empty());} + void invalidatedDiagnosis(); };