Salome HOME
Issue #2593: CEA 2018-2 Geometrical Naming
[modules/shaper.git] / src / PrimitivesPlugin / cylinder_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   <toolbox id="CreationMethod">
24     <box id="Cylinder" title="Cylinder" icon="icons/Primitives/cylinder_32x32.png">
25       <shape_selector
26           id="base_point"
27           label="base_point"
28           default=""
29           shape_types="vertex"
30           icon="icons/Primitives/point.png"
31           tooltip="Select the center of the base of the cylinder">
32         <validator id="GeomValidators_ConstructionComposite"/>
33         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
34       </shape_selector>
35       <shape_selector
36           id="axis"
37           label="axis"
38           default=""
39           shape_types="edge"
40           geometrical_selection="true"
41           icon="icons/Primitives/axis.png"
42           tooltip="Select the axis of the cylinder">
43         <validator id="GeomValidators_ConstructionComposite"/>
44         <validator id="GeomValidators_ShapeType" parameters="line"/>
45       </shape_selector>
46       <doublevalue
47           id="radius"
48           label="radius"
49           step="1."
50           default="5."
51           icon="icons/Primitives/radius.png"
52           tooltip="Enter the radius of the cylinder">
53       </doublevalue>
54       <doublevalue
55           id="height"
56           label="height"
57           step="1."
58           default="10."
59           icon="icons/Primitives/dimension_v.png"
60           tooltip="Enter the height of the cylinder">
61       </doublevalue>
62     </box>
63     <box id="CylinderPortion" title="Portion of cylinder" icon="icons/Primitives/cylinder_portion_32x32.png">
64       <shape_selector
65           id="base_point"
66           label="base_point"
67           default=""
68           shape_types="vertex"
69           icon="icons/Primitives/point.png"
70           tooltip="Select the center of the base of the cylinder">
71         <validator id="GeomValidators_ConstructionComposite"/>
72         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
73       </shape_selector>
74       <shape_selector
75           id="axis"
76           label="axis"
77           default=""
78           shape_types="edge"
79           geometrical_selection="true"
80           icon="icons/Primitives/axis.png"
81           tooltip="Select the axis of the cylinder">
82         <validator id="GeomValidators_ConstructionComposite"/>
83         <validator id="GeomValidators_ShapeType" parameters="line"/>
84       </shape_selector>
85       <doublevalue
86           id="radius"
87           label="radius"
88           step="1."
89           default="5."
90           icon="icons/Primitives/radius.png"
91           tooltip="Enter the radius of the cylinder">
92       </doublevalue>
93       <doublevalue
94           id="height"
95           label="height"
96           step="1."
97           default="10."
98           icon="icons/Primitives/dimension_v.png"
99           tooltip="Enter the height of the cylinder">
100       </doublevalue>
101       <doublevalue
102           id="angle"
103           label="angle"
104           step="10."
105           default="45.0"
106           icon="icons/Primitives/angle.png"
107           tooltip="Enter the angle of the portion of the cylinder">
108       </doublevalue>
109     </box>
110   </toolbox>
111 </source>