Salome HOME
Fix for the issue #2753 : error when dump/load script
[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                       geometrical_selection="true">
60         <validator id="GeomValidators_ShapeType" parameters="line"/>
61         <validator id="ConstructionPlugin_ValidatorPlaneLinePoint" parameters="point,perpendicular"/>
62       </shape_selector>
63       <shape_selector id="point"
64                       label="Point"
65                       tooltip="Select point."
66                       icon="icons/Construction/point.png"
67                       shape_types="vertex">
68         <validator id="ConstructionPlugin_ValidatorPlaneLinePoint" parameters="line,perpendicular"/>
69       </shape_selector>
70       <boolvalue id="perpendicular"
71            label="Perpendicular "
72            tooltip="Makes the plane perpendicular to the selected line."
73            default="false"/>
74     </box>
75     <box id="by_other_plane"
76          title="By other plane"
77          tooltip="Plane by other plane with different options."
78          icon="icons/Construction/plane_by_other_plane_32x32.png">
79       <shape_selector id="plane"
80                       label="Plane"
81                       tooltip="Select a planar face."
82                       icon="icons/Construction/face.png"
83                       shape_types="face"
84                       geometrical_selection="true">
85         <validator id="GeomValidators_Face" parameters="plane"/>
86       </shape_selector>
87       <toolbox id="by_other_plane_option">
88         <box id="by_distance_from_other"
89              title="By distance from other"
90              tooltip="Plane by distance from other plane."
91              icon="icons/Construction/plane_by_distance_from_other_24x24.png">
92           <doublevalue id="distance"
93                        label="Distance"
94                        tooltip="Distance from selected face to plane."
95                        icon="icons/Construction/distance_value.png"
96                        min="0"
97                        default="10">
98           </doublevalue>
99           <boolvalue id="reverse"
100                      label="Reverse"
101                      tooltip="Checked means on the other side of the selected plane."
102                      default="false"/>
103         </box>
104         <box id="by_coincident_to_point"
105              title="By coincident to point"
106              tooltip="Plane by coincident to point."
107              icon="icons/Construction/plane_by_coincident_to_point_24x24.png">
108           <shape_selector id="coincident_point"
109                           label="Point"
110                           tooltip="Select point."
111                           icon="icons/Construction/point.png"
112                           shape_types="vertex">
113           </shape_selector>
114         </box>
115         <box id="by_rotation"
116              title="By rotation"
117              tooltip="Plane by rotation around axis."
118              icon="icons/Construction/plane_by_rotation_24x24.png">
119           <shape_selector id="axis"
120                           label="Axis"
121                           tooltip="Select line for axis."
122                           icon="icons/Construction/axis.png"
123                           shape_types="edge"
124                           geometrical_selection="true">
125             <validator id="GeomValidators_ShapeType" parameters="line"/>
126           </shape_selector>
127           <doublevalue id="angle"
128                        label="Angle"
129                        tooltip="Angle for rotation around axis."
130                        icon="icons/Construction/angle.png"
131                        min="0"
132                        default="45">
133             <validator id="GeomValidators_Positive"/>
134           </doublevalue>
135         </box>
136       </toolbox>
137     </box>
138     <box id="by_two_parallel_planes"
139          title="By two parallel planes"
140          tooltip="Plane equidistant from 2 parallel planes."
141          icon="icons/Construction/plane_by_two_parallel_planes_32x32.png">
142       <shape_selector id="plane1"
143                       label="1st plane"
144                       tooltip="Select a planar face."
145                       icon="icons/Construction/face.png"
146                       shape_types="face"
147                       geometrical_selection="true">
148         <validator id="GeomValidators_Face" parameters="plane"/>
149         <validator id="ConstructionPlugin_ValidatorPlaneTwoParallelPlanes" parameters="plane2"/>
150       </shape_selector>
151       <shape_selector id="plane2"
152                       label="2nd plane"
153                       tooltip="Select a planar face."
154                       icon="icons/Construction/face.png"
155                       shape_types="face"
156                       geometrical_selection="true">
157         <validator id="GeomValidators_Face" parameters="plane"/>
158         <validator id="ConstructionPlugin_ValidatorPlaneTwoParallelPlanes" parameters="plane1"/>
159       </shape_selector>
160     </box>
161   </toolbox>
162 </source>