Salome HOME
Update copyrights
[modules/shaper.git] / src / FeaturesPlugin / extrusion_widget.xml
1 <source>
2   <sketch_launcher id="sketch"
3                    attribute_list_id="base"
4                    label="Select:&lt;br /&gt;
5 1. Planar face of non-sketch object or a plane. Sketch creation will be started.&lt;br /&gt;
6 2. An existing sketch face or contour. Extrusion will be filled by it.&lt;br /&gt;
7 3. An existing result shape of kind: wires/edge/vertices.Extrusion will be filled by it."
8                    shape_types="vertices edges wires faces shells solids compsolids compounds">
9     <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
10   </sketch_launcher>
11   <multi_selector id="base"
12                   label="Base objects:"
13                   tooltip="Select a base objects"
14                   type_choice="vertices edges wires faces shells compounds"
15                   concealment="true">
16     <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell,compound"/>
17   </multi_selector>
18   <shape_selector id="direction_object"
19                   icon="icons/Features/axis.png"
20                   label="Direction"
21                   tooltip="Select an edge for direction"
22                   shape_types="edge"
23                   geometrical_selection="true"
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                         geometrical_selection="true"
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                         geometrical_selection="true"
75                         default="&lt;base sketch&gt;">
76           <validator id="GeomValidators_Face" parameters="plane"/>
77         </shape_selector>
78         <doublevalue id="to_offset"
79                      label="Offset"
80                      step="1.0"
81                      default="0"
82                      icon="icons/Features/dimension_up_down.png"
83                      tooltip="Offset for &quot;to&quot; bounding plane"/>
84       </groupbox>
85     </box>
86   </toolbox>
87   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,BySizes,base,to_size,from_size,to_object,to_offset,from_object,from_offset"/>
88   <validator id="FeaturesPlugin_ValidatorExtrusionDir" parameters="base,direction_object"/>
89   <validator id="FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects" parameters="base"/>
90 </source>