Salome HOME
ccf8af3afc1e41eb50b6679996218b11b6734f07
[modules/shaper.git] / src / FeaturesPlugin / extrusion_widget.xml
1 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 <source>
4   <sketch_launcher id="sketch"
5                    attribute_list_id="base"
6                    label="Select:&lt;br /&gt;
7 1. Planar face of non-sketch object or a plane. Sketch creation will be started.&lt;br /&gt;
8 2. An existing sketch face or contour. Extrusion will be filled by it.&lt;br /&gt;
9 3. An existing result shape of kind: wires/edge/vertices.Extrusion will be filled by it."
10                    shape_types="faces objects">
11   </sketch_launcher>
12   <composite_multi_selector id="base"
13                             label="Base objects:"
14                             tooltip="Select a base objects"
15                             type_choice="faces objects">
16     <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="vertex,edge,wire,face,shell"/>
17   </composite_multi_selector>
18   <shape_selector id="direction_object"
19                   icon=":icons/axis.png"
20                   label="Direction"
21                   tooltip="Select an edge for direction"
22                   shape_types="edge"
23                   default="">
24     <validator id="GeomValidators_ShapeType" parameters="empty,line"/>
25   </shape_selector>
26   <toolbox id="CreationMethod">
27     <box id="BySizes"
28          title="By sizes"
29          icon=":icons/dimension_up_down_32x32.png">
30       <groupbox>
31         <doublevalue id="to_size"
32                      label="Size"
33                      step="1.0"
34                      default="10"
35                      icon=":icons/dimension_up.png"
36                      tooltip="To size"/>
37       </groupbox>
38       <groupbox>
39         <doublevalue id="from_size"
40                      label="Size"
41                      step="1.0"
42                      default="0"
43                      icon=":icons/dimension_down.png"
44                      tooltip="From size"/>
45       </groupbox>
46     </box>
47     <box id="ByPlanesAndOffsets"
48          title="By bounding planes and offsets"
49          icon=":icons/plane_inverted_32x32.png">
50       <groupbox title="From">
51         <shape_selector id="from_object"
52                         icon=":icons/plane.png"
53                         label="Plane face"
54                         tooltip="Bounding plane (select a planar face)"
55                         shape_types="face"
56                         default="&lt;base sketch&gt;">
57           <validator id="GeomValidators_Face" parameters="plane"/>
58         </shape_selector>
59         <doublevalue id="from_offset"
60                      label="Offset"
61                      step="1.0"
62                      default="0"
63                      icon=":icons/dimension_up_down.png"
64                      tooltip="Offset for &quot;from&quot; bounding plane"/>
65       </groupbox>
66       <groupbox title="To">
67         <shape_selector id="to_object"
68                         icon=":icons/plane_inverted.png"
69                         label="Plane face"
70                         tooltip="Bounding plane (select a planar face)"
71                         shape_types="face"
72                         default="&lt;base sketch&gt;">
73           <validator id="GeomValidators_Face" parameters="plane"/>
74         </shape_selector>
75         <doublevalue id="to_offset"
76                      label="Offset"
77                      step="1.0"
78                      default="0"
79                      icon=":icons/dimension_up_down.png"
80                      tooltip="Offset for &quot;to&quot; bounding plane"/>
81       </groupbox>
82     </box>
83   </toolbox>
84   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,BySizes,base,to_size,from_size,to_object,to_offset,from_object,from_offset"/>
85   <validator id="FeaturesPlugin_ValidatorCanBeEmpty" parameters="CreationMethod,BySizes,base,to_object,from_object,direction_object"/>
86 </source>