]> SALOME platform Git repositories - modules/shaper.git/blob - src/ConstructionPlugin/plane_widget.xml
Salome HOME
Issue #1649: Added options to create plane by three points;
[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         </box>
78         <box id="by_rotation"
79              title="By rotation"
80              tooltip="Plane by rotation around axis."
81              icon="icons/Construction/plane_by_rotation_32x32.png">
82         </box>
83       </toolbox>
84     </box>
85     <box id="by_two_parallel_planes"
86          title="By two parallel planes"
87          tooltip="Plane equidistant from 2 parallel planes."
88          icon="icons/Construction/plane_by_two_parallel_planes_32x32.png">
89     </box>
90
91
92     <!--<box id="PlaneByFaceAndDistance" title="On some distance from a face">
93       <shape_selector id="planeFace"
94                       label="Plane face"
95                       tooltip="Select a planar face"
96                       shape_types="face">
97         <validator id="GeomValidators_Face" parameters="plane"/>
98       </shape_selector>
99       <doublevalue id="distance" 
100                    label="Distance" 
101                    tooltip="Distance from selected face to plane" 
102                default="0" />
103     </box>-->
104
105   </toolbox>
106 </source>