Salome HOME
6c8e2f9667d54a4c90145257b3968406d4b8b1e5
[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="0"/>
72         </box>
73         <box id="by_coincident_to_point"
74              title="By coincident to point"
75              tooltip="Plane by coincident to point."
76              icon="icons/Construction/plane_by_coincident_to_point_32x32.png">
77           <shape_selector id="coincident_point"
78                           label="Point"
79                           tooltip="Select point."
80                           icon="icons/Construction/point.png"
81                           shape_types="vertex">
82           </shape_selector>
83         </box>
84         <box id="by_rotation"
85              title="By rotation"
86              tooltip="Plane by rotation around axis."
87              icon="icons/Construction/plane_by_rotation_32x32.png">
88         </box>
89       </toolbox>
90     </box>
91     <box id="by_two_parallel_planes"
92          title="By two parallel planes"
93          tooltip="Plane equidistant from 2 parallel planes."
94          icon="icons/Construction/plane_by_two_parallel_planes_32x32.png">
95     </box>
96
97
98     <!--<box id="PlaneByFaceAndDistance" title="On some distance from a face">
99       <shape_selector id="planeFace"
100                       label="Plane face"
101                       tooltip="Select a planar face"
102                       shape_types="face">
103         <validator id="GeomValidators_Face" parameters="plane"/>
104       </shape_selector>
105       <doublevalue id="distance" 
106                    label="Distance" 
107                    tooltip="Distance from selected face to plane" 
108                default="0" />
109     </box>-->
110
111   </toolbox>
112 </source>