]> SALOME platform Git repositories - modules/shaper.git/blob - src/ConstructionPlugin/axis_widget.xml
Salome HOME
Issue #1650: Added CPP High API for feature Axis;
[modules/shaper.git] / src / ConstructionPlugin / axis_widget.xml
1 <!-- Copyright (C) 2014-2016 CEA/DEN, EDF R&D -->
2
3 <!--  Modified by CEA (delegation to Alyotech) : 29 Mar 2016 -->
4
5 <source>
6   <toolbox id="CreationMethod">
7     <box id="AxisByDimensionsCase" title="By three dimensions" icon="icons/Construction/axis_dxyz_32x32.png">
8       <doublevalue id="DX" label="DX " tooltip="X dimension" default="0"/>
9       <doublevalue id="DY" label="DY " tooltip="Y dimension" default="0"/>
10       <doublevalue id="DZ" label="DZ " tooltip="Z dimension" default="10"/>
11     </box>
12     <box id="AxisByPointsCase" title="By two points" icon="icons/Construction/by_two_points_32x32.png">
13       <shape_selector id="FirstPoint"
14         label="First point"
15         icon="icons/Construction/point.png"
16         tooltip="Select a first point"
17         shape_types="vertex">
18         <validator id="GeomValidators_ConstructionComposite"/>
19         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
20       </shape_selector>
21       <shape_selector id="SecondPoint"
22         label="Second point"
23         icon="icons/Construction/point.png"
24         tooltip="Select a second point"
25         shape_types="vertex">
26         <validator id="GeomValidators_ConstructionComposite"/>
27         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
28         <validator id="GeomValidators_DifferentShapes"/>
29       </shape_selector>
30     </box>
31     <box id="by_line" title="By line" icon="icons/Construction/axis_by_line_32x32.png">
32       <shape_selector id="line"
33                       label="Line"
34                       tooltip="Select line."
35                       icon="icons/Construction/edge.png"
36                       shape_types="edge">
37         <validator id="GeomValidators_ShapeType" parameters="line"/>
38       </shape_selector>
39     </box>
40     <box id="AxisByCylindricalFaceCase" title="As axis of cylindrical face" icon="icons/Construction/cylindrical_face_32x32.png">
41       <shape_selector id="CylindricalFace"
42         label="Main object" 
43         icon="icons/Construction/circle.png" 
44         tooltip="Select a cylindrical object"
45         shape_types="face">
46         <validator id="GeomValidators_Face" parameters="cylinder"/>
47       </shape_selector>
48     </box>
49     <box id="by_plane_and_point" title="By plane and point" icon="icons/Construction/axis_by_plane_and_point_32x32.png">
50       <shape_selector id="plane"
51                       label="Plane"
52                       tooltip="Select a planar face."
53                       icon="icons/Construction/face.png"
54                       shape_types="face">
55         <validator id="GeomValidators_Face" parameters="plane"/>
56       </shape_selector>
57       <shape_selector id="point"
58                       label="Point"
59                       tooltip="Select point."
60                       icon="icons/Construction/point.png"
61                       shape_types="vertex">
62       </shape_selector>
63     </box>
64     <box id="by_two_planes" title="By two planes" icon="icons/Construction/axis_by_two_planes_32x32.png">
65       <shape_selector id="plane1"
66                       label="1st plane"
67                       tooltip="Select a planar face."
68                       icon="icons/Construction/face.png"
69                       shape_types="face">
70         <validator id="GeomValidators_Face" parameters="plane"/>
71         <validator id="ConstructionPlugin_ValidatorAxisTwoNotParallelPlanes" parameters="plane2"/>
72       </shape_selector>
73       <optionalbox id="use_offset1" title="Offset from 1st plane">
74         <doublevalue id="offset1" label="Distance " tooltip="Distance value" min="0" default="0"/>
75         <boolvalue id="reverse_offset1" label="Reverse" tooltip="Reverse offset value" default="false"/>
76       </optionalbox>
77       <shape_selector id="plane2"
78                       label="2nd plane"
79                       tooltip="Select a planar face."
80                       icon="icons/Construction/face.png"
81                       shape_types="face">
82         <validator id="GeomValidators_Face" parameters="plane"/>
83         <validator id="ConstructionPlugin_ValidatorAxisTwoNotParallelPlanes" parameters="plane1"/>
84       </shape_selector>
85       <optionalbox id="use_offset2" title="Offset from 2nd plane">
86         <doublevalue id="offset2" label="Distance " tooltip="Distance value" min="0" default="0"/>
87         <boolvalue id="reverse_offset2" label="Reverse" tooltip="Reverse offset value" default="false"/>
88       </optionalbox>
89     </box>
90   </toolbox>
91   
92 </source>