Salome HOME
Add copyright header according to request of CEA from 06.06.2017
[modules/shaper.git] / src / ConstructionPlugin / point_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   <doublevalue id="x" label="X " tooltip="X coordinate" default="0"/>
24   <doublevalue id="y" label="Y " tooltip="Y coordinate" default="0"/>
25   <doublevalue id="z" label="Z " tooltip="Z coordinate" default="0"/>
26
27   <!--<toolbox id="creation_method">
28     <box id="by_xyz"
29          title="By X, Y, Z"
30          tooltip="Point at a given distance from the origin."
31          icon="icons/Construction/point_by_xyz_32x32.png">
32       <doublevalue id="x"
33                    label="X "
34                    tooltip="X coordinate."
35                    icon="icons/Construction/x_size.png"
36                    default="0"/>
37       <doublevalue id="y"
38                    label="Y "
39                    tooltip="Y coordinate."
40                    icon="icons/Construction/y_size.png"
41                    default="0"/>
42       <doublevalue id="z"
43                    label="Z "
44                    tooltip="Z coordinate."
45                    icon="icons/Construction/z_size.png"
46                    default="0"/>
47     </box>
48     <box id="by_distance_on_edge"
49          title="By distance on edge"
50          tooltip="Point on an edge, at a given distance of one of its end."
51          icon="icons/Construction/point_by_distance_on_edge_32x32.png">
52       <shape_selector id="edge"
53                       label="Edge"
54                       tooltip="Edge for creating point on it."
55                       icon="icons/Construction/edge.png"
56                       shape_types="edge">
57         <validator id="GeomValidators_Finite"/>
58       </shape_selector>
59       <groupbox title="Distance">
60         <doublevalue id="value"
61                      label="Value"
62                      tooltip="Distance value."
63                      icon="icons/Construction/distance_value.png"
64                      default="50"/>
65         <boolvalue id="percent"
66                    label="Percent(%)"
67                    tooltip="Distance in percent from length."
68                    default="true"/>
69       </groupbox>
70       <boolvalue id="reverse"
71            label="Reverse"
72            tooltip="Distance from edge end point."
73            default="false"/>
74     </box>
75     <box id="by_projection"
76          title="By projection"
77          tooltip="Point on face surface by projection selected point."
78          icon="icons/Construction/point_by_projection_32x32.png">
79       <shape_selector id="point"
80                       label="Point"
81                       tooltip="Point for projection."
82                       icon="icons/Construction/point.png"
83                       shape_types="vertex">
84       </shape_selector>
85       <shape_selector id="plane"
86                       label="Plane"
87                       tooltip="Plane for projection."
88                       icon="icons/Construction/face.png"
89                       shape_types="face">
90         <validator id="GeomValidators_Face" parameters="plane"/>
91       </shape_selector>
92     </box>
93     <box id="by_lines_intersection"
94          title="By two lines intersection"
95          tooltip="Point by intersection of two coplanar lines."
96          icon="icons/Construction/point_by_lines_intersection_32x32.png">
97       <shape_selector id="first_line"
98                       label="First line"
99                       tooltip="First line."
100                       icon="icons/Construction/edge.png"
101                       shape_types="edge">
102         <validator id="GeomValidators_ShapeType" parameters="line"/>
103         <validator id="ConstructionPlugin_ValidatorPointLines" parameters="second_line"/>
104       </shape_selector>
105       <shape_selector id="second_line"
106                       label="Second line"
107                       tooltip="Second line."
108                       icon="icons/Construction/edge.png"
109                       shape_types="edge">
110         <validator id="GeomValidators_ShapeType" parameters="line"/>
111         <validator id="ConstructionPlugin_ValidatorPointLines" parameters="first_line"/>
112       </shape_selector>
113     </box>
114     <box id="by_line_and_plane_intersection"
115          title="By line and plane intersection"
116          tooltip="Point by intersection of line and plane."
117          icon="icons/Construction/point_by_line_and_plane_intersection_32x32.png">
118       <shape_selector id="intersection_line"
119                       label="Line"
120                       tooltip="Line for intersection."
121                       icon="icons/Construction/edge.png"
122                       shape_types="edge">
123         <validator id="GeomValidators_ShapeType" parameters="line"/>
124         <validator id="ConstructionPlugin_ValidatorPointLineAndPlaneNotParallel" parameters="intersection_plane"/>
125       </shape_selector>
126       <shape_selector id="intersection_plane"
127                       label="Plane"
128                       tooltip="Plane for intersection."
129                       icon="icons/Construction/face.png"
130                       shape_types="face">
131         <validator id="GeomValidators_Face" parameters="plane"/>
132         <validator id="ConstructionPlugin_ValidatorPointLineAndPlaneNotParallel" parameters="intersection_line"/>
133       </shape_selector>
134     </box>
135
136   </toolbox>-->
137 </source>