From: nds Date: Thu, 26 Jun 2014 12:23:58 +0000 (+0400) Subject: refs #80 - Sketch base GUI: create/draw point, circle and arc X-Git-Tag: V_0.4.4~223^2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=458411a82fcc9e0146ce49a41c88a47b26240181;p=modules%2Fshaper.git refs #80 - Sketch base GUI: create/draw point, circle and arc Position point for parallel and perpendicular constraints. --- diff --git a/src/SketchPlugin/SketchPlugin_ConstraintParallel.cpp b/src/SketchPlugin/SketchPlugin_ConstraintParallel.cpp index 342b2c1de..92e23ead4 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintParallel.cpp +++ b/src/SketchPlugin/SketchPlugin_ConstraintParallel.cpp @@ -12,6 +12,8 @@ #include #include +#include + SketchPlugin_ConstraintParallel::SketchPlugin_ConstraintParallel() { } @@ -20,6 +22,7 @@ void SketchPlugin_ConstraintParallel::initAttributes() { data()->addAttribute(CONSTRAINT_ATTR_ENTITY_A, ModelAPI_AttributeRefAttr::type()); data()->addAttribute(CONSTRAINT_ATTR_ENTITY_B, ModelAPI_AttributeRefAttr::type()); + data()->addAttribute(CONSTRAINT_ATTR_FLYOUT_VALUE_PNT, GeomDataAPI_Point2D::type()); } void SketchPlugin_ConstraintParallel::execute() diff --git a/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp b/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp index ca5e22972..d3646af7e 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp +++ b/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp @@ -4,6 +4,8 @@ #include "SketchPlugin_ConstraintPerpendicular.h" +#include + #include #include #include @@ -20,6 +22,7 @@ void SketchPlugin_ConstraintPerpendicular::initAttributes() { data()->addAttribute(CONSTRAINT_ATTR_ENTITY_A, ModelAPI_AttributeRefAttr::type()); data()->addAttribute(CONSTRAINT_ATTR_ENTITY_B, ModelAPI_AttributeRefAttr::type()); + data()->addAttribute(CONSTRAINT_ATTR_FLYOUT_VALUE_PNT, GeomDataAPI_Point2D::type()); } void SketchPlugin_ConstraintPerpendicular::execute() diff --git a/src/SketchPlugin/plugin-Sketch.xml b/src/SketchPlugin/plugin-Sketch.xml index 582a118c6..20c8e80d5 100644 --- a/src/SketchPlugin/plugin-Sketch.xml +++ b/src/SketchPlugin/plugin-Sketch.xml @@ -1,7 +1,7 @@ - + @@ -21,11 +21,7 @@ - - +