Salome HOME
Fix pipe to avoid moving of the path, if it is passed through the first face.
[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             <validator id="ConstructionPlugin_ValidatorPointEdgeAndPlaneNotParallel"
146                        parameters="intersection_plane"/>
147           </shape_selector>
148           <shape_selector id="intersection_plane"
149                           label="Plane"
150                           tooltip="Plane for intersection."
151                           icon="icons/Construction/face.png"
152                           shape_types="face">
153             <validator id="GeomValidators_Face" parameters="plane"/>
154             <validator id="ConstructionPlugin_ValidatorPointEdgeAndPlaneNotParallel"
155                        parameters="intersection_line"/>
156           </shape_selector>
157           <optionalbox id="use_offset" title="Offset from the plane">
158             <doublevalue id="offset"
159                          label="Distance "
160                          tooltip="Distance from the plane"
161                          min="0"
162                          default="0"/>
163             <boolvalue id="reverse_offset"
164                        label="Reverse"
165                        tooltip="Reverse offset value"
166                        default="false"/>
167           </optionalbox>
168         </box>
169         <box id="intersection_type_by_planes"
170              title="By three planes intersection"
171              tooltip="Point by intersection of three planes."
172              icon="icons/Construction/point_by_planes_intersection_24x24.png">
173           <shape_selector id="intersection_plane_1"
174                           label="1st 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_2, intersection_plane_3"/>
181           </shape_selector>
182           <shape_selector id="intersection_plane_2"
183                           label="2nd plane"
184                           tooltip="Select a planar face."
185                           icon="icons/Construction/face.png"
186                           shape_types="face">
187             <validator id="GeomValidators_Face" parameters="plane"/>
188             <validator id="ConstructionPlugin_ValidatorPointThreeNonParallelPlanes"
189                        parameters="intersection_plane_1, intersection_plane_3"/>
190           </shape_selector>
191           <shape_selector id="intersection_plane_3"
192                           label="3rd plane"
193                           tooltip="Select a planar face."
194                           icon="icons/Construction/face.png"
195                           shape_types="face">
196             <validator id="GeomValidators_Face" parameters="plane"/>
197             <validator id="ConstructionPlugin_ValidatorPointThreeNonParallelPlanes"
198                        parameters="intersection_plane_1, intersection_plane_2"/>
199           </shape_selector>
200         </box>
201         </toolbox>
202     </box>
203     <box id="by_geometrical_property"
204          title="By geometrical property of object"
205          tooltip="Point by center of gravity or center of circle."
206          icon="icons/Construction/point_by_geometrical_property_32x32.png">
207       <toolbox id="geometrical_property_type">
208         <box id="geometrical_property_type_by_center_of_gravity"
209              title="By center of gravity"
210              tooltip="Point by center of gravity."
211              icon="icons/Construction/point_by_center_of_gravity_24x24.png">
212           <shape_selector id="object_for_center_of_gravity"
213                           label="Object"
214                           tooltip="Object for center of gravity."
215                           icon="icons/Construction/shapes.png"
216                           shape_types="vertices edges wires faces shells solids compsolids compounds">
217             <validator id="GeomValidators_Finite"/>
218           </shape_selector>
219         </box>
220         <box id="geometrical_property_type_by_center_of_circle"
221              title="By center of circle"
222              tooltip="Point by center of circle."
223              icon="icons/Construction/point_by_center_of_circle_24x24.png">
224           <shape_selector id="object_for_center_of_circle"
225                           label="Object"
226                           tooltip="Object for center of circle."
227                           icon="icons/Construction/edge.png"
228                           shape_types="edges">
229             <validator id="GeomValidators_ShapeType" parameters="circle"/>
230           </shape_selector>
231         </box>
232       </toolbox>
233     </box>
234   </toolbox>
235 </source>