]> SALOME platform Git repositories - modules/shaper.git/blob - src/FeaturesPlugin/measurement_widget.xml
Salome HOME
Reverted some changes in salome build/run scripts.
[modules/shaper.git] / src / FeaturesPlugin / measurement_widget.xml
1 <!--
2 Copyright (C) 2018-20xx  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="MeasureKind">
24     <box id="Length" title="Edge length" icon="icons/Features/meas_length_32x32.png">
25       <shape_selector id="edge_for_length"
26                       icon="icons/Features/edge.png"
27                       label="Edge"
28                       tooltip="Select an edge"
29                       shape_types="edge"
30                       default="">
31         <validator id="GeomValidators_ShapeType" parameters="edge"/>
32       </shape_selector>
33     </box>
34     <box id="Distance" title="Distance between objects" icon="icons/Features/meas_distance_32x32.png">
35       <shape_selector id="distance_from"
36                       icon=""
37                       label="From"
38                       tooltip="Select a shape"
39                       shape_types="vertex edge wire face shell solid objects"
40                       default="">
41       </shape_selector>
42       <shape_selector id="distance_to"
43                       icon=""
44                       label="To"
45                       tooltip="Select a shape"
46                       shape_types="vertex edge wire face shell solid objects"
47                       default="">
48       </shape_selector>
49     </box>
50     <box id="Radius" title="Radius of circular" icon="icons/Features/meas_radius_32x32.png">
51       <shape_selector id="circular"
52                       icon=""
53                       label="Object"
54                       tooltip="Select an edge or face"
55                       shape_types="edge face"
56                       default="">
57         <validator id="FeaturesPlugin_ValidatorCircular"/>
58       </shape_selector>
59     </box>
60     <box id="Angle" title="Angle between edges" icon="icons/Features/meas_angle_32x32.png">
61       <shape_selector id="angle_from"
62                       icon="icons/Features/edge.png"
63                       label="First edge"
64                       tooltip="Select an edge"
65                       shape_types="edge"
66                       default="">
67         <validator id="GeomValidators_ShapeType" parameters="edge"/>
68         <validator id="GeomValidators_Intersected" parameters="angle_to"/>
69       </shape_selector>
70       <shape_selector id="angle_to"
71                       icon="icons/Features/edge.png"
72                       label="Second edge"
73                       tooltip="Select an edge"
74                       shape_types="edge"
75                       default="">
76         <validator id="GeomValidators_ShapeType" parameters="edge"/>
77         <validator id="GeomValidators_Intersected" parameters="angle_from"/>
78       </shape_selector>
79     </box>
80     <box id="AngleBy3Points" title="Angle by 3 points" icon="icons/Features/meas_angle3p_32x32.png">
81       <shape_selector id="angle_point_1"
82                       icon="icons/Features/point.png"
83                       label="Start point"
84                       tooltip="Select a point"
85                       shape_types="vertex"
86                       default="">
87         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
88       </shape_selector>
89       <shape_selector id="angle_point_2"
90                       icon="icons/Features/point.png"
91                       label="Angle apex"
92                       tooltip="Select a point"
93                       shape_types="vertex"
94                       default="">
95         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
96       </shape_selector>
97       <shape_selector id="angle_point_3"
98                       icon="icons/Features/point.png"
99                       label="End point"
100                       tooltip="Select a point"
101                       shape_types="vertex"
102                       default="">
103         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
104       </shape_selector>
105     </box>
106   </toolbox>
107   <label id="result"/>
108 </source>