]> SALOME platform Git repositories - modules/shaper.git/blob - src/PrimitivesPlugin/cylinder_widget.xml
Salome HOME
457119415740d9e600b6758d140188fd33c4c984
[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           icon="icons/Primitives/radius.png"
32           tooltip="Enter the radius of the cylinder">
33       </doublevalue>
34       <doublevalue
35           id="height"
36           label="height"
37           step="1."
38           default="10."
39           icon="icons/Primitives/dimension_v.png"
40           tooltip="Enter the height of the cylinder">
41       </doublevalue>
42     </box>
43     <box id="CylinderPortion" title="Portion of cylinder" icon="icons/Primitives/cylinder_portion_32x32.png">
44       <shape_selector
45           id="base_point"
46           label="base_point"
47           default=""
48           shape_types="vertex"
49           icon="icons/Primitives/point.png"
50           tooltip="Select the center of the base of the cylinder">
51         <validator id="GeomValidators_ConstructionComposite"/>
52         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
53       </shape_selector>
54       <shape_selector
55           id="axis"
56           label="axis"
57           default=""
58           shape_types="edge"
59           icon="icons/Primitives/axis.png"
60           tooltip="Select the axis of the cylinder">
61         <validator id="GeomValidators_ConstructionComposite"/>
62         <validator id="GeomValidators_ShapeType" parameters="line"/>
63       </shape_selector>
64       <doublevalue
65           id="radius"
66           label="radius"
67           step="1."
68           default="5."
69           icon="icons/Primitives/radius.png"
70           tooltip="Enter the radius of the cylinder">
71       </doublevalue>
72       <doublevalue
73           id="height"
74           label="height"
75           step="1."
76           default="10."
77           icon="icons/Primitives/dimension_v.png"
78           tooltip="Enter the height of the cylinder">
79       </doublevalue>
80       <doublevalue
81           id="angle"
82           label="angle"
83           step="10."
84           default="45.0"
85           icon="icons/Primitives/angle.png"
86           tooltip="Enter the angle of the portion of the cylinder">
87       </doublevalue>
88     </box>
89   </toolbox>
90 </source>