]> SALOME platform Git repositories - modules/shaper.git/blob - src/ConstructionPlugin/axis_widget.xml
Salome HOME
Revert "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         <validator id="GeomValidators_ShapeType" parameters="line"/>
55       </shape_selector>
56     </box>
57     <box id="AxisByCylindricalFaceCase" title="As axis of cylindrical face" icon="icons/Construction/cylindrical_face_32x32.png">
58       <shape_selector id="CylindricalFace"
59         label="Main object"
60         icon="icons/Construction/circle.png"
61         tooltip="Select a cylindrical object"
62         shape_types="face">
63         <validator id="GeomValidators_Face" parameters="cylinder"/>
64       </shape_selector>
65     </box>
66     <box id="by_plane_and_point" title="By plane and point" icon="icons/Construction/axis_by_plane_and_point_32x32.png">
67       <shape_selector id="plane"
68                       label="Plane"
69                       tooltip="Select a planar face."
70                       icon="icons/Construction/face.png"
71                       shape_types="face">
72         <validator id="GeomValidators_Face" parameters="plane"/>
73       </shape_selector>
74       <shape_selector id="point"
75                       label="Point"
76                       tooltip="Select point."
77                       icon="icons/Construction/point.png"
78                       shape_types="vertex">
79       </shape_selector>
80     </box>
81     <box id="by_two_planes" title="By two planes" icon="icons/Construction/axis_by_two_planes_32x32.png">
82       <shape_selector id="plane1"
83                       label="1st plane"
84                       tooltip="Select a planar face."
85                       icon="icons/Construction/face.png"
86                       shape_types="face">
87         <validator id="GeomValidators_Face" parameters="plane"/>
88         <validator id="ConstructionPlugin_ValidatorAxisTwoNotParallelPlanes" parameters="plane2"/>
89       </shape_selector>
90       <optionalbox id="use_offset1" title="Offset from 1st plane">
91         <doublevalue id="offset1" label="Distance " tooltip="Distance value" min="0" default="0"/>
92         <boolvalue id="reverse_offset1" label="Reverse" tooltip="Reverse offset value" default="false"/>
93       </optionalbox>
94       <shape_selector id="plane2"
95                       label="2nd plane"
96                       tooltip="Select a planar face."
97                       icon="icons/Construction/face.png"
98                       shape_types="face">
99         <validator id="GeomValidators_Face" parameters="plane"/>
100         <validator id="ConstructionPlugin_ValidatorAxisTwoNotParallelPlanes" parameters="plane1"/>
101       </shape_selector>
102       <optionalbox id="use_offset2" title="Offset from 2nd plane">
103         <doublevalue id="offset2" label="Distance " tooltip="Distance value" min="0" default="0"/>
104         <boolvalue id="reverse_offset2" label="Reverse" tooltip="Reverse offset value" default="false"/>
105       </optionalbox>
106     </box>
107   </toolbox>
108
109 </source>