Salome HOME
Add a new mode for creating a box by a center and dimensions. (TestBox.py)
[modules/shaper.git] / src / PrimitivesPlugin / box_widget.xml
1 <source>
2   <toolbox id="CreationMethod">
3     <box id="BoxByDimensions" title="By dimensions" icon="icons/Primitives/box_dxyz_32x32.png">
4       <doublevalue
5         id="dx"
6         label="DX"
7         step="1.0"
8         default="10.0"
9         icon=""
10         tooltip="Dimension in X">
11       </doublevalue>
12       <doublevalue
13         id="dy"
14         label="DY"
15         step="1.0"
16         default="10.0"
17         icon=""
18         tooltip="Dimension in Y">
19       </doublevalue>
20       <doublevalue
21         id="dz"
22         label="DZ"
23         step="1.0"
24         default="10.0"
25         icon=""
26         tooltip="Dimension in Z">
27       </doublevalue>
28     </box>
29     <box id="BoxByTwoPoints" title="By two points" icon="icons/Primitives/box_2pt_32x32.png">
30       <shape_selector id="FirstPoint"
31         label="First point"
32         icon="icons/Primitives/point.png"
33         tooltip="Select a first point"
34         shape_types="vertex">
35       </shape_selector>
36       <shape_selector id="SecondPoint"
37         label="Second point"
38         icon="icons/Primitives/point.png"
39         tooltip="Select a second point"
40         shape_types="vertex">
41       </shape_selector>
42     </box>
43     <box id="BoxByOnePointAndDims" title="By one point and dimensions" icon="icons/Primitives/box_pt_dxyz_32x32.png">
44       <groupbox title="Origin">
45         <doublevalue
46           id="ox"
47           label="OX"
48           step="1."
49           default="0."
50           tooltip="Enter the coordinate X for the center">
51         </doublevalue>
52         <doublevalue
53           id="oy"
54           label="OY"
55           step="1."
56           default="0."
57           tooltip="Enter the coordinate Y for the center">
58         </doublevalue>
59         <doublevalue
60           id="oz"
61           label="OZ"
62           step="1."
63           default="0."
64           tooltip="Enter the coordinate Z for the center">
65         </doublevalue>
66       </groupbox>
67       <groupbox title="Half-lengths">
68         <doublevalue
69           id="half_dx"
70           label="DX"
71           step="1."
72           default="20."
73           tooltip="Enter the half length in X">
74           <validator id="GeomValidators_Positive" parameters="0"/>
75         </doublevalue>
76         <doublevalue
77           id="half_dy"
78           label="DY"
79           step="1."
80           default="20."
81           tooltip="Enter the half length in Y">
82           <validator id="GeomValidators_Positive" parameters="0"/>
83         </doublevalue>
84         <doublevalue
85           id="half_dz"
86           label="DZ"
87           step="1."
88           default="20."
89           tooltip="Enter the half length in Z">
90           <validator id="GeomValidators_Positive" parameters="0"/>
91         </doublevalue>
92       </groupbox>
93     </box>
94   </toolbox>
95 </source>