Mercurial > hg > svgui
comparison layer/Colour3DPlotExporter.h @ 1568:3943553b95b0 csv-export-dialog
Add CSV export dialog, + associated supporting changes
author | Chris Cannam |
---|---|
date | Tue, 14 Jan 2020 15:41:17 +0000 |
parents | a6a31908bd13 |
children | 9095fbec4e52 |
comparison
equal
deleted
inserted
replaced
1566:1f80a514ce29 | 1568:3943553b95b0 |
---|---|
29 ModelId source; // always; a DenseThreeDimensionalModel | 29 ModelId source; // always; a DenseThreeDimensionalModel |
30 ModelId fft; // optionally; an FFTModel; used for phase/peak-freq modes | 30 ModelId fft; // optionally; an FFTModel; used for phase/peak-freq modes |
31 const LayerGeometryProvider *provider; // optionally | 31 const LayerGeometryProvider *provider; // optionally |
32 }; | 32 }; |
33 | 33 |
34 enum class TimestampFormat { | |
35 None, | |
36 Seconds, | |
37 Frames | |
38 }; | |
39 | |
40 struct Parameters { | 34 struct Parameters { |
41 Parameters() : | 35 Parameters() : |
42 binDisplay(BinDisplay::AllBins), | 36 binDisplay(BinDisplay::AllBins), |
43 scaleFactor(1.0), | 37 scaleFactor(1.0), |
44 threshold(0.0), | 38 threshold(0.0), |
45 gain(1.0), | 39 gain(1.0), |
46 normalization(ColumnNormalization::None), | 40 normalization(ColumnNormalization::None) { } |
47 timestampFormat(TimestampFormat::None) { } | |
48 | 41 |
49 /** Selection of bins to include in the export. */ | 42 /** Selection of bins to include in the export. */ |
50 BinDisplay binDisplay; | 43 BinDisplay binDisplay; |
51 | 44 |
52 /** Initial scale factor (e.g. for FFT scaling). This factor | 45 /** Initial scale factor (e.g. for FFT scaling). This factor |
68 | 61 |
69 /** Type of column normalization. Again, this is only used to | 62 /** Type of column normalization. Again, this is only used to |
70 * calculate thresholding level. The exported values are | 63 * calculate thresholding level. The exported values are |
71 * un-normalized. */ | 64 * un-normalized. */ |
72 ColumnNormalization normalization; | 65 ColumnNormalization normalization; |
73 | |
74 /** Format to use for the timestamp column. If None, no | |
75 * timestamp column will be included. */ | |
76 TimestampFormat timestampFormat; | |
77 }; | 66 }; |
78 | 67 |
79 Colour3DPlotExporter(Sources sources, Parameters parameters); | 68 Colour3DPlotExporter(Sources sources, Parameters parameters); |
80 ~Colour3DPlotExporter(); | 69 ~Colour3DPlotExporter(); |
81 | 70 |