Salome HOME
Fix compilation errors (part 2)
[modules/shaper.git] / src / ConstructionPlugin / point_widget.xml
index 506f48f56ab6a0c9703d1c9940605b8e017f2d89..0deb69aeb84328e78dac2a255f0ebe099f28d4d7 100644 (file)
@@ -1,7 +1,118 @@
 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
 
 <source>
-  <doublevalue id="x" label="X:" icon=":pictures/x_point.png" tooltip="Set X"/>
-  <doublevalue id="y" label="Y:" icon=":pictures/y_point.png" tooltip="Set Y"/>
-  <doublevalue id="z" label="Z:" icon=":pictures/z_point.png" tooltip="Set Z"/>
+  <doublevalue id="x" label="X " tooltip="X coordinate" default="0"/>
+  <doublevalue id="y" label="Y " tooltip="Y coordinate" default="0"/>
+  <doublevalue id="z" label="Z " tooltip="Z coordinate" default="0"/>
+
+  <!--<toolbox id="creation_method">
+    <box id="by_xyz"
+         title="By X, Y, Z"
+         tooltip="Point at a given distance from the origin."
+         icon="icons/Construction/point_by_xyz_32x32.png">
+      <doublevalue id="x"
+                   label="X "
+                   tooltip="X coordinate."
+                   icon="icons/Construction/x_size.png"
+                   default="0"/>
+      <doublevalue id="y"
+                   label="Y "
+                   tooltip="Y coordinate."
+                   icon="icons/Construction/y_size.png"
+                   default="0"/>
+      <doublevalue id="z"
+                   label="Z "
+                   tooltip="Z coordinate."
+                   icon="icons/Construction/z_size.png"
+                   default="0"/>
+    </box>
+    <box id="by_distance_on_edge"
+         title="By distance on edge"
+         tooltip="Point on an edge, at a given distance of one of its end."
+         icon="icons/Construction/point_by_distance_on_edge_32x32.png">
+      <shape_selector id="edge"
+                      label="Edge"
+                      tooltip="Edge for creating point on it."
+                      icon="icons/Construction/edge.png"
+                      shape_types="edge">
+        <validator id="GeomValidators_Finite"/>
+      </shape_selector>
+      <groupbox title="Distance">
+        <doublevalue id="value"
+                     label="Value"
+                     tooltip="Distance value."
+                     icon="icons/Construction/distance_value.png"
+                     default="50"/>
+        <boolvalue id="percent"
+                   label="Percent(%)"
+                   tooltip="Distance in percent from length."
+                   default="true"/>
+      </groupbox>
+      <boolvalue id="reverse"
+           label="Reverse"
+           tooltip="Distance from edge end point."
+           default="false"/>
+    </box>
+    <box id="by_projection"
+         title="By projection"
+         tooltip="Point on face surface by projection selected point."
+         icon="icons/Construction/point_by_projection_32x32.png">
+      <shape_selector id="point"
+                      label="Point"
+                      tooltip="Point for projection."
+                      icon="icons/Construction/point.png"
+                      shape_types="vertex">
+      </shape_selector>
+      <shape_selector id="plane"
+                      label="Plane"
+                      tooltip="Plane for projection."
+                      icon="icons/Construction/face.png"
+                      shape_types="face">
+        <validator id="GeomValidators_Face" parameters="plane"/>
+      </shape_selector>
+    </box>
+    <box id="by_lines_intersection"
+         title="By two lines intersection"
+         tooltip="Point by intersection of two coplanar lines."
+         icon="icons/Construction/point_by_lines_intersection_32x32.png">
+      <shape_selector id="first_line"
+                      label="First line"
+                      tooltip="First line."
+                      icon="icons/Construction/edge.png"
+                      shape_types="edge">
+        <validator id="GeomValidators_ShapeType" parameters="line"/>
+        <validator id="ConstructionPlugin_ValidatorPointLines" parameters="second_line"/>
+      </shape_selector>
+      <shape_selector id="second_line"
+                      label="Second line"
+                      tooltip="Second line."
+                      icon="icons/Construction/edge.png"
+                      shape_types="edge">
+        <validator id="GeomValidators_ShapeType" parameters="line"/>
+        <validator id="ConstructionPlugin_ValidatorPointLines" parameters="first_line"/>
+      </shape_selector>
+    </box>
+    <box id="by_line_and_plane_intersection"
+         title="By line and plane intersection"
+         tooltip="Point by intersection of line and plane."
+         icon="icons/Construction/point_by_line_and_plane_intersection_32x32.png">
+      <shape_selector id="intersection_line"
+                      label="Line"
+                      tooltip="Line for intersection."
+                      icon="icons/Construction/edge.png"
+                      shape_types="edge">
+        <validator id="GeomValidators_ShapeType" parameters="line"/>
+        <validator id="ConstructionPlugin_ValidatorPointLineAndPlaneNotParallel" parameters="intersection_plane"/>
+      </shape_selector>
+      <shape_selector id="intersection_plane"
+                      label="Plane"
+                      tooltip="Plane for intersection."
+                      icon="icons/Construction/face.png"
+                      shape_types="face">
+        <validator id="GeomValidators_Face" parameters="plane"/>
+        <validator id="ConstructionPlugin_ValidatorPointLineAndPlaneNotParallel" parameters="intersection_line"/>
+      </shape_selector>
+    </box>
+
+  </toolbox>-->
 </source>