Salome HOME
Add copyright header according to request of CEA from 06.06.2017
[modules/shaper.git] / src / FeaturesPlugin / revolutioncut_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   <groupbox title="Revolution">
24     <sketch_launcher id="sketch"
25       attribute_list_id="base"
26       label="Select:&lt;br /&gt;
27 1. Planar face of non-sketch object or a plane. Sketch creation will be started.&lt;br /&gt;
28 2. An existing sketch face or contour. Extrusion will be filled by it.&lt;br /&gt;
29 3. An existing result shape of kind: wires/edge/vertices.Extrusion will be filled by it."
30       shape_types="wires faces shells">
31       <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
32     </sketch_launcher>
33     <multi_selector id="base"
34       label="Select a sketch face"
35       icon="icons/Features/sketch.png"
36       tooltip="Select a sketch face"
37       type_choice="wires faces shells"
38       concealment="true">
39       <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="face,shell"/>
40     </multi_selector>
41     <shape_selector id="axis_object"
42                     icon="icons/Features/axis.png"
43                     label="Axis"
44                     tooltip="Select an edge for axis"
45                     shape_types="edge"
46                     default="">
47       <validator id="GeomValidators_ShapeType" parameters="line"/>
48     </shape_selector>
49     <toolbox id="CreationMethod">
50       <box id="ByAngles" title="By angles" icon="icons/Features/angle_up_down_32x32.png">
51         <groupbox>
52           <doublevalue
53             id="to_angle"
54             label="Angle"
55             step="1.0"
56             default="10"
57             icon="icons/Features/angle_up.png"
58             tooltip="To angle">
59           </doublevalue>
60         </groupbox>
61         <groupbox>
62           <doublevalue
63             id="from_angle"
64             label="Angle"
65             step="1.0"
66             default="0"
67             icon="icons/Features/angle_down.png"
68             tooltip="From angle">
69           </doublevalue>
70         </groupbox>
71       </box>
72       <box id="ByPlanesAndOffsets" title="By bounding planes and angles" icon="icons/Features/plane_inverted_32x32.png">
73         <groupbox title="From">
74           <shape_selector id="from_object"
75                           icon="icons/Features/plane.png"
76                           label="Plane face"
77                           tooltip="Bounding plane (select a planar face)"
78                           shape_types="face"
79                           default="&lt;sketch&gt;">
80             <validator id="GeomValidators_Face" parameters="plane"/>
81           </shape_selector>
82           <doublevalue id="from_offset" label="Angle"
83             step="1.0" default="0"
84             icon="icons/Features/angle_up_down.png"
85             tooltip="Angle for &quot;from&quot; bounding plane">
86           </doublevalue>
87         </groupbox>
88         <groupbox title="To">
89           <shape_selector id="to_object"
90                           icon="icons/Features/plane_inverted.png"
91                           label="Plane face"
92                           tooltip="Bounding plane (select a planar face)"
93                           shape_types="face"
94                           default="&lt;sketch&gt;">
95             <validator id="GeomValidators_Face" parameters="plane"/>
96           </shape_selector>
97           <doublevalue  id="to_offset" label="Angle"
98             step="1.0" default="0"
99             icon="icons/Features/angle_up_down.png"
100             tooltip="Angle for &quot;to&quot; bounding plane">
101           </doublevalue>
102         </groupbox>
103       </box>
104     </toolbox>
105   </groupbox>
106   <multi_selector id="main_objects"
107     label="Cut from:"
108     icon="icons/Features/cut_shape.png"
109     tooltip="Objects to Cut"
110     type_choice="Objects"
111     use_choice="false"
112     concealment="true">
113     <validator id="GeomValidators_ShapeType" parameters="solid"/>
114   </multi_selector>
115   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,ByAngles,sketch_selection,to_angle,from_angle,to_object,to_offset,from_object,from_offset"/>
116   <validator id="FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects" parameters="base"/>
117 </source>