Salome HOME
[bos #32342] EDF 26130 - Undo and auxiliarity
[modules/shaper.git] / src / ConstructionPlugin / plane_widget.xml
1 <source>
2   <toolbox id="creation_method">
3     <box id="by_three_points"
4          title="By three points"
5          tooltip="Plane by three points."
6          icon="icons/Construction/plane_by_three_points_32x32.png">
7       <shape_selector id="point1"
8                       label="1st point"
9                       tooltip="First point."
10                       icon="icons/Construction/point.png"
11                       shape_types="vertex">
12         <validator id="ConstructionPlugin_ValidatorPlaneThreePoints" parameters="point2,point3"/>
13       </shape_selector>
14       <shape_selector id="point2"
15                       label="2nd point"
16                       tooltip="Second point."
17                       icon="icons/Construction/point.png"
18                       shape_types="vertex">
19         <validator id="ConstructionPlugin_ValidatorPlaneThreePoints" parameters="point1,point3"/>
20       </shape_selector>
21       <shape_selector id="point3"
22                       label="3rd point"
23                       tooltip="Third point."
24                       icon="icons/Construction/point.png"
25                       shape_types="vertex">
26         <validator id="ConstructionPlugin_ValidatorPlaneThreePoints" parameters="point1,point2"/>
27       </shape_selector>
28     </box>
29     <box id="by_line_and_point"
30          title="By line and point"
31          tooltip="Plane by line and point."
32          icon="icons/Construction/plane_by_line_and_point_32x32.png">
33       <shape_selector id="line"
34                       label="Line"
35                       tooltip="Select line."
36                       icon="icons/Construction/edge.png"
37                       shape_types="edge"
38                       geometrical_selection="true">
39         <validator id="GeomValidators_ShapeType" parameters="line"/>
40         <validator id="ConstructionPlugin_ValidatorPlaneLinePoint" parameters="point,perpendicular"/>
41       </shape_selector>
42       <shape_selector id="point"
43                       label="Point"
44                       tooltip="Select point."
45                       icon="icons/Construction/point.png"
46                       shape_types="vertex">
47         <validator id="ConstructionPlugin_ValidatorPlaneLinePoint" parameters="line,perpendicular"/>
48       </shape_selector>
49       <boolvalue id="perpendicular"
50            label="Perpendicular "
51            tooltip="Makes the plane perpendicular to the selected line."
52            default="false"/>
53     </box>
54     <box id="by_other_plane"
55          title="By other plane"
56          tooltip="Plane by other plane with different options."
57          icon="icons/Construction/plane_by_other_plane_32x32.png">
58       <shape_selector id="plane"
59                       label="Plane"
60                       tooltip="Select a planar face."
61                       icon="icons/Construction/face.png"
62                       shape_types="face"
63                       geometrical_selection="true">
64         <validator id="GeomValidators_Face" parameters="plane"/>
65       </shape_selector>
66       <toolbox id="by_other_plane_option">
67         <box id="by_distance_from_other"
68              title="By distance from other"
69              tooltip="Plane by distance from other plane."
70              icon="icons/Construction/plane_by_distance_from_other_24x24.png">
71           <doublevalue id="distance"
72                        label="Distance"
73                        tooltip="Distance from selected face to plane."
74                        icon="icons/Construction/distance_value.png"
75                        min="0"
76                        default="10">
77           </doublevalue>
78           <integervalue id="nb_copies"
79                         label="Nb copies"
80                         tooltip="Number of copies of the plane"
81                         min="1"
82                         default="1">
83           </integervalue>
84           <boolvalue id="reverse"
85                      label="Reverse"
86                      tooltip="Checked means on the other side of the selected plane."
87                      default="false"/>
88         </box>
89         <box id="by_coincident_to_point"
90              title="By coincident to point"
91              tooltip="Plane by coincident to point."
92              icon="icons/Construction/plane_by_coincident_to_point_24x24.png">
93           <shape_selector id="coincident_point"
94                           label="Point"
95                           tooltip="Select point."
96                           icon="icons/Construction/point.png"
97                           shape_types="vertex">
98           </shape_selector>
99         </box>
100         <box id="by_rotation"
101              title="By rotation"
102              tooltip="Plane by rotation around axis."
103              icon="icons/Construction/plane_by_rotation_24x24.png">
104           <shape_selector id="axis"
105                           label="Axis"
106                           tooltip="Select line for axis."
107                           icon="icons/Construction/axis.png"
108                           shape_types="edge"
109                           geometrical_selection="true">
110             <validator id="GeomValidators_ShapeType" parameters="line"/>
111           </shape_selector>
112           <doublevalue id="angle"
113                        label="Angle"
114                        tooltip="Angle for rotation around axis."
115                        icon="icons/Construction/angle.png"
116                        min="0"
117                        default="45">
118             <validator id="GeomValidators_Positive"/>
119           </doublevalue>
120           <integervalue id="nb_copies"
121                         label="Nb copies"
122                         tooltip="Number of copies of the plane "
123                         min="1"
124                         default="1">
125           </integervalue>
126         </box>
127       </toolbox>
128     </box>
129     <box id="by_two_parallel_planes"
130          title="By two parallel planes"
131          tooltip="Plane equidistant from 2 parallel planes."
132          icon="icons/Construction/plane_by_two_parallel_planes_32x32.png">
133       <shape_selector id="plane1"
134                       label="1st plane"
135                       tooltip="Select a planar face."
136                       icon="icons/Construction/face.png"
137                       shape_types="face"
138                       geometrical_selection="true">
139         <validator id="GeomValidators_Face" parameters="plane"/>
140         <validator id="ConstructionPlugin_ValidatorPlaneTwoParallelPlanes" parameters="plane2"/>
141       </shape_selector>
142       <shape_selector id="plane2"
143                       label="2nd plane"
144                       tooltip="Select a planar face."
145                       icon="icons/Construction/face.png"
146                       shape_types="face"
147                       geometrical_selection="true">
148         <validator id="GeomValidators_Face" parameters="plane"/>
149         <validator id="ConstructionPlugin_ValidatorPlaneTwoParallelPlanes" parameters="plane1"/>
150       </shape_selector>
151     </box>
152   </toolbox>
153 </source>