Salome HOME
[bos #40620] [CEA] XAO export for SHAPER: Allow export of brep in a separate file
[modules/shaper.git] / src / ExchangePlugin / export_widget.xml
1 <source>
2   <switch id="ExportType">
3     <case id="Regular" title="BREP, STEP, IGES">
4       <export_file_selector id="file_path"
5                             type="save"
6                             title="Export file"
7                             path="">
8         <validator id="ExchangePlugin_ExportFormat"
9                    parameters="brep|brp:BREP,step|stp:STEP,iges|igs:IGES-5.1,iges|igs:IGES-5.3" />
10       </export_file_selector>
11       <multi_selector id="selection_list"
12                       tooltip="Select a set of objects"
13                       shape_types="Vertices Edges Faces Solids Compsolids Objects">
14         <validator id="GeomValidators_Finite"/>
15       </multi_selector>
16     </case>
17     <case id="XAO" title="XAO">
18       <export_file_selector id="xao_file_path"
19                             type="save"
20                             title="Export file"
21                             path="">
22         <validator id="ExchangePlugin_ExportFormat"
23                    parameters="xao:XAO" />
24       </export_file_selector>
25       <stringvalue id="xao_author"
26                    label="Author"
27                    placeholder="Please input the author"/>
28       <stringvalue id="xao_geometry_name"
29                    label="Geometry name"
30                    placeholder="Please input the geometry name"/>
31       <boolvalue id="xao_shape_file_separate"
32                  label="Export shape in a separate file"
33                  default="false"/>
34     </case>
35     <case id="XAOMem" title="XAOMem" internal="1">
36       <stringvalue id="xao_author"
37                    label="Author"
38                    placeholder="Please input the author">
39       </stringvalue>
40       <stringvalue id="xao_geometry_name"
41                    label="Geometry name"
42                    placeholder="Please input the geometry name">
43       </stringvalue>
44     </case>
45     <case id="STL" title="STL">
46       <export_file_selector id="stl_file_path"
47                             type="save"
48                             title="Export file"
49                             path="">
50         <validator id="ExchangePlugin_ExportFormat"
51                    parameters="stl:STL" />
52       </export_file_selector>
53       <shape_selector id="stl_object_selected"
54                           label="Object"
55                           tooltip="Object to export."
56                           shape_types="faces shells solids compsolids compounds">
57             <validator id="GeomValidators_Finite"/>
58       </shape_selector>
59       <groupbox title="Deflection">
60         <radiobox id="stl_deflection_type">
61           <radio id="stl_deflection_type_relative"
62               title="Relative"
63               tooltip="Calculate by size of shape">
64             <doublevalue id="stl_relative"
65               tooltip="Relative value."
66               min="1e-12"
67               step="0.001"
68               default="0.001">
69             </doublevalue>
70           </radio>
71           <radio id="stl_deflection_type_absolute"
72               title="Absolute"
73               tooltip="Value indicate by user">
74             <doublevalue id="stl_absolute"
75               tooltip="Absolute value."
76               min="1e-12"
77               step="0.1"
78               default="0.5">
79             </doublevalue>
80           </radio>
81         </radiobox>
82       </groupbox >
83       <groupbox title="File type">
84         <radiobox id="stl_file_type">
85           <radio id="stl_file_type_binary"
86               title="Binary">
87           </radio>
88           <radio id="stl_file_type_acii"
89               title="ASCII">
90           </radio>
91         </radiobox>
92       </groupbox >
93     </case>
94   </switch>
95 </source>