]> SALOME platform Git repositories - modules/shaper.git/blob - src/FeaturesPlugin/extrusionfuse_widget.xml
Salome HOME
Issue #1560: Updated validator for extrusion direction. Not it is not allow to select...
[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="wires faces objects">
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="wires faces objects">
19       <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell,compound"/>
20     </multi_selector>
21     <shape_selector id="direction_object"
22                     icon="icons/Features/axis.png"
23                     label="Direction"
24                     tooltip="Select an edge for direction"
25                     shape_types="edge"
26                     default="&lt;base normal&gt;">
27       <validator id="GeomValidators_ShapeType" parameters="empty,line"/>
28     </shape_selector>
29     <toolbox id="CreationMethod">
30       <box id="BySizes" title="By sizes" icon="icons/Features/dimension_up_down_32x32.png">
31         <groupbox>
32           <doublevalue
33             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           </doublevalue>
40         </groupbox>
41         <groupbox>
42           <doublevalue
43             id="from_size"
44             label="Size"
45             step="1.0"
46             default="0"
47             icon="icons/Features/dimension_down.png"
48             tooltip="From size">
49           </doublevalue>
50         </groupbox>
51       </box>
52       <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon="icons/Features/plane_inverted_32x32.png">
53         <groupbox title="From">
54           <shape_selector id="from_object"
55                           icon="icons/Features/plane.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="from_offset"
63             label="Offset" step="1.0" default="0"
64             icon="icons/Features/dimension_up_down.png"
65             tooltip="Offset for bounding plane">
66           </doublevalue>
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" step="1.0" default="0"
79             icon="icons/Features/dimension_up_down.png"
80             tooltip="Offset for bounding plane">
81           </doublevalue>
82         </groupbox>
83       </box>
84     </toolbox>
85   </groupbox>
86   <multi_selector id="main_objects"
87     label="Fuse with:"
88     icon="icons/Features/cut_shape.png"
89     tooltip="Objects to Fuse"
90     type_choice="Solids"
91     concealment="true">
92     <validator id="GeomValidators_ShapeType" parameters="solid"/>
93   </multi_selector>
94   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,BySizes,sketch_selection,to_size,from_size,to_object,to_offset,from_object,from_offset"/>
95   <validator id="FeaturesPlugin_ValidatorExtrusionDir" parameters="base,direction_object"/>
96 </source>