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