comparison layer/Colour3DPlotExporter.h @ 1569:b33b0b06133e

Merge from branch csv-export-dialog
author Chris Cannam
date Tue, 14 Jan 2020 15:48:44 +0000
parents 3943553b95b0
children 9095fbec4e52
comparison
equal deleted inserted replaced
1567:77ffd5421627 1569:b33b0b06133e
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