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