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