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