]> SALOME platform Git repositories - modules/shaper.git/blob - src/FeaturesPlugin/revolution_widget.xml
Salome HOME
d8ec39801daad3961ccb9da4962cce0291c9892c
[modules/shaper.git] / src / FeaturesPlugin / revolution_widget.xml
1 <source>
2   <sketch_launcher id="sketch"
3                    attribute_list_id="base"
4                    label="Select:&lt;br /&gt;
5 1. Planar face of non-sketch object or a plane. Sketch creation will be started.&lt;br /&gt;
6 2. An existing sketch face or contour. Extrusion will be filled by it.&lt;br /&gt;
7 3. An existing result shape of kind: wires/edge/vertices. Extrusion will be filled by it."
8                   shape_types="Vertices Edges Faces"
9                   default_type = "2"
10                   use_choice="true">
11     <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
12   </sketch_launcher>
13   <multi_selector id="base"
14                   label="Base objects:"
15                   tooltip="Select a base objects"
16                   shape_types="Vertices Edges Faces"
17                   default_type = "2"
18                   use_choice="true"
19                   concealment="true">
20     <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell,compound"/>
21   </multi_selector>
22   <shape_selector id="axis_object"
23                   icon="icons/Features/axis.png"
24                   label="Axis"
25                   tooltip="Select an edge for axis"
26                   shape_types="edge"
27                   geometrical_selection="true"
28                   default="">
29     <validator id="GeomValidators_ShapeType" parameters="line"/>
30   </shape_selector>
31   <toolbox id="CreationMethod">
32     <box id="ByAngles"
33          title="By angles"
34          icon="icons/Features/angle_up_down_32x32.png">
35       <groupbox>
36         <doublevalue id="to_angle"
37                      label="Angle"
38                      step="1.0"
39                      default="360"
40                      icon="icons/Features/angle_up.png"
41                      tooltip="To angle"/>
42       </groupbox>
43       <groupbox>
44         <doublevalue id="from_angle"
45                      label="Angle"
46                      step="1.0"
47                      default="0"
48                      icon="icons/Features/angle_down.png"
49                      tooltip="From angle"/>
50       </groupbox>
51     </box>
52     <box id="ByPlanesAndOffsets"
53          title="By bounding planes and angles"
54          icon="icons/Features/plane_inverted_32x32.png">
55       <groupbox title="From">
56         <shape_selector id="from_object"
57                         icon="icons/Features/plane.png"
58                         label="Plane face"
59                         tooltip="Bounding plane (select a planar face)"
60                         shape_types="face"
61                         geometrical_selection="true"
62                         default="&lt;base sketch&gt;">
63           <validator id="GeomValidators_Face" parameters="plane"/>
64         </shape_selector>
65         <doublevalue id="from_offset"
66                      label="Angle"
67                      step="1.0"
68                      default="0"
69                      icon="icons/Features/angle_up_down.png"
70                      tooltip="Angle for &quot;from&quot; bounding plane"/>
71       </groupbox>
72       <groupbox title="To">
73         <shape_selector id="to_object"
74                         icon="icons/Features/plane_inverted.png"
75                         label="Plane face"
76                         tooltip="Bounding plane (select a planar face)"
77                         shape_types="face"
78                         geometrical_selection="true"
79                         default="&lt;base sketch&gt;">
80           <validator id="GeomValidators_Face" parameters="plane"/>
81         </shape_selector>
82         <doublevalue id="to_offset"
83                      label="Angle"
84                      step="1.0"
85                      default="0"
86                      icon="icons/Features/angle_up_down.png"
87                      tooltip="Angle for &quot;to&quot; bounding plane"/>
88       </groupbox>
89     </box>
90   </toolbox>
91   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,ByAngles,base,to_angle,from_angle,to_object,to_offset,from_object,from_offset"/>
92   <validator id="FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects" parameters="base"/>
93 </source>