Salome HOME
d82ab6c45f78eeff6da38dbac4aa1ec1aa661fee
[modules/shaper.git] / src / ConstructionPlugin / point_widget.xml
1 <!--
2 Copyright (C) 2014-2017  CEA/DEN, EDF R&D
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18 See http:##www.salome-platform.org/ or
19 email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
20 -->
21
22 <source>
23   <toolbox id="creation_method">
24     <box id="by_xyz"
25          title="By X, Y, Z"
26          tooltip="Point at a given distance from the origin."
27          icon="icons/Construction/point_by_xyz_32x32.png">
28       <point_input id="point3d"/>
29     </box>
30     <box id="by_distance_on_edge"
31          title="By distance on edge"
32          tooltip="Point on an edge, at a given distance of one of its end."
33          icon="icons/Construction/point_by_distance_on_edge_32x32.png">
34       <shape_selector id="edge"
35                       label="Edge"
36                       tooltip="Edge for creating point on it."
37                       icon="icons/Construction/edge.png"
38                       shape_types="edge">
39         <validator id="GeomValidators_Finite"/>
40       </shape_selector>
41       <radiobox id="offset_type">
42         <radio id="offset_type_by_distance"
43              title="Distance on edge by value"
44              tooltip="Point on an edge, at a given distance specified by value."
45              icon="icons/Construction/point_by_distance_on_edge_24x24.png">
46           <doublevalue id="distance"
47              label="Distance"
48              tooltip="Distance value."
49              min="0.0"
50              default="10">
51           </doublevalue>
52         </radio>
53         <radio id="offset_type_by_ratio"
54              title="Distance on edge by ratio"
55              tooltip="Point on an edge, at a given distance specified by ratio."
56              icon="icons/Construction/point_by_ratio_on_edge_24x24.png">
57           <doublevalue id="ratio"
58              label="Ratio"
59              tooltip="Ratio value."
60              min="0.0"
61              max="1.0"
62              default="0.5">
63           </doublevalue>
64         </radio>
65       </radiobox>
66       <boolvalue id="reverse"
67            label="Reverse"
68            tooltip="Distance from edge end point."
69            default="false"/>
70     </box>
71     <box id="by_projection"
72          title="By projection on edge or plane"
73          tooltip="Point on edge or plane by projection selected point."
74          icon="icons/Construction/point_by_projection_32x32.png">
75       <shape_selector id="point_to_project"
76                       label="Point"
77                       tooltip="Point for projection."
78                       icon="icons/Construction/point.png"
79                       shape_types="vertex">
80       </shape_selector>
81       <toolbox id="projection_type">
82         <box id="projection_type_on_edge"
83              title="By projection on edge"
84              tooltip="Point on edge by projection selected point."
85              icon="icons/Construction/point_by_projection_on_edge_24x24.png">
86           <shape_selector id="edge_for_point_projection"
87                           label="edge"
88                           tooltip="Edge for projection."
89                           icon="icons/Construction/edge.png"
90                           shape_types="edge">
91           </shape_selector>
92         </box>
93         <box id="projection_type_on_face"
94              title="By projection on face"
95              tooltip="Point on face surface by projection selected point."
96              icon="icons/Construction/point_by_projection_on_face_24x24.png">
97           <shape_selector id="face_for_point_projection"
98                           label="face"
99                           tooltip="Face for projection."
100                           icon="icons/Construction/face.png"
101                           shape_types="face">
102             <validator id="GeomValidators_Face" parameters="plane"/>
103           </shape_selector>
104         </box>
105       </toolbox>
106     </box>
107     <box id="by_intersection"
108          title="By intersection of objects"
109          tooltip="Point on intersection of different objects."
110          icon="icons/Construction/point_by_intersection_32x32.png">
111       <toolbox id="intersection_type">
112         <box id="intersection_type_by_lines"
113              title="By two lines intersection"
114              tooltip="Point by intersection of two coplanar lines."
115              icon="icons/Construction/point_by_lines_intersection_24x24.png">
116           <shape_selector id="intersection_line_1"
117                           label="First line"
118                           tooltip="First line."
119                           icon="icons/Construction/edge.png"
120                           shape_types="edge">
121             <validator id="GeomValidators_ShapeType" parameters="line"/>
122             <validator id="ConstructionPlugin_ValidatorPointLines"
123                        parameters="intersection_line_2"/>
124           </shape_selector>
125           <shape_selector id="intersection_line_2"
126                           label="Second line"
127                           tooltip="Second line."
128                           icon="icons/Construction/edge.png"
129                           shape_types="edge">
130             <validator id="GeomValidators_ShapeType" parameters="line"/>
131             <validator id="ConstructionPlugin_ValidatorPointLines"
132                        parameters="intersection_line_1"/>
133           </shape_selector>
134         </box>
135         <box id="intersection_type_by_line_and_plane"
136              title="By line and plane intersection"
137              tooltip="Point by intersection of line and plane."
138              icon="icons/Construction/point_by_line_and_plane_intersection_24x24.png">
139           <shape_selector id="intersection_line"
140                           label="Line"
141                           tooltip="Line for intersection."
142                           icon="icons/Construction/edge.png"
143                           shape_types="edge">
144             <validator id="ConstructionPlugin_ValidatorPointEdgeAndPlaneNotParallel"
145                        parameters="intersection_plane"/>
146           </shape_selector>
147           <shape_selector id="intersection_plane"
148                           label="Plane"
149                           tooltip="Plane for intersection."
150                           icon="icons/Construction/face.png"
151                           shape_types="face">
152             <validator id="GeomValidators_Face" parameters="plane"/>
153             <validator id="ConstructionPlugin_ValidatorPointEdgeAndPlaneNotParallel"
154                        parameters="intersection_line"/>
155           </shape_selector>
156           <optionalbox id="use_offset" title="Offset from the plane">
157             <doublevalue id="offset"
158                          label="Distance "
159                          tooltip="Distance from the plane"
160                          min="0"
161                          default="0"/>
162             <boolvalue id="reverse_offset"
163                        label="Reverse"
164                        tooltip="Reverse offset value"
165                        default="false"/>
166           </optionalbox>
167         </box>
168         <box id="intersection_type_by_planes"
169              title="By three planes intersection"
170              tooltip="Point by intersection of three planes."
171              icon="icons/Construction/point_by_planes_intersection_24x24.png">
172           <shape_selector id="intersection_plane_1"
173                           label="1st 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_2, intersection_plane_3"/>
180           </shape_selector>
181           <shape_selector id="intersection_plane_2"
182                           label="2nd plane"
183                           tooltip="Select a planar face."
184                           icon="icons/Construction/face.png"
185                           shape_types="face">
186             <validator id="GeomValidators_Face" parameters="plane"/>
187             <validator id="ConstructionPlugin_ValidatorPointThreeNonParallelPlanes"
188                        parameters="intersection_plane_1, intersection_plane_3"/>
189           </shape_selector>
190           <shape_selector id="intersection_plane_3"
191                           label="3rd plane"
192                           tooltip="Select a planar face."
193                           icon="icons/Construction/face.png"
194                           shape_types="face">
195             <validator id="GeomValidators_Face" parameters="plane"/>
196             <validator id="ConstructionPlugin_ValidatorPointThreeNonParallelPlanes"
197                        parameters="intersection_plane_1, intersection_plane_2"/>
198           </shape_selector>
199         </box>
200         </toolbox>
201     </box>
202     <box id="by_geometrical_property"
203          title="By geometrical property of object"
204          tooltip="Point by center of gravity or center of circle."
205          icon="icons/Construction/point_by_geometrical_property_32x32.png">
206       <toolbox id="geometrical_property_type">
207         <box id="geometrical_property_type_by_center_of_gravity"
208              title="By center of gravity"
209              tooltip="Point by center of gravity."
210              icon="icons/Construction/point_by_center_of_gravity_24x24.png">
211           <shape_selector id="object_for_center_of_gravity"
212                           label="Object"
213                           tooltip="Object for center of gravity."
214                           icon="icons/Construction/shapes.png"
215                           shape_types="vertices edges wires faces shells solids compsolids compounds">
216             <validator id="GeomValidators_Finite"/>
217           </shape_selector>
218         </box>
219         <box id="geometrical_property_type_by_center_of_circle"
220              title="By center of circle"
221              tooltip="Point by center of circle."
222              icon="icons/Construction/point_by_center_of_circle_24x24.png">
223           <shape_selector id="object_for_center_of_circle"
224                           label="Object"
225                           tooltip="Object for center of circle."
226                           icon="icons/Construction/edge.png"
227                           shape_types="edges">
228             <validator id="GeomValidators_ShapeType" parameters="circle"/>
229           </shape_selector>
230         </box>
231       </toolbox>
232     </box>
233   </toolbox>
234 </source>