Salome HOME
Issue #2593: CEA 2018-2 Geometrical Naming
[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" default="0;0;0"/>
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              step="0.1"
63              default="0.5">
64           </doublevalue>
65         </radio>
66       </radiobox>
67       <boolvalue id="reverse"
68            label="Reverse"
69            tooltip="Distance from edge end point."
70            default="false"/>
71     </box>
72     <box id="by_projection"
73          title="By projection on edge or plane"
74          tooltip="Point on edge or plane by projection selected point."
75          icon="icons/Construction/point_by_projection_32x32.png">
76       <shape_selector id="point_to_project"
77                       label="Point"
78                       tooltip="Point for projection."
79                       icon="icons/Construction/point.png"
80                       shape_types="vertex">
81       </shape_selector>
82       <toolbox id="projection_type">
83         <box id="projection_type_on_edge"
84              title="By projection on edge"
85              tooltip="Point on edge by projection selected point."
86              icon="icons/Construction/point_by_projection_on_edge_24x24.png">
87           <shape_selector id="edge_for_point_projection"
88                           label="edge"
89                           tooltip="Edge for projection."
90                           icon="icons/Construction/edge.png"
91                           shape_types="edge">
92           </shape_selector>
93         </box>
94         <box id="projection_type_on_face"
95              title="By projection on face"
96              tooltip="Point on face surface by projection selected point."
97              icon="icons/Construction/point_by_projection_on_face_24x24.png">
98           <shape_selector id="face_for_point_projection"
99                           label="face"
100                           tooltip="Face for projection."
101                           icon="icons/Construction/face.png"
102                           shape_types="face">
103             <validator id="GeomValidators_Face" parameters="plane"/>
104           </shape_selector>
105         </box>
106       </toolbox>
107     </box>
108     <box id="by_intersection"
109          title="By intersection of objects"
110          tooltip="Point on intersection of different objects."
111          icon="icons/Construction/point_by_intersection_32x32.png">
112       <toolbox id="intersection_type">
113         <box id="intersection_type_by_lines"
114              title="By two lines intersection"
115              tooltip="Point by intersection of two coplanar lines."
116              icon="icons/Construction/point_by_lines_intersection_24x24.png">
117           <shape_selector id="intersection_line_1"
118                           label="First line"
119                           tooltip="First line."
120                           icon="icons/Construction/edge.png"
121                           shape_types="edge">
122             <validator id="GeomValidators_ShapeType" parameters="line"/>
123             <validator id="ConstructionPlugin_ValidatorPointLines"
124                        parameters="intersection_line_2"/>
125           </shape_selector>
126           <shape_selector id="intersection_line_2"
127                           label="Second line"
128                           tooltip="Second line."
129                           icon="icons/Construction/edge.png"
130                           shape_types="edge">
131             <validator id="GeomValidators_ShapeType" parameters="line"/>
132             <validator id="ConstructionPlugin_ValidatorPointLines"
133                        parameters="intersection_line_1"/>
134           </shape_selector>
135         </box>
136         <box id="intersection_type_by_line_and_plane"
137              title="By line and plane intersection"
138              tooltip="Point by intersection of line and plane."
139              icon="icons/Construction/point_by_line_and_plane_intersection_24x24.png">
140           <shape_selector id="intersection_line"
141                           label="Line"
142                           tooltip="Line for intersection."
143                           icon="icons/Construction/edge.png"
144                           shape_types="edge"
145                           geometrical_selection="true">
146             <validator id="ConstructionPlugin_ValidatorPointEdgeAndPlaneNotParallel"
147                        parameters="intersection_plane"/>
148           </shape_selector>
149           <shape_selector id="intersection_plane"
150                           label="Plane"
151                           tooltip="Plane for intersection."
152                           icon="icons/Construction/face.png"
153                           shape_types="face"
154                           geometrical_selection="true">
155             <validator id="GeomValidators_Face" parameters="plane"/>
156             <validator id="ConstructionPlugin_ValidatorPointEdgeAndPlaneNotParallel"
157                        parameters="intersection_line"/>
158           </shape_selector>
159           <optionalbox id="use_offset" title="Offset from the plane">
160             <doublevalue id="offset"
161                          label="Distance "
162                          tooltip="Distance from the plane"
163                          min="0"
164                          default="0"/>
165             <boolvalue id="reverse_offset"
166                        label="Reverse"
167                        tooltip="Reverse offset value"
168                        default="false"/>
169           </optionalbox>
170         </box>
171         <box id="intersection_type_by_planes"
172              title="By three planes intersection"
173              tooltip="Point by intersection of three planes."
174              icon="icons/Construction/point_by_planes_intersection_24x24.png">
175           <shape_selector id="intersection_plane_1"
176                           label="1st plane"
177                           tooltip="Select a planar face."
178                           icon="icons/Construction/face.png"
179                           shape_types="face">
180             <validator id="GeomValidators_Face" parameters="plane"/>
181             <validator id="ConstructionPlugin_ValidatorPointThreeNonParallelPlanes"
182                        parameters="intersection_plane_2, intersection_plane_3"/>
183           </shape_selector>
184           <shape_selector id="intersection_plane_2"
185                           label="2nd plane"
186                           tooltip="Select a planar face."
187                           icon="icons/Construction/face.png"
188                           shape_types="face">
189             <validator id="GeomValidators_Face" parameters="plane"/>
190             <validator id="ConstructionPlugin_ValidatorPointThreeNonParallelPlanes"
191                        parameters="intersection_plane_1, intersection_plane_3"/>
192           </shape_selector>
193           <shape_selector id="intersection_plane_3"
194                           label="3rd plane"
195                           tooltip="Select a planar face."
196                           icon="icons/Construction/face.png"
197                           shape_types="face">
198             <validator id="GeomValidators_Face" parameters="plane"/>
199             <validator id="ConstructionPlugin_ValidatorPointThreeNonParallelPlanes"
200                        parameters="intersection_plane_1, intersection_plane_2"/>
201           </shape_selector>
202         </box>
203         </toolbox>
204     </box>
205     <box id="by_geometrical_property"
206          title="By geometrical property of object"
207          tooltip="Point by center of gravity or center of circle."
208          icon="icons/Construction/point_by_geometrical_property_32x32.png">
209       <toolbox id="geometrical_property_type">
210         <box id="geometrical_property_type_by_center_of_gravity"
211              title="By center of gravity"
212              tooltip="Point by center of gravity."
213              icon="icons/Construction/point_by_center_of_gravity_24x24.png">
214           <shape_selector id="object_for_center_of_gravity"
215                           label="Object"
216                           tooltip="Object for center of gravity."
217                           icon="icons/Construction/shapes.png"
218                           shape_types="vertices edges wires faces shells solids compsolids compounds">
219             <validator id="GeomValidators_Finite"/>
220           </shape_selector>
221         </box>
222         <box id="geometrical_property_type_by_center_of_circle"
223              title="By center of circle"
224              tooltip="Point by center of circle."
225              icon="icons/Construction/point_by_center_of_circle_24x24.png">
226           <shape_selector id="object_for_center_of_circle"
227                           label="Object"
228                           tooltip="Object for center of circle."
229                           icon="icons/Construction/edge.png"
230                           shape_types="edges">
231             <validator id="GeomValidators_ShapeType" parameters="circle"/>
232           </shape_selector>
233         </box>
234       </toolbox>
235     </box>
236   </toolbox>
237 </source>