Salome HOME
Update copyrights
[modules/shaper.git] / src / ConstructionPlugin / point_widget.xml
1 <source>
2   <toolbox id="creation_method">
3     <box id="by_xyz"
4          title="By X, Y, Z"
5          tooltip="Point at a given distance from the origin."
6          icon="icons/Construction/point_by_xyz_32x32.png">
7       <point_input id="point3d" default="0;0;0"/>
8     </box>
9     <box id="by_distance_on_edge"
10          title="By distance on edge"
11          tooltip="Point on an edge, at a given distance of one of its end."
12          icon="icons/Construction/point_by_distance_on_edge_32x32.png">
13       <shape_selector id="edge"
14                       label="Edge"
15                       tooltip="Edge for creating point on it."
16                       icon="icons/Construction/edge.png"
17                       shape_types="edge">
18         <validator id="GeomValidators_Finite"/>
19       </shape_selector>
20       <radiobox id="offset_type">
21         <radio id="offset_type_by_distance"
22              title="Distance on edge by value"
23              tooltip="Point on an edge, at a given distance specified by value."
24              icon="icons/Construction/point_by_distance_on_edge_24x24.png">
25           <doublevalue id="distance"
26              label="Distance"
27              tooltip="Distance value."
28              min="0.0"
29              default="10">
30           </doublevalue>
31         </radio>
32         <radio id="offset_type_by_ratio"
33              title="Distance on edge by ratio"
34              tooltip="Point on an edge, at a given distance specified by ratio."
35              icon="icons/Construction/point_by_ratio_on_edge_24x24.png">
36           <doublevalue id="ratio"
37              label="Ratio"
38              tooltip="Ratio value."
39              min="0.0"
40              max="1.0"
41              step="0.1"
42              default="0.5">
43           </doublevalue>
44         </radio>
45       </radiobox>
46       <boolvalue id="reverse"
47            label="Reverse"
48            tooltip="Distance from edge end point."
49            default="false"/>
50     </box>
51     <box id="by_projection"
52          title="By projection on edge or plane"
53          tooltip="Point on edge or plane by projection selected point."
54          icon="icons/Construction/point_by_projection_32x32.png">
55       <shape_selector id="point_to_project"
56                       label="Point"
57                       tooltip="Point for projection."
58                       icon="icons/Construction/point.png"
59                       shape_types="vertex">
60       </shape_selector>
61       <toolbox id="projection_type">
62         <box id="projection_type_on_edge"
63              title="By projection on edge"
64              tooltip="Point on edge by projection selected point."
65              icon="icons/Construction/point_by_projection_on_edge_24x24.png">
66           <shape_selector id="edge_for_point_projection"
67                           label="edge"
68                           tooltip="Edge for projection."
69                           icon="icons/Construction/edge.png"
70                           shape_types="edge">
71           </shape_selector>
72         </box>
73         <box id="projection_type_on_face"
74              title="By projection on face"
75              tooltip="Point on face surface by projection selected point."
76              icon="icons/Construction/point_by_projection_on_face_24x24.png">
77           <shape_selector id="face_for_point_projection"
78                           label="face"
79                           tooltip="Face for projection."
80                           icon="icons/Construction/face.png"
81                           shape_types="face">
82             <validator id="GeomValidators_Face" parameters="plane"/>
83           </shape_selector>
84         </box>
85       </toolbox>
86     </box>
87     <box id="by_intersection"
88          title="By intersection of objects"
89          tooltip="Point on intersection of different objects."
90          icon="icons/Construction/point_by_intersection_32x32.png">
91       <toolbox id="intersection_type">
92         <box id="intersection_type_by_lines"
93              title="By two lines intersection"
94              tooltip="Point by intersection of two coplanar lines."
95              icon="icons/Construction/point_by_lines_intersection_24x24.png">
96           <shape_selector id="intersection_line_1"
97                           label="First line"
98                           tooltip="First line."
99                           icon="icons/Construction/edge.png"
100                           shape_types="edge">
101             <validator id="GeomValidators_ShapeType" parameters="line"/>
102             <validator id="ConstructionPlugin_ValidatorPointLines"
103                        parameters="intersection_line_2"/>
104           </shape_selector>
105           <shape_selector id="intersection_line_2"
106                           label="Second line"
107                           tooltip="Second line."
108                           icon="icons/Construction/edge.png"
109                           shape_types="edge">
110             <validator id="GeomValidators_ShapeType" parameters="line"/>
111             <validator id="ConstructionPlugin_ValidatorPointLines"
112                        parameters="intersection_line_1"/>
113           </shape_selector>
114         </box>
115         <box id="intersection_type_by_line_and_plane"
116              title="By line and plane intersection"
117              tooltip="Point by intersection of line and plane."
118              icon="icons/Construction/point_by_line_and_plane_intersection_24x24.png">
119           <shape_selector id="intersection_line"
120                           label="Line"
121                           tooltip="Line for intersection."
122                           icon="icons/Construction/edge.png"
123                           shape_types="edge"
124                           geometrical_selection="true">
125             <validator id="ConstructionPlugin_ValidatorPointEdgeAndPlaneNotParallel"
126                        parameters="intersection_plane"/>
127           </shape_selector>
128           <shape_selector id="intersection_plane"
129                           label="Plane"
130                           tooltip="Plane for intersection."
131                           icon="icons/Construction/face.png"
132                           shape_types="face"
133                           geometrical_selection="true">
134             <validator id="GeomValidators_Face" parameters="plane"/>
135             <validator id="ConstructionPlugin_ValidatorPointEdgeAndPlaneNotParallel"
136                        parameters="intersection_line"/>
137           </shape_selector>
138           <optionalbox id="use_offset" title="Offset from the plane">
139             <doublevalue id="offset"
140                          label="Distance "
141                          tooltip="Distance from the plane"
142                          min="0"
143                          default="0"/>
144             <boolvalue id="reverse_offset"
145                        label="Reverse"
146                        tooltip="Reverse offset value"
147                        default="false"/>
148           </optionalbox>
149         </box>
150         <box id="intersection_type_by_planes"
151              title="By three planes intersection"
152              tooltip="Point by intersection of three planes."
153              icon="icons/Construction/point_by_planes_intersection_24x24.png">
154           <shape_selector id="intersection_plane_1"
155                           label="1st plane"
156                           tooltip="Select a planar face."
157                           icon="icons/Construction/face.png"
158                           shape_types="face">
159             <validator id="GeomValidators_Face" parameters="plane"/>
160             <validator id="ConstructionPlugin_ValidatorPointThreeNonParallelPlanes"
161                        parameters="intersection_plane_2, intersection_plane_3"/>
162           </shape_selector>
163           <shape_selector id="intersection_plane_2"
164                           label="2nd plane"
165                           tooltip="Select a planar face."
166                           icon="icons/Construction/face.png"
167                           shape_types="face">
168             <validator id="GeomValidators_Face" parameters="plane"/>
169             <validator id="ConstructionPlugin_ValidatorPointThreeNonParallelPlanes"
170                        parameters="intersection_plane_1, intersection_plane_3"/>
171           </shape_selector>
172           <shape_selector id="intersection_plane_3"
173                           label="3rd plane"
174                           tooltip="Select a planar face."
175                           icon="icons/Construction/face.png"
176                           shape_types="face">
177             <validator id="GeomValidators_Face" parameters="plane"/>
178             <validator id="ConstructionPlugin_ValidatorPointThreeNonParallelPlanes"
179                        parameters="intersection_plane_1, intersection_plane_2"/>
180           </shape_selector>
181         </box>
182         </toolbox>
183     </box>
184     <box id="by_geometrical_property"
185          title="By geometrical property of object"
186          tooltip="Point by center of gravity or center of circle."
187          icon="icons/Construction/point_by_geometrical_property_32x32.png">
188       <toolbox id="geometrical_property_type">
189         <box id="geometrical_property_type_by_center_of_gravity"
190              title="By center of gravity"
191              tooltip="Point by center of gravity."
192              icon="icons/Construction/point_by_center_of_gravity_24x24.png">
193           <shape_selector id="object_for_center_of_gravity"
194                           label="Object"
195                           tooltip="Object for center of gravity."
196                           icon="icons/Construction/shapes.png"
197                           shape_types="vertices edges wires faces shells solids compsolids compounds">
198             <validator id="GeomValidators_Finite"/>
199           </shape_selector>
200         </box>
201         <box id="geometrical_property_type_by_center_of_circle"
202              title="By center of circle"
203              tooltip="Point by center of circle."
204              icon="icons/Construction/point_by_center_of_circle_24x24.png">
205           <shape_selector id="object_for_center_of_circle"
206                           label="Object"
207                           tooltip="Object for center of circle."
208                           icon="icons/Construction/edge.png"
209                           shape_types="edges">
210             <validator id="GeomValidators_ShapeType" parameters="circle"/>
211           </shape_selector>
212         </box>
213       </toolbox>
214     </box>
215   </toolbox>
216 </source>