Salome HOME
Merge remote-tracking branch 'origin/Dev_PluginPathExtension'
[modules/shaper.git] / src / FeaturesPlugin / extrusion_widget.xml
1 <!--
2 Copyright (C) 2014-2017  CEA/DEN, EDF R&D
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18 See http:##www.salome-platform.org/ or
19 email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
20 -->
21
22 <source>
23   <sketch_launcher id="sketch"
24                    attribute_list_id="base"
25                    label="Select:&lt;br /&gt;
26 1. Planar face of non-sketch object or a plane. Sketch creation will be started.&lt;br /&gt;
27 2. An existing sketch face or contour. Extrusion will be filled by it.&lt;br /&gt;
28 3. An existing result shape of kind: wires/edge/vertices.Extrusion will be filled by it."
29                    shape_types="vertices edges wires faces shells solids compsolids compounds">
30     <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
31   </sketch_launcher>
32   <multi_selector id="base"
33                   label="Base objects:"
34                   tooltip="Select a base objects"
35                   type_choice="vertices edges wires faces shells compounds"
36                   concealment="true">
37     <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell,compound"/>
38   </multi_selector>
39   <shape_selector id="direction_object"
40                   icon="icons/Features/axis.png"
41                   label="Direction"
42                   tooltip="Select an edge for direction"
43                   shape_types="edge"
44                   default="&lt;base normal&gt;">
45     <validator id="GeomValidators_ShapeType" parameters="empty,line"/>
46   </shape_selector>
47   <toolbox id="CreationMethod">
48     <box id="BySizes"
49          title="By sizes"
50          icon="icons/Features/dimension_up_down_32x32.png">
51       <groupbox>
52         <doublevalue id="to_size"
53                      label="Size"
54                      step="1.0"
55                      default="10"
56                      icon="icons/Features/dimension_up.png"
57                      tooltip="To size"/>
58       </groupbox>
59       <groupbox>
60         <doublevalue id="from_size"
61                      label="Size"
62                      step="1.0"
63                      default="0"
64                      icon="icons/Features/dimension_down.png"
65                      tooltip="From size"/>
66       </groupbox>
67     </box>
68     <box id="ByPlanesAndOffsets"
69          title="By bounding planes and offsets"
70          icon="icons/Features/plane_inverted_32x32.png">
71       <groupbox title="From">
72         <shape_selector id="from_object"
73                         icon="icons/Features/plane.png"
74                         label="Plane face"
75                         tooltip="Bounding plane (select a planar face)"
76                         shape_types="face"
77                         default="&lt;base sketch&gt;">
78           <validator id="GeomValidators_Face" parameters="plane"/>
79         </shape_selector>
80         <doublevalue id="from_offset"
81                      label="Offset"
82                      step="1.0"
83                      default="0"
84                      icon="icons/Features/dimension_up_down.png"
85                      tooltip="Offset for &quot;from&quot; bounding plane"/>
86       </groupbox>
87       <groupbox title="To">
88         <shape_selector id="to_object"
89                         icon="icons/Features/plane_inverted.png"
90                         label="Plane face"
91                         tooltip="Bounding plane (select a planar face)"
92                         shape_types="face"
93                         default="&lt;base sketch&gt;">
94           <validator id="GeomValidators_Face" parameters="plane"/>
95         </shape_selector>
96         <doublevalue id="to_offset"
97                      label="Offset"
98                      step="1.0"
99                      default="0"
100                      icon="icons/Features/dimension_up_down.png"
101                      tooltip="Offset for &quot;to&quot; bounding plane"/>
102       </groupbox>
103     </box>
104   </toolbox>
105   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,BySizes,base,to_size,from_size,to_object,to_offset,from_object,from_offset"/>
106   <validator id="FeaturesPlugin_ValidatorExtrusionDir" parameters="base,direction_object"/>
107   <validator id="FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects" parameters="base"/>
108 </source>