]> SALOME platform Git repositories - modules/shaper.git/blob - src/PrimitivesPlugin/cylinder_widget.xml
Salome HOME
780e29384c8ccc6e49b61a68d58e33f9df630e1c
[modules/shaper.git] / src / PrimitivesPlugin / cylinder_widget.xml
1 <!-- Copyright (C) 2014-201x CEA/DEN, EDF R&D -->
2
3 <source>
4   <toolbox id="CreationMethod">
5     <box id="Cylinder" title="Cylinder" icon="icons/Primitives/cylinder_32x32.png">
6       <shape_selector
7           id="base_point"
8           label="base_point"
9           default=""
10           shape_types="vertex"
11           icon="icons/Primitives/point.png"
12           tooltip="Select the center of the base of the cylinder">
13         <validator id="GeomValidators_ConstructionComposite"/>
14         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
15       </shape_selector>
16       <shape_selector
17           id="axis"
18           label="axis"
19           default=""
20           shape_types="edge"
21           icon="icons/Primitives/axis.png"
22           tooltip="Select the axis of the cylinder">
23         <validator id="GeomValidators_ConstructionComposite"/>
24         <validator id="GeomValidators_ShapeType" parameters="line"/>
25       </shape_selector>
26       <doublevalue
27           id="radius"
28           label="radius"
29           step="1."
30           default="5."
31           min="0."
32           icon="icons/Primitives/radius.png"
33           tooltip="Enter the radius of the cylinder">
34       </doublevalue>
35       <doublevalue
36           id="height"
37           label="height"
38           step="1."
39           default="10."
40           min="0."
41           icon="icons/Primitives/dimension_v.png"
42           tooltip="Enter the height of the cylinder">
43       </doublevalue>
44     </box>
45     <box id="CylinderPortion" title="Portion of cylinder" icon="icons/Primitives/cylinder_portion_32x32.png">
46       <shape_selector
47           id="base_point"
48           label="base_point"
49           default=""
50           shape_types="vertex"
51           icon="icons/Primitives/point.png"
52           tooltip="Select the center of the base of the cylinder">
53         <validator id="GeomValidators_ConstructionComposite"/>
54         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
55       </shape_selector>
56       <shape_selector
57           id="axis"
58           label="axis"
59           default=""
60           shape_types="edge"
61           icon="icons/Primitives/axis.png"
62           tooltip="Select the axis of the cylinder">
63         <validator id="GeomValidators_ConstructionComposite"/>
64         <validator id="GeomValidators_ShapeType" parameters="line"/>
65       </shape_selector>
66       <doublevalue
67           id="radius"
68           label="radius"
69           step="1."
70           default="5."
71           min="0."
72           icon="icons/Primitives/radius.png"
73           tooltip="Enter the radius of the cylinder">
74       </doublevalue>
75       <doublevalue
76           id="height"
77           label="height"
78           step="1."
79           default="10."
80           min="0."
81           icon="icons/Primitives/dimension_v.png"
82           tooltip="Enter the height of the cylinder">
83       </doublevalue>
84       <doublevalue
85           id="angle"
86           label="angle"
87           step="10."
88           default="45.0"
89           min="0."
90           max="360."
91           icon="icons/Primitives/angle.png"
92           tooltip="Enter the angle of the portion of the cylinder">
93       </doublevalue>
94     </box>
95   </toolbox>
96 </source>