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