Salome HOME
Added option to create Construction Point by intersection of two lines.
[modules/shaper.git] / src / ConstructionPlugin / point_widget.xml
1 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 <source>
4   <toolbox id="creation_method">
5     <box id="by_xyz"
6          title="By X, Y, Z"
7          tooltip="Point at a given distance from the origin."
8          icon="icons/Construction/point_by_xyz_32x32.png">
9       <doublevalue id="x"
10                    label="X "
11                    tooltip="X coordinate."
12                    icon="icons/Construction/x_size.png"
13                    default="0"/>
14       <doublevalue id="y"
15                    label="Y "
16                    tooltip="Y coordinate."
17                    icon="icons/Construction/y_size.png"
18                    default="0"/>
19       <doublevalue id="z"
20                    label="Z "
21                    tooltip="Z coordinate."
22                    icon="icons/Construction/z_size.png"
23                    default="0"/>
24     </box>
25     <box id="by_distance_on_edge"
26          title="By distance on edge"
27          tooltip="Point on an edge, at a given distance of one of its end."
28          icon="icons/Construction/point_by_distance_on_edge_32x32.png">
29       <shape_selector id="edge"
30                       label="Edge"
31                       tooltip="Edge for creating point on it."
32                       icon="icons/Construction/edge.png"
33                       shape_types="edge">
34         <validator id="GeomValidators_Finite"/>
35       </shape_selector>
36       <groupbox title="Distance">
37         <doublevalue id="value"
38                      label="Value"
39                      tooltip="Distance value."
40                      icon="icons/Construction/distance_value.png"
41                      default="50"/>
42         <boolvalue id="percent"
43                    label="Percent(%)"
44                    tooltip="Distance in percent from length."
45                    default="true"/>
46       </groupbox>
47       <boolvalue id="reverse"
48            label="Reverse"
49            tooltip="Distance from edge end point."
50            default="false"/>
51     </box>
52     <box id="by_projection"
53          title="By projection"
54          tooltip="Point on face surface by projection selected point."
55          icon="icons/Construction/point_by_projection_32x32.png">
56       <shape_selector id="point"
57                       label="Point"
58                       tooltip="Point for projection."
59                       icon="icons/Construction/point.png"
60                       shape_types="vertex">
61       </shape_selector>
62       <shape_selector id="plane"
63                       label="Plane"
64                       tooltip="Plane for projection."
65                       icon="icons/Construction/face.png"
66                       shape_types="face">
67         <validator id="GeomValidators_Face" parameters="plane"/>
68       </shape_selector>
69     </box>
70     <box id="by_lines_intersection"
71          title="By intersection"
72          tooltip="Point by intersection of two coplanar lines."
73          icon="icons/Construction/point_by_lines_intersection_32x32.png">
74       <shape_selector id="first_line"
75                       label="First line"
76                       tooltip="First line."
77                       icon="icons/Construction/point.png"
78                       shape_types="edge">
79         <validator id="GeomValidators_ShapeType" parameters="line"/>
80         <validator id="ConstructionPlugin_ValidatorPointLines" parameters="second_line"/>
81       </shape_selector>
82       <shape_selector id="second_line"
83                       label="Second line"
84                       tooltip="Second line."
85                       icon="icons/Construction/point.png"
86                       shape_types="edge">
87         <validator id="GeomValidators_ShapeType" parameters="line"/>
88         <validator id="ConstructionPlugin_ValidatorPointLines" parameters="first_line"/>
89       </shape_selector>
90     </box>
91   </toolbox>
92 </source>