]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1649: New creation of Construction Planes
authornds <nds@opencascade.com>
Tue, 19 Jul 2016 12:20:16 +0000 (15:20 +0300)
committernds <nds@opencascade.com>
Tue, 19 Jul 2016 12:20:16 +0000 (15:20 +0300)
"Reverse" boolean attribute in plane creation in distance to other plane.
It is commented as ModelAPI/Test/Test1064.py should be corrected also.

src/ConstructionPlugin/ConstructionPlugin_Plane.cpp
src/ConstructionPlugin/ConstructionPlugin_Plane.h
src/ConstructionPlugin/plane_widget.xml

index 68f3e5b0a732aa1a05f3026b072696f912c4be85..f4b966ac108a4c27ce283d071bda50e4b506981b 100644 (file)
@@ -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());
index 15894a2f6ee7d34b13cdacf068e5c92e75fc287c..b9a7141f5a788930089d48759e90483b9f234616 100644 (file)
@@ -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()
index 8f3ed0dc541f34d5dd5ac90a54345ddf5e5b536e..37e48b6fd8e1ef8c6ab8bbb25da64be727df27f9 100644 (file)
                        default="10">
             <validator id="GeomValidators_Positive"/>
           </doublevalue>
-          <boolvalue id="distance_reverse"
+          <!--<boolvalue id="distance_reverse"
                      label="Reverse"
                      tooltip="Distance from plane."
-                     default="false"/>
+                     default="false"/>-->
         </box>
         <box id="by_coincident_to_point"
              title="By coincident to point"