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