Salome HOME
Issue #1649: New creation of Construction Planes
[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"/>
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"/>
49       </shape_selector>
50     </box>
51     <box id="by_other_plane"
52          title="By other plane"
53          tooltip="Plane by other plane with different options."
54          icon="icons/Construction/plane_by_other_plane_32x32.png">
55       <shape_selector id="plane"
56                       label="Plane"
57                       tooltip="Select a planar face."
58                       icon="icons/Construction/face.png"
59                       shape_types="face">
60         <validator id="GeomValidators_Face" parameters="plane"/>
61       </shape_selector>
62       <toolbox id="by_other_plane_option">
63         <box id="by_distance_from_other"
64              title="By distance from other"
65              tooltip="Plane by distance from other plane."
66              icon="icons/Construction/plane_by_distance_from_other_32x32.png">
67           <doublevalue id="distance"
68                        label="Distance"
69                        tooltip="Distance from selected face to plane."
70                        icon="icons/Construction/distance_value.png"
71                        default="10">
72             <validator id="GeomValidators_Positive"/>
73           </doublevalue>
74           <!--<boolvalue id="distance_reverse"
75                      label="Reverse"
76                      tooltip="Distance from plane."
77                      default="false"/>-->
78         </box>
79         <box id="by_coincident_to_point"
80              title="By coincident to point"
81              tooltip="Plane by coincident to point."
82              icon="icons/Construction/plane_by_coincident_to_point_32x32.png">
83           <shape_selector id="coincident_point"
84                           label="Point"
85                           tooltip="Select point."
86                           icon="icons/Construction/point.png"
87                           shape_types="vertex">
88           </shape_selector>
89         </box>
90         <box id="by_rotation"
91              title="By rotation"
92              tooltip="Plane by rotation around axis."
93              icon="icons/Construction/plane_by_rotation_32x32.png">
94           <shape_selector id="axis"
95                           label="Axis"
96                           tooltip="Select line for axis."
97                           icon="icons/Construction/axis.png"
98                           shape_types="edge">
99             <validator id="GeomValidators_ShapeType" parameters="line"/>
100           </shape_selector>
101           <doublevalue id="angle"
102                        label="Angle"
103                        tooltip="Angle for rotation around axis."
104                        icon="icons/Construction/angle.png"
105                        default="0"/>
106         </box>
107       </toolbox>
108     </box>
109     <box id="by_two_parallel_planes"
110          title="By two parallel planes"
111          tooltip="Plane equidistant from 2 parallel planes."
112          icon="icons/Construction/plane_by_two_parallel_planes_32x32.png">
113       <shape_selector id="plane1"
114                       label="1st plane"
115                       tooltip="Select a planar face."
116                       icon="icons/Construction/face.png"
117                       shape_types="face">
118         <validator id="GeomValidators_Face" parameters="plane"/>
119         <validator id="ConstructionPlugin_ValidatorPlaneTwoParallelPlanes" parameters="plane2"/>
120       </shape_selector>
121       <shape_selector id="plane2"
122                       label="2nd plane"
123                       tooltip="Select a planar face."
124                       icon="icons/Construction/face.png"
125                       shape_types="face">
126         <validator id="GeomValidators_Face" parameters="plane"/>
127         <validator id="ConstructionPlugin_ValidatorPlaneTwoParallelPlanes" parameters="plane1"/>
128       </shape_selector>
129     </box>
130   </toolbox>
131 </source>