Salome HOME
012d5671ebb9cdccdf45a2f231314f3d2854b1f7
[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     <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
12   </sketch_launcher>
13   <multi_selector id="base"
14                             label="Base objects:"
15                             tooltip="Select a base objects"
16                             type_choice="faces objects">
17     <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell"/>
18   </multi_selector>
19   <shape_selector id="direction_object"
20                   icon="icons/Features/axis.png"
21                   label="Direction"
22                   tooltip="Select an edge for direction"
23                   shape_types="edge"
24                   default="&lt;base normal&gt;">
25     <validator id="GeomValidators_ShapeType" parameters="empty,line"/>
26   </shape_selector>
27   <toolbox id="CreationMethod">
28     <box id="BySizes"
29          title="By sizes"
30          icon="icons/Features/dimension_up_down_32x32.png">
31       <groupbox>
32         <doublevalue id="to_size"
33                      label="Size"
34                      step="1.0"
35                      default="10"
36                      icon="icons/Features/dimension_up.png"
37                      tooltip="To size"/>
38       </groupbox>
39       <groupbox>
40         <doublevalue id="from_size"
41                      label="Size"
42                      step="1.0"
43                      default="0"
44                      icon="icons/Features/dimension_down.png"
45                      tooltip="From size"/>
46       </groupbox>
47     </box>
48     <box id="ByPlanesAndOffsets"
49          title="By bounding planes and offsets"
50          icon="icons/Features/plane_inverted_32x32.png">
51       <groupbox title="From">
52         <shape_selector id="from_object"
53                         icon="icons/Features/plane.png"
54                         label="Plane face"
55                         tooltip="Bounding plane (select a planar face)"
56                         shape_types="face"
57                         default="&lt;base sketch&gt;">
58           <validator id="GeomValidators_Face" parameters="plane"/>
59         </shape_selector>
60         <doublevalue id="from_offset"
61                      label="Offset"
62                      step="1.0"
63                      default="0"
64                      icon="icons/Features/dimension_up_down.png"
65                      tooltip="Offset for &quot;from&quot; bounding plane"/>
66       </groupbox>
67       <groupbox title="To">
68         <shape_selector id="to_object"
69                         icon="icons/Features/plane_inverted.png"
70                         label="Plane face"
71                         tooltip="Bounding plane (select a planar face)"
72                         shape_types="face"
73                         default="&lt;base sketch&gt;">
74           <validator id="GeomValidators_Face" parameters="plane"/>
75         </shape_selector>
76         <doublevalue id="to_offset"
77                      label="Offset"
78                      step="1.0"
79                      default="0"
80                      icon="icons/Features/dimension_up_down.png"
81                      tooltip="Offset for &quot;to&quot; bounding plane"/>
82       </groupbox>
83     </box>
84   </toolbox>
85   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,BySizes,base,to_size,from_size,to_object,to_offset,from_object,from_offset"/>
86   <validator id="FeaturesPlugin_ValidatorCanBeEmpty" parameters="base,direction_object"/>
87 </source>