From: nds Date: Tue, 19 Jul 2016 13:28:08 +0000 (+0300) Subject: Issue #1649: New creation of Construction Planes X-Git-Tag: V_2.5.0~181 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=549138c2302de10c21a72b8c3ac4da9694874da9;p=modules%2Fshaper.git Issue #1649: New creation of Construction Planes Positive validator using breaks the test. --- diff --git a/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp b/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp index f4b966ac1..68f3e5b0a 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp +++ b/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp @@ -68,7 +68,7 @@ void ConstructionPlugin_Plane::initAttributes() data()->addAttribute(CREATION_METHOD_BY_OTHER_PLANE_OPTION(), ModelAPI_AttributeString::typeId()); data()->addAttribute(PLANE(), ModelAPI_AttributeSelection::typeId()); data()->addAttribute(DISTANCE(), ModelAPI_AttributeDouble::typeId()); - //data()->addAttribute(DISTANCE_REVERSE(), ModelAPI_AttributeBoolean::typeId()); + data()->addAttribute(DISTANCE_REVERSE(), ModelAPI_AttributeBoolean::typeId()); data()->addAttribute(COINCIDENT_POINT(), ModelAPI_AttributeSelection::typeId()); data()->addAttribute(AXIS(), ModelAPI_AttributeSelection::typeId()); data()->addAttribute(ANGLE(), ModelAPI_AttributeDouble::typeId()); diff --git a/src/ConstructionPlugin/ConstructionPlugin_Plane.h b/src/ConstructionPlugin/ConstructionPlugin_Plane.h index b9a7141f5..15894a2f6 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Plane.h +++ b/src/ConstructionPlugin/ConstructionPlugin_Plane.h @@ -160,11 +160,11 @@ public: } /// Attribute name for reverse in distance from other case - /*inline static const std::string& DISTANCE_REVERSE() + inline static const std::string& DISTANCE_REVERSE() { static const std::string ATTR_DISTANCE_REVERSE_ID("distance_reverse"); return ATTR_DISTANCE_REVERSE_ID; - }*/ + } /// Attribute name for coincident point. inline static const std::string& COINCIDENT_POINT() diff --git a/src/ConstructionPlugin/plane_widget.xml b/src/ConstructionPlugin/plane_widget.xml index 797dacb60..9085e2c76 100644 --- a/src/ConstructionPlugin/plane_widget.xml +++ b/src/ConstructionPlugin/plane_widget.xml @@ -68,13 +68,11 @@ label="Distance" tooltip="Distance from selected face to plane." icon="icons/Construction/distance_value.png" - default="0"> - - - + default="false"/>