Salome HOME
Linux porting
[modules/shaper.git] / src / ConstructionPlugin / plane_widget.xml
1 <!--
2 Copyright (C) 2014-2017  CEA/DEN, EDF R&D
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18 See http:##www.salome-platform.org/ or
19 email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
20 -->
21
22 <source>
23   <toolbox id="creation_method">
24     <box id="by_three_points"
25          title="By three points"
26          tooltip="Plane by three points."
27          icon="icons/Construction/plane_by_three_points_32x32.png">
28       <shape_selector id="point1"
29                       label="1st point"
30                       tooltip="First point."
31                       icon="icons/Construction/point.png"
32                       shape_types="vertex">
33         <validator id="ConstructionPlugin_ValidatorPlaneThreePoints" parameters="point2,point3"/>
34       </shape_selector>
35       <shape_selector id="point2"
36                       label="2nd point"
37                       tooltip="Second point."
38                       icon="icons/Construction/point.png"
39                       shape_types="vertex">
40         <validator id="ConstructionPlugin_ValidatorPlaneThreePoints" parameters="point1,point3"/>
41       </shape_selector>
42       <shape_selector id="point3"
43                       label="3rd point"
44                       tooltip="Third point."
45                       icon="icons/Construction/point.png"
46                       shape_types="vertex">
47         <validator id="ConstructionPlugin_ValidatorPlaneThreePoints" parameters="point1,point2"/>
48       </shape_selector>
49     </box>
50     <box id="by_line_and_point"
51          title="By line and point"
52          tooltip="Plane by line and point."
53          icon="icons/Construction/plane_by_line_and_point_32x32.png">
54       <shape_selector id="line"
55                       label="Line"
56                       tooltip="Select line."
57                       icon="icons/Construction/edge.png"
58                       shape_types="edge">
59         <validator id="GeomValidators_ShapeType" parameters="line"/>
60         <validator id="ConstructionPlugin_ValidatorPlaneLinePoint" parameters="point,perpendicular"/>
61       </shape_selector>
62       <shape_selector id="point"
63                       label="Point"
64                       tooltip="Select point."
65                       icon="icons/Construction/point.png"
66                       shape_types="vertex">
67         <validator id="ConstructionPlugin_ValidatorPlaneLinePoint" parameters="line,perpendicular"/>
68       </shape_selector>
69       <boolvalue id="perpendicular"
70            label="Perpendicular "
71            tooltip="Makes the plane perpendicular to the selected line."
72            default="false"/>
73     </box>
74     <box id="by_other_plane"
75          title="By other plane"
76          tooltip="Plane by other plane with different options."
77          icon="icons/Construction/plane_by_other_plane_32x32.png">
78       <shape_selector id="plane"
79                       label="Plane"
80                       tooltip="Select a planar face."
81                       icon="icons/Construction/face.png"
82                       shape_types="face">
83         <validator id="GeomValidators_Face" parameters="plane"/>
84       </shape_selector>
85       <toolbox id="by_other_plane_option">
86         <box id="by_distance_from_other"
87              title="By distance from other"
88              tooltip="Plane by distance from other plane."
89              icon="icons/Construction/plane_by_distance_from_other_24x24.png">
90           <doublevalue id="distance"
91                        label="Distance"
92                        tooltip="Distance from selected face to plane."
93                        icon="icons/Construction/distance_value.png"
94                        min="0"
95                        default="10">
96           </doublevalue>
97           <boolvalue id="reverse"
98                      label="Reverse"
99                      tooltip="Checked means on the other side of the selected plane."
100                      default="false"/>
101         </box>
102         <box id="by_coincident_to_point"
103              title="By coincident to point"
104              tooltip="Plane by coincident to point."
105              icon="icons/Construction/plane_by_coincident_to_point_24x24.png">
106           <shape_selector id="coincident_point"
107                           label="Point"
108                           tooltip="Select point."
109                           icon="icons/Construction/point.png"
110                           shape_types="vertex">
111           </shape_selector>
112         </box>
113         <box id="by_rotation"
114              title="By rotation"
115              tooltip="Plane by rotation around axis."
116              icon="icons/Construction/plane_by_rotation_24x24.png">
117           <shape_selector id="axis"
118                           label="Axis"
119                           tooltip="Select line for axis."
120                           icon="icons/Construction/axis.png"
121                           shape_types="edge">
122             <validator id="GeomValidators_ShapeType" parameters="line"/>
123           </shape_selector>
124           <doublevalue id="angle"
125                        label="Angle"
126                        tooltip="Angle for rotation around axis."
127                        icon="icons/Construction/angle.png"
128                        min="0"
129                        default="45">
130             <validator id="GeomValidators_Positive"/>
131           </doublevalue>
132         </box>
133       </toolbox>
134     </box>
135     <box id="by_two_parallel_planes"
136          title="By two parallel planes"
137          tooltip="Plane equidistant from 2 parallel planes."
138          icon="icons/Construction/plane_by_two_parallel_planes_32x32.png">
139       <shape_selector id="plane1"
140                       label="1st plane"
141                       tooltip="Select a planar face."
142                       icon="icons/Construction/face.png"
143                       shape_types="face">
144         <validator id="GeomValidators_Face" parameters="plane"/>
145         <validator id="ConstructionPlugin_ValidatorPlaneTwoParallelPlanes" parameters="plane2"/>
146       </shape_selector>
147       <shape_selector id="plane2"
148                       label="2nd plane"
149                       tooltip="Select a planar face."
150                       icon="icons/Construction/face.png"
151                       shape_types="face">
152         <validator id="GeomValidators_Face" parameters="plane"/>
153         <validator id="ConstructionPlugin_ValidatorPlaneTwoParallelPlanes" parameters="plane1"/>
154       </shape_selector>
155     </box>
156   </toolbox>
157 </source>