Salome HOME
Adding Scale feature.
[modules/shaper.git] / src / FeaturesPlugin / scale_widget.xml
1 <!-- Copyright (C) 2014-201x CEA/DEN, EDF R&D -->
2
3 <source>
4   <toolbox id="CreationMethod">
5     <box id="ByFactor"
6          title="By one common factor for the three directions"
7          icon="icons/Features/scale_factor_32x32.png">
8       <multi_selector id="main_objects"
9                       label="Main objects"
10                       icon=""
11                       tooltip="Select objects"
12                       type_choice="objects"
13                       concealment="true">
14         <validator id="FeaturesPlugin_ValidatorTransform"/>
15       </multi_selector>
16       <shape_selector id="center_point"
17                       icon=""
18                       label="Center point"
19                       tooltip="Select the center point"
20                       shape_types="vertex"
21                       default="">
22         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
23         <validator id="GeomValidators_ConstructionComposite"/>
24       </shape_selector>
25       <doublevalue
26           id="scale_factor"
27           label="Scale factor"
28           step="1."
29           default="2."
30           tooltip="Scale factor">
31       </doublevalue>
32     </box>
33     <box id="ByDimensions"
34          title="Different factors for the three directions"
35          icon="icons/Features/scale_dimensions_32x32.png">
36       <multi_selector id="main_objects"
37                       label="Main objects"
38                       icon=""
39                       tooltip="Select objects"
40                       type_choice="objects"
41                       concealment="true">
42         <validator id="FeaturesPlugin_ValidatorTransform"/>
43       </multi_selector>
44       <shape_selector id="center_point"
45                       icon=""
46                       label="Center point"
47                       tooltip="Select the center point"
48                       shape_types="vertex"
49                       default="">
50         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
51         <validator id="GeomValidators_ConstructionComposite"/>
52       </shape_selector>
53       <doublevalue
54           id="scale_factor_x"
55           label="Scale factor in X"
56           step="1."
57           default="2."
58           tooltip="Scale factor in X">
59       </doublevalue>
60       <doublevalue
61           id="scale_factor_y"
62           label="Scale factor in Y"
63           step="1."
64           default="2."
65           tooltip="Scale factor in Y">
66       </doublevalue>
67       <doublevalue
68           id="scale_factor_z"
69           label="Scale factor in Z"
70           step="1."
71           default="2."
72           tooltip="Scale factor in Z">
73       </doublevalue>
74     </box>
75   </toolbox>
76 </source>