Salome HOME
Issue #2024 Redesign of circle and arc of circle: message of reentrant Line should...
[modules/shaper.git] / src / ConstructionPlugin / plane_widget.xml
1 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 <source>
4   <toolbox id="creation_method">
5     <box id="by_three_points"
6          title="By three points"
7          tooltip="Plane by three points."
8          icon="icons/Construction/plane_by_three_points_32x32.png">
9       <shape_selector id="point1"
10                       label="1st point"
11                       tooltip="First point."
12                       icon="icons/Construction/point.png"
13                       shape_types="vertex">
14         <validator id="ConstructionPlugin_ValidatorPlaneThreePoints" parameters="point2,point3"/>
15       </shape_selector>
16       <shape_selector id="point2"
17                       label="2nd point"
18                       tooltip="Second point."
19                       icon="icons/Construction/point.png"
20                       shape_types="vertex">
21         <validator id="ConstructionPlugin_ValidatorPlaneThreePoints" parameters="point1,point3"/>
22       </shape_selector>
23       <shape_selector id="point3"
24                       label="3rd point"
25                       tooltip="Third point."
26                       icon="icons/Construction/point.png"
27                       shape_types="vertex">
28         <validator id="ConstructionPlugin_ValidatorPlaneThreePoints" parameters="point1,point2"/>
29       </shape_selector>
30     </box>
31     <box id="by_line_and_point"
32          title="By line and point"
33          tooltip="Plane by line and point."
34          icon="icons/Construction/plane_by_line_and_point_32x32.png">
35       <shape_selector id="line"
36                       label="Line"
37                       tooltip="Select line."
38                       icon="icons/Construction/edge.png"
39                       shape_types="edge">
40         <validator id="GeomValidators_ShapeType" parameters="line"/>
41         <validator id="ConstructionPlugin_ValidatorPlaneLinePoint" parameters="point,perpendicular"/>
42       </shape_selector>
43       <shape_selector id="point"
44                       label="Point"
45                       tooltip="Select point."
46                       icon="icons/Construction/point.png"
47                       shape_types="vertex">
48         <validator id="ConstructionPlugin_ValidatorPlaneLinePoint" parameters="line,perpendicular"/>
49       </shape_selector>
50       <boolvalue id="perpendicular"
51            label="Perpendicular "
52            tooltip="Makes the plane perpendicular to the selected line."
53            default="false"/>
54     </box>
55     <box id="by_other_plane"
56          title="By other plane"
57          tooltip="Plane by other plane with different options."
58          icon="icons/Construction/plane_by_other_plane_32x32.png">
59       <shape_selector id="plane"
60                       label="Plane"
61                       tooltip="Select a planar face."
62                       icon="icons/Construction/face.png"
63                       shape_types="face">
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             <validator id="GeomValidators_ShapeType" parameters="line"/>
104           </shape_selector>
105           <doublevalue id="angle"
106                        label="Angle"
107                        tooltip="Angle for rotation around axis."
108                        icon="icons/Construction/angle.png"
109                        min="0"
110                        default="45">
111             <validator id="GeomValidators_Positive"/>
112           </doublevalue>
113         </box>
114       </toolbox>
115     </box>
116     <box id="by_two_parallel_planes"
117          title="By two parallel planes"
118          tooltip="Plane equidistant from 2 parallel planes."
119          icon="icons/Construction/plane_by_two_parallel_planes_32x32.png">
120       <shape_selector id="plane1"
121                       label="1st plane"
122                       tooltip="Select a planar face."
123                       icon="icons/Construction/face.png"
124                       shape_types="face">
125         <validator id="GeomValidators_Face" parameters="plane"/>
126         <validator id="ConstructionPlugin_ValidatorPlaneTwoParallelPlanes" parameters="plane2"/>
127       </shape_selector>
128       <shape_selector id="plane2"
129                       label="2nd plane"
130                       tooltip="Select a planar face."
131                       icon="icons/Construction/face.png"
132                       shape_types="face">
133         <validator id="GeomValidators_Face" parameters="plane"/>
134         <validator id="ConstructionPlugin_ValidatorPlaneTwoParallelPlanes" parameters="plane1"/>
135       </shape_selector>
136     </box>
137   </toolbox>
138 </source>