Salome HOME
Issue #2593: CEA 2018-2 Geometrical Naming
[modules/shaper.git] / src / FeaturesPlugin / rotation_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="CreationMethod">
24     <box id="ByAxisAndAngle"
25          title="By an axis and an angle"
26          icon="icons/Features/rotation_axis_32x32.png">
27       <multi_selector id="main_objects"
28                       label="Main objects"
29                       icon=""
30                       tooltip="Select solid objects"
31                       type_choice="objects"
32                       concealment="true">
33         <validator id="FeaturesPlugin_ValidatorTransform"/>
34       </multi_selector>
35       <shape_selector id="axis_object"
36                   icon="icons/Features/axis.png"
37                   label="Axis"
38                   tooltip="Select an edge for axis"
39                   shape_types="edge"
40                   default=""
41                   geometrical_selection="true">
42         <validator id="GeomValidators_ShapeType" parameters="line"/>
43       </shape_selector>
44       <doublevalue id="angle"
45                    label="Angle"
46                    step="1.0"
47                    default="0"
48                    icon="icons/Features/angle.png"
49                    tooltip="Angle">
50       </doublevalue>
51     </box>
52     <box id="ByThreePoints"
53          title="By a center and two points"
54          icon="icons/Features/rotation_3pt_32x32.png">
55       <multi_selector id="main_objects"
56                       label="Main objects"
57                       icon=""
58                       tooltip="Select solid objects"
59                       type_choice="objects"
60                       concealment="true">
61         <validator id="FeaturesPlugin_ValidatorTransform"/>
62       </multi_selector>
63       <shape_selector id="center_point"
64                       label="Center point"
65                       icon="icons/Features/point.png"
66                       tooltip="Select a center point"
67                       shape_types="vertex">
68         <validator id="GeomValidators_ConstructionComposite"/>
69         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
70       </shape_selector>
71       <shape_selector id="start_point"
72                       label="Start point"
73                       icon="icons/Features/point.png"
74                       tooltip="Select a starting point"
75                       shape_types="vertex">
76         <validator id="GeomValidators_ConstructionComposite"/>
77         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
78         <validator id="GeomValidators_DifferentShapes"/>
79       </shape_selector>
80       <shape_selector id="end_point"
81                       label="End point"
82                       icon="icons/Features/point.png"
83                       tooltip="Select an end point"
84                       shape_types="vertex">
85         <validator id="GeomValidators_ConstructionComposite"/>
86         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
87         <validator id="GeomValidators_DifferentShapes"/>
88       </shape_selector>
89     </box>
90   </toolbox>
91 </source>