]> SALOME platform Git repositories - modules/shaper.git/blob - src/PrimitivesPlugin/cylinder_widget.xml
Salome HOME
Add command "Rename" to a folder context menu
[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           icon="icons/Primitives/axis.png"
41           tooltip="Select the axis of the cylinder">
42         <validator id="GeomValidators_ConstructionComposite"/>
43         <validator id="GeomValidators_ShapeType" parameters="line"/>
44       </shape_selector>
45       <doublevalue
46           id="radius"
47           label="radius"
48           step="1."
49           default="5."
50           icon="icons/Primitives/radius.png"
51           tooltip="Enter the radius of the cylinder">
52       </doublevalue>
53       <doublevalue
54           id="height"
55           label="height"
56           step="1."
57           default="10."
58           icon="icons/Primitives/dimension_v.png"
59           tooltip="Enter the height of the cylinder">
60       </doublevalue>
61     </box>
62     <box id="CylinderPortion" title="Portion of cylinder" icon="icons/Primitives/cylinder_portion_32x32.png">
63       <shape_selector
64           id="base_point"
65           label="base_point"
66           default=""
67           shape_types="vertex"
68           icon="icons/Primitives/point.png"
69           tooltip="Select the center of the base of the cylinder">
70         <validator id="GeomValidators_ConstructionComposite"/>
71         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
72       </shape_selector>
73       <shape_selector
74           id="axis"
75           label="axis"
76           default=""
77           shape_types="edge"
78           icon="icons/Primitives/axis.png"
79           tooltip="Select the axis of the cylinder">
80         <validator id="GeomValidators_ConstructionComposite"/>
81         <validator id="GeomValidators_ShapeType" parameters="line"/>
82       </shape_selector>
83       <doublevalue
84           id="radius"
85           label="radius"
86           step="1."
87           default="5."
88           icon="icons/Primitives/radius.png"
89           tooltip="Enter the radius of the cylinder">
90       </doublevalue>
91       <doublevalue
92           id="height"
93           label="height"
94           step="1."
95           default="10."
96           icon="icons/Primitives/dimension_v.png"
97           tooltip="Enter the height of the cylinder">
98       </doublevalue>
99       <doublevalue
100           id="angle"
101           label="angle"
102           step="10."
103           default="45.0"
104           icon="icons/Primitives/angle.png"
105           tooltip="Enter the angle of the portion of the cylinder">
106       </doublevalue>
107     </box>
108   </toolbox>
109 </source>