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