]> SALOME platform Git repositories - modules/shaper.git/blob - src/ConstructionPlugin/axis_widget.xml
Salome HOME
Issue #2593: CEA 2018-2 Geometrical Naming
[modules/shaper.git] / src / ConstructionPlugin / axis_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="AxisByDimensionsCase" title="By three dimensions" icon="icons/Construction/axis_dxyz_32x32.png">
25       <doublevalue id="DX" label="DX " tooltip="X dimension" default="0"/>
26       <doublevalue id="DY" label="DY " tooltip="Y dimension" default="0"/>
27       <doublevalue id="DZ" label="DZ " tooltip="Z dimension" default="10"/>
28     </box>
29     <box id="AxisByPointsCase" title="By two points" icon="icons/Construction/by_two_points_32x32.png">
30       <shape_selector id="FirstPoint"
31         label="First point"
32         icon="icons/Construction/point.png"
33         tooltip="Select a first point"
34         shape_types="vertex">
35         <validator id="GeomValidators_ConstructionComposite"/>
36         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
37       </shape_selector>
38       <shape_selector id="SecondPoint"
39         label="Second point"
40         icon="icons/Construction/point.png"
41         tooltip="Select a second point"
42         shape_types="vertex">
43         <validator id="GeomValidators_ConstructionComposite"/>
44         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
45         <validator id="GeomValidators_DifferentShapes"/>
46       </shape_selector>
47     </box>
48     <box id="by_line" title="By line" icon="icons/Construction/axis_by_line_32x32.png">
49       <shape_selector id="line"
50                       label="Line"
51                       tooltip="Select line."
52                       icon="icons/Construction/edge.png"
53                       shape_types="edge"
54                       geometrical_selection="true">
55         <validator id="GeomValidators_ShapeType" parameters="line"/>
56       </shape_selector>
57     </box>
58     <box id="AxisByCylindricalFaceCase" title="As axis of cylindrical face" icon="icons/Construction/cylindrical_face_32x32.png">
59       <shape_selector id="CylindricalFace"
60         label="Main object"
61         icon="icons/Construction/circle.png"
62         tooltip="Select a cylindrical object"
63         shape_types="face"
64         geometrical_selection="true">
65         <validator id="GeomValidators_Face" parameters="cylinder"/>
66       </shape_selector>
67     </box>
68     <box id="by_plane_and_point" title="By plane and point" icon="icons/Construction/axis_by_plane_and_point_32x32.png">
69       <shape_selector id="plane"
70                       label="Plane"
71                       tooltip="Select a planar face."
72                       icon="icons/Construction/face.png"
73                       shape_types="face"
74                       geometrical_selection="true">
75         <validator id="GeomValidators_Face" parameters="plane"/>
76       </shape_selector>
77       <shape_selector id="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_two_planes" title="By two planes" icon="icons/Construction/axis_by_two_planes_32x32.png">
85       <shape_selector id="plane1"
86                       label="1st plane"
87                       tooltip="Select a planar face."
88                       icon="icons/Construction/face.png"
89                       shape_types="face"
90                       geometrical_selection="true">
91         <validator id="GeomValidators_Face" parameters="plane"/>
92         <validator id="ConstructionPlugin_ValidatorAxisTwoNotParallelPlanes" parameters="plane2"/>
93       </shape_selector>
94       <optionalbox id="use_offset1" title="Offset from 1st plane">
95         <doublevalue id="offset1" label="Distance " tooltip="Distance value" min="0" default="0"/>
96         <boolvalue id="reverse_offset1" label="Reverse" tooltip="Reverse offset value" default="false"/>
97       </optionalbox>
98       <shape_selector id="plane2"
99                       label="2nd plane"
100                       tooltip="Select a planar face."
101                       icon="icons/Construction/face.png"
102                       shape_types="face"
103                       geometrical_selection="true">
104         <validator id="GeomValidators_Face" parameters="plane"/>
105         <validator id="ConstructionPlugin_ValidatorAxisTwoNotParallelPlanes" parameters="plane1"/>
106       </shape_selector>
107       <optionalbox id="use_offset2" title="Offset from 2nd plane">
108         <doublevalue id="offset2" label="Distance " tooltip="Distance value" min="0" default="0"/>
109         <boolvalue id="reverse_offset2" label="Reverse" tooltip="Reverse offset value" default="false"/>
110       </optionalbox>
111     </box>
112   </toolbox>
113
114 </source>