]> SALOME platform Git repositories - modules/shaper.git/blob - src/ConstructionPlugin/point_widget.xml
Salome HOME
2.3.3.1 Point creation by projection of another point on a line
[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     <box id="by_distance_on_edge"
45          title="By distance on edge"
46          tooltip="Point on an edge, at a given distance of one of its end."
47          icon="icons/Construction/point_by_distance_on_edge_32x32.png">
48       <shape_selector id="edge"
49                       label="Edge"
50                       tooltip="Edge for creating point on it."
51                       icon="icons/Construction/edge.png"
52                       shape_types="edge">
53         <validator id="GeomValidators_Finite"/>
54       </shape_selector>
55       <radiobox id="offset_type">
56         <radio id="offset_type_by_distance"
57              title="Distance on edge by value"
58              tooltip="Point on an edge, at a given distance specified by value."
59              icon="icons/Construction/point_by_distance_on_edge_24x24.png">
60           <doublevalue id="distance"
61              label="Distance"
62              tooltip="Distance value."
63              min="0.0"
64              default="10">
65           </doublevalue>
66         </radio>
67         <radio id="offset_type_by_ratio"
68              title="Distance on edge by ratio"
69              tooltip="Point on an edge, at a given distance specified by ratio."
70              icon="icons/Construction/point_by_ratio_on_edge_24x24.png">
71           <doublevalue id="ratio"
72              label="Ratio"
73              tooltip="Ratio value."
74              min="0.0"
75              max="1.0"
76              default="0.5">
77           </doublevalue>
78         </radio>
79       </radiobox>
80       <boolvalue id="reverse"
81            label="Reverse"
82            tooltip="Distance from edge end point."
83            default="false"/>
84     </box>
85     <box id="by_projection_on_edge"
86          title="By projection on edge"
87          tooltip="Point on edge by projection selected point."
88          icon="icons/Construction/point_by_projection_on_edge_32x32.png">
89       <shape_selector id="point_to_project_on_edge"
90                       label="Point"
91                       tooltip="Point for projection."
92                       icon="icons/Construction/point.png"
93                       shape_types="vertex">
94       </shape_selector>
95       <shape_selector id="edge_for_point_projection"
96                       label="edge"
97                       tooltip="Edge for projection."
98                       icon="icons/Construction/edge.png"
99                       shape_types="edge">
100       </shape_selector>
101     </box>
102     <box id="by_projection_on_face"
103          title="By projection on face"
104          tooltip="Point on face surface by projection selected point."
105          icon="icons/Construction/point_by_projection_on_face_32x32.png">
106       <shape_selector id="point_to_project_on_face"
107                       label="Point"
108                       tooltip="Point for projection."
109                       icon="icons/Construction/point.png"
110                       shape_types="vertex">
111       </shape_selector>
112       <shape_selector id="face_for_point_projection"
113                       label="face"
114                       tooltip="Face for projection."
115                       icon="icons/Construction/face.png"
116                       shape_types="face">
117         <validator id="GeomValidators_Face" parameters="plane"/>
118       </shape_selector>
119     </box>
120 <!--
121     <box id="by_lines_intersection"
122          title="By two lines intersection"
123          tooltip="Point by intersection of two coplanar lines."
124          icon="icons/Construction/point_by_lines_intersection_32x32.png">
125       <shape_selector id="first_line"
126                       label="First line"
127                       tooltip="First line."
128                       icon="icons/Construction/edge.png"
129                       shape_types="edge">
130         <validator id="GeomValidators_ShapeType" parameters="line"/>
131         <validator id="ConstructionPlugin_ValidatorPointLines" parameters="second_line"/>
132       </shape_selector>
133       <shape_selector id="second_line"
134                       label="Second line"
135                       tooltip="Second line."
136                       icon="icons/Construction/edge.png"
137                       shape_types="edge">
138         <validator id="GeomValidators_ShapeType" parameters="line"/>
139         <validator id="ConstructionPlugin_ValidatorPointLines" parameters="first_line"/>
140       </shape_selector>
141     </box>
142 -->
143     <box id="by_line_and_plane_intersection"
144          title="By line and plane intersection"
145          tooltip="Point by intersection of line and plane."
146          icon="icons/Construction/point_by_line_and_plane_intersection_32x32.png">
147       <shape_selector id="intersection_line"
148                       label="Line"
149                       tooltip="Line for intersection."
150                       icon="icons/Construction/edge.png"
151                       shape_types="edge">
152         <validator id="ConstructionPlugin_ValidatorPointEdgeAndPlaneNotParallel" parameters="intersection_plane"/>
153       </shape_selector>
154       <shape_selector id="intersection_plane"
155                       label="Plane"
156                       tooltip="Plane for intersection."
157                       icon="icons/Construction/face.png"
158                       shape_types="face">
159         <validator id="GeomValidators_Face" parameters="plane"/>
160         <validator id="ConstructionPlugin_ValidatorPointEdgeAndPlaneNotParallel" parameters="intersection_line"/>
161       </shape_selector>
162       <optionalbox id="use_offset" title="Offset from the plane">
163         <doublevalue id="offset" label="Distance " tooltip="Distance from the plane" min="0" default="0"/>
164         <boolvalue id="reverse_offset" label="Reverse" tooltip="Reverse offset value" default="false"/>
165       </optionalbox>
166     </box>
167
168   </toolbox>
169 </source>