Salome HOME
Issue #2593: CEA 2018-2 Geometrical Naming
[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                   geometrical_selection="true"
45                   default="&lt;base normal&gt;">
46     <validator id="GeomValidators_ShapeType" parameters="empty,line"/>
47   </shape_selector>
48   <toolbox id="CreationMethod">
49     <box id="BySizes"
50          title="By sizes"
51          icon="icons/Features/dimension_up_down_32x32.png">
52       <groupbox>
53         <doublevalue id="to_size"
54                      label="Size"
55                      step="1.0"
56                      default="10"
57                      icon="icons/Features/dimension_up.png"
58                      tooltip="To size"/>
59       </groupbox>
60       <groupbox>
61         <doublevalue id="from_size"
62                      label="Size"
63                      step="1.0"
64                      default="0"
65                      icon="icons/Features/dimension_down.png"
66                      tooltip="From size"/>
67       </groupbox>
68     </box>
69     <box id="ByPlanesAndOffsets"
70          title="By bounding planes and offsets"
71          icon="icons/Features/plane_inverted_32x32.png">
72       <groupbox title="From">
73         <shape_selector id="from_object"
74                         icon="icons/Features/plane.png"
75                         label="Plane face"
76                         tooltip="Bounding plane (select a planar face)"
77                         shape_types="face"
78                         geometrical_selection="true"
79                         default="&lt;base sketch&gt;">
80           <validator id="GeomValidators_Face" parameters="plane"/>
81         </shape_selector>
82         <doublevalue id="from_offset"
83                      label="Offset"
84                      step="1.0"
85                      default="0"
86                      icon="icons/Features/dimension_up_down.png"
87                      tooltip="Offset for &quot;from&quot; bounding plane"/>
88       </groupbox>
89       <groupbox title="To">
90         <shape_selector id="to_object"
91                         icon="icons/Features/plane_inverted.png"
92                         label="Plane face"
93                         tooltip="Bounding plane (select a planar face)"
94                         shape_types="face"
95                         geometrical_selection="true"
96                         default="&lt;base sketch&gt;">
97           <validator id="GeomValidators_Face" parameters="plane"/>
98         </shape_selector>
99         <doublevalue id="to_offset"
100                      label="Offset"
101                      step="1.0"
102                      default="0"
103                      icon="icons/Features/dimension_up_down.png"
104                      tooltip="Offset for &quot;to&quot; bounding plane"/>
105       </groupbox>
106     </box>
107   </toolbox>
108   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,BySizes,base,to_size,from_size,to_object,to_offset,from_object,from_offset"/>
109   <validator id="FeaturesPlugin_ValidatorExtrusionDir" parameters="base,direction_object"/>
110   <validator id="FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects" parameters="base"/>
111 </source>