Salome HOME
Fix for the issue #1794: can't create a plane by a vertex and an axis if the vertex...
[modules/shaper.git] / src / ConstructionPlugin / plane_widget.xml
index 37e48b6fd8e1ef8c6ab8bbb25da64be727df27f9..29b5f665376999c8d5809038fe0ea5dacbca58b8 100644 (file)
                       icon="icons/Construction/edge.png"
                       shape_types="edge">
         <validator id="GeomValidators_ShapeType" parameters="line"/>
-        <validator id="ConstructionPlugin_ValidatorPlaneLinePoint" parameters="point"/>
+        <validator id="ConstructionPlugin_ValidatorPlaneLinePoint" parameters="point,perpendicular"/>
       </shape_selector>
       <shape_selector id="point"
                       label="Point"
                       tooltip="Select point."
                       icon="icons/Construction/point.png"
                       shape_types="vertex">
-        <validator id="ConstructionPlugin_ValidatorPlaneLinePoint" parameters="line"/>
+        <validator id="ConstructionPlugin_ValidatorPlaneLinePoint" parameters="line,perpendicular"/>
       </shape_selector>
+      <boolvalue id="perpendicular"
+           label="Perpendicular "
+           tooltip="Makes the plane perpendicular to the selected line."
+           default="false"/>
     </box>
     <box id="by_other_plane"
          title="By other plane"
         <box id="by_distance_from_other"
              title="By distance from other"
              tooltip="Plane by distance from other plane."
-             icon="icons/Construction/plane_by_distance_from_other_32x32.png">
+             icon="icons/Construction/plane_by_distance_from_other_24x24.png">
           <doublevalue id="distance"
                        label="Distance"
                        tooltip="Distance from selected face to plane."
                        icon="icons/Construction/distance_value.png"
+                       min="0"
                        default="10">
-            <validator id="GeomValidators_Positive"/>
           </doublevalue>
-          <!--<boolvalue id="distance_reverse"
+          <boolvalue id="reverse"
                      label="Reverse"
-                     tooltip="Distance from plane."
-                     default="false"/>-->
+                     tooltip="Checked means on the other side of the selected plane."
+                     default="false"/>
         </box>
         <box id="by_coincident_to_point"
              title="By coincident to point"
              tooltip="Plane by coincident to point."
-             icon="icons/Construction/plane_by_coincident_to_point_32x32.png">
+             icon="icons/Construction/plane_by_coincident_to_point_24x24.png">
           <shape_selector id="coincident_point"
                           label="Point"
                           tooltip="Select point."
@@ -90,7 +94,7 @@
         <box id="by_rotation"
              title="By rotation"
              tooltip="Plane by rotation around axis."
-             icon="icons/Construction/plane_by_rotation_32x32.png">
+             icon="icons/Construction/plane_by_rotation_24x24.png">
           <shape_selector id="axis"
                           label="Axis"
                           tooltip="Select line for axis."
                        label="Angle"
                        tooltip="Angle for rotation around axis."
                        icon="icons/Construction/angle.png"
-                       default="0"/>
+                       min="0"
+                       default="45">
+            <validator id="GeomValidators_Positive"/>
+          </doublevalue>
         </box>
       </toolbox>
     </box>