Salome HOME
Minimize updates of viewer
[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           <boolvalue id="reverse"
79                      label="Reverse"
80                      tooltip="Checked means on the other side of the selected plane."
81                      default="false"/>
82         </box>
83         <box id="by_coincident_to_point"
84              title="By coincident to point"
85              tooltip="Plane by coincident to point."
86              icon="icons/Construction/plane_by_coincident_to_point_24x24.png">
87           <shape_selector id="coincident_point"
88                           label="Point"
89                           tooltip="Select point."
90                           icon="icons/Construction/point.png"
91                           shape_types="vertex">
92           </shape_selector>
93         </box>
94         <box id="by_rotation"
95              title="By rotation"
96              tooltip="Plane by rotation around axis."
97              icon="icons/Construction/plane_by_rotation_24x24.png">
98           <shape_selector id="axis"
99                           label="Axis"
100                           tooltip="Select line for axis."
101                           icon="icons/Construction/axis.png"
102                           shape_types="edge"
103                           geometrical_selection="true">
104             <validator id="GeomValidators_ShapeType" parameters="line"/>
105           </shape_selector>
106           <doublevalue id="angle"
107                        label="Angle"
108                        tooltip="Angle for rotation around axis."
109                        icon="icons/Construction/angle.png"
110                        min="0"
111                        default="45">
112             <validator id="GeomValidators_Positive"/>
113           </doublevalue>
114         </box>
115       </toolbox>
116     </box>
117     <box id="by_two_parallel_planes"
118          title="By two parallel planes"
119          tooltip="Plane equidistant from 2 parallel planes."
120          icon="icons/Construction/plane_by_two_parallel_planes_32x32.png">
121       <shape_selector id="plane1"
122                       label="1st plane"
123                       tooltip="Select a planar face."
124                       icon="icons/Construction/face.png"
125                       shape_types="face"
126                       geometrical_selection="true">
127         <validator id="GeomValidators_Face" parameters="plane"/>
128         <validator id="ConstructionPlugin_ValidatorPlaneTwoParallelPlanes" parameters="plane2"/>
129       </shape_selector>
130       <shape_selector id="plane2"
131                       label="2nd plane"
132                       tooltip="Select a planar face."
133                       icon="icons/Construction/face.png"
134                       shape_types="face"
135                       geometrical_selection="true">
136         <validator id="GeomValidators_Face" parameters="plane"/>
137         <validator id="ConstructionPlugin_ValidatorPlaneTwoParallelPlanes" parameters="plane1"/>
138       </shape_selector>
139     </box>
140   </toolbox>
141 </source>