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