]> SALOME platform Git repositories - modules/shaper.git/blob - src/ConstructionPlugin/plane_widget.xml
Salome HOME
5e216574cdcdbce38c613e42c861a34891e9602b
[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       <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             <validator id="GeomValidators_Positive"/>
78           </doublevalue>
79           <boolvalue id="reverse"
80                      label="Reverse"
81                      tooltip="Checked means on the other side of the selected plane."
82                      default="false"/>
83         </box>
84         <box id="by_coincident_to_point"
85              title="By coincident to point"
86              tooltip="Plane by coincident to point."
87              icon="icons/Construction/plane_by_coincident_to_point_24x24.png">
88           <shape_selector id="coincident_point"
89                           label="Point"
90                           tooltip="Select point."
91                           icon="icons/Construction/point.png"
92                           shape_types="vertex">
93           </shape_selector>
94         </box>
95         <box id="by_rotation"
96              title="By rotation"
97              tooltip="Plane by rotation around axis."
98              icon="icons/Construction/plane_by_rotation_24x24.png">
99           <shape_selector id="axis"
100                           label="Axis"
101                           tooltip="Select line for axis."
102                           icon="icons/Construction/axis.png"
103                           shape_types="edge">
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         <validator id="GeomValidators_Face" parameters="plane"/>
127         <validator id="ConstructionPlugin_ValidatorPlaneTwoParallelPlanes" parameters="plane2"/>
128       </shape_selector>
129       <shape_selector id="plane2"
130                       label="2nd plane"
131                       tooltip="Select a planar face."
132                       icon="icons/Construction/face.png"
133                       shape_types="face">
134         <validator id="GeomValidators_Face" parameters="plane"/>
135         <validator id="ConstructionPlugin_ValidatorPlaneTwoParallelPlanes" parameters="plane1"/>
136       </shape_selector>
137     </box>
138   </toolbox>
139 </source>