Salome HOME
5c10528a19f22a9a88bd18a4295de85ce6dd7896
[modules/shaper.git] / src / FeaturesPlugin / revolutionfuse_widget.xml
1 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 <source>
4   <groupbox title="Revolution">
5     <sketch_launcher id="sketch"
6       attribute_list_id="base"
7       label="Select:&lt;br /&gt;
8 1. Planar face of non-sketch object or a plane. Sketch creation will be started.&lt;br /&gt;
9 2. An existing sketch face or contour. Extrusion will be filled by it.&lt;br /&gt;
10 3. An existing result shape of kind: wires/edge/vertices.Extrusion will be filled by it."
11       shape_types="vertices edges wires faces shells compounds">
12       <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
13     </sketch_launcher>
14     <multi_selector id="base"
15       label="Select a sketch face"
16       icon="icons/Features/sketch.png"
17       tooltip="Select a sketch face"
18       type_choice="vertices edges wires faces shells compounds"
19       concealment="true">
20       <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell,compound"/>
21     </multi_selector>
22     <shape_selector id="axis_object"
23                     icon="icons/Features/axis.png"
24                     label="Axis"
25                     tooltip="Select an edge for axis"
26                     shape_types="edge"
27                     default="">
28       <validator id="GeomValidators_ShapeType" parameters="line"/>
29     </shape_selector>
30     <toolbox id="CreationMethod">
31       <box id="ByAngles" title="By angles" icon="icons/Features/angle_up_down_32x32.png">
32         <groupbox>
33           <doublevalue
34             id="to_angle"
35             label="Angle"
36             step="1.0"
37             default="0"
38             icon="icons/Features/angle_up.png"
39             tooltip="To angle">
40           </doublevalue>
41         </groupbox>
42         <groupbox>
43           <doublevalue
44             id="from_angle"
45             label="Angle"
46             step="1.0"
47             default="10"
48             icon="icons/Features/angle_down.png"
49             tooltip="From angle">
50           </doublevalue>
51         </groupbox>
52       </box>
53       <box id="ByPlanesAndOffsets" title="By bounding planes and angles" icon="icons/Features/plane_inverted_32x32.png">
54         <groupbox title="From">
55           <shape_selector id="from_object"
56                           icon="icons/Features/plane.png"
57                           label="Plane face"
58                           tooltip="Bounding plane (select a planar face)"
59                           shape_types="face"
60                           default="&lt;sketch&gt;">
61             <validator id="GeomValidators_Face" parameters="plane"/>
62           </shape_selector>
63           <doublevalue id="from_offset" label="Angle"
64             step="1.0" default="0"
65             icon="icons/Features/angle_up_down.png"
66             tooltip="Angle for &quot;from&quot; for bounding plane">
67           </doublevalue>
68         </groupbox>
69         <groupbox title="To">
70           <shape_selector id="to_object"
71                           icon="icons/Features/plane_inverted.png"
72                           label="Plane face"
73                           tooltip="Bounding plane (select a planar face)"
74                           shape_types="face"
75                           default="&lt;sketch&gt;">
76             <validator id="GeomValidators_Face" parameters="plane"/>
77           </shape_selector>
78           <doublevalue  id="to_offset" label="Angle"
79             step="1.0" default="0"
80             icon="icons/Features/angle_up_down.png"
81             tooltip="Angle for &quot;to&quot; bounding plane">
82           </doublevalue>
83         </groupbox>
84       </box>
85     </toolbox>
86   </groupbox>
87   <multi_selector id="main_objects"
88     label="Fuse with:"
89     icon="icons/Features/cut_shape.png"
90     tooltip="Objects to Fuse"
91     type_choice="Objects"
92     use_choice="false"
93     concealment="true">
94     <validator id="GeomValidators_ShapeType" parameters="solid"/>
95   </multi_selector>
96   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,ByAngles,sketch_selection,to_angle,from_angle,to_object,to_offset,from_object,from_offset"/>
97   <validator id="FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects" parameters="base"/>
98 </source>