Salome HOME
Issue #2593: CEA 2018-2 Geometrical Naming
[modules/shaper.git] / src / FeaturesPlugin / revolutionfuse_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   <groupbox title="Revolution">
24     <sketch_launcher id="sketch"
25       attribute_list_id="base"
26       label="Select:&lt;br /&gt;
27 1. Planar face of non-sketch object or a plane. Sketch creation will be started.&lt;br /&gt;
28 2. An existing sketch face or contour. Extrusion will be filled by it.&lt;br /&gt;
29 3. An existing result shape of kind: wires/edge/vertices.Extrusion will be filled by it."
30       shape_types="vertices edges wires faces shells compounds">
31       <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
32     </sketch_launcher>
33     <multi_selector id="base"
34       label="Select a sketch face"
35       icon="icons/Features/sketch.png"
36       tooltip="Select a sketch face"
37       type_choice="vertices edges wires faces shells compounds"
38       concealment="true">
39       <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell,compound"/>
40     </multi_selector>
41     <shape_selector id="axis_object"
42                     icon="icons/Features/axis.png"
43                     label="Axis"
44                     tooltip="Select an edge for axis"
45                     shape_types="edge"
46                     geometrical_selection="true"
47                     default="">
48       <validator id="GeomValidators_ShapeType" parameters="line"/>
49     </shape_selector>
50     <toolbox id="CreationMethod">
51       <box id="ByAngles" title="By angles" icon="icons/Features/angle_up_down_32x32.png">
52         <groupbox>
53           <doublevalue
54             id="to_angle"
55             label="Angle"
56             step="1.0"
57             default="0"
58             icon="icons/Features/angle_up.png"
59             tooltip="To angle">
60           </doublevalue>
61         </groupbox>
62         <groupbox>
63           <doublevalue
64             id="from_angle"
65             label="Angle"
66             step="1.0"
67             default="10"
68             icon="icons/Features/angle_down.png"
69             tooltip="From angle">
70           </doublevalue>
71         </groupbox>
72       </box>
73       <box id="ByPlanesAndOffsets" title="By bounding planes and angles" icon="icons/Features/plane_inverted_32x32.png">
74         <groupbox title="From">
75           <shape_selector id="from_object"
76                           icon="icons/Features/plane.png"
77                           label="Plane face"
78                           tooltip="Bounding plane (select a planar face)"
79                           shape_types="face"
80                           geometrical_selection="true"
81                           default="&lt;sketch&gt;">
82             <validator id="GeomValidators_Face" parameters="plane"/>
83           </shape_selector>
84           <doublevalue id="from_offset" label="Angle"
85             step="1.0" default="0"
86             icon="icons/Features/angle_up_down.png"
87             tooltip="Angle for &quot;from&quot; for bounding plane">
88           </doublevalue>
89         </groupbox>
90         <groupbox title="To">
91           <shape_selector id="to_object"
92                           icon="icons/Features/plane_inverted.png"
93                           label="Plane face"
94                           tooltip="Bounding plane (select a planar face)"
95                           shape_types="face"
96                           geometrical_selection="true"
97                           default="&lt;sketch&gt;">
98             <validator id="GeomValidators_Face" parameters="plane"/>
99           </shape_selector>
100           <doublevalue  id="to_offset" label="Angle"
101             step="1.0" default="0"
102             icon="icons/Features/angle_up_down.png"
103             tooltip="Angle for &quot;to&quot; bounding plane">
104           </doublevalue>
105         </groupbox>
106       </box>
107     </toolbox>
108   </groupbox>
109   <multi_selector id="main_objects"
110     label="Fuse with:"
111     icon="icons/Features/cut_shape.png"
112     tooltip="Objects to Fuse"
113     type_choice="Objects"
114     use_choice="false"
115     concealment="true"
116     main_argument="true">
117     <validator id="GeomValidators_ShapeType" parameters="solid"/>
118   </multi_selector>
119   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,ByAngles,sketch_selection,to_angle,from_angle,to_object,to_offset,from_object,from_offset"/>
120   <validator id="FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects" parameters="base"/>
121 </source>