comparison data/model/FFTModel.h @ 254:d2ffb480ff33

* Experiment with sizing the property stacks and using a frame on the overview widget with an eye to making the default empty window look a bit nicer
author Chris Cannam
date Mon, 16 Apr 2007 12:20:27 +0000
parents 21b9b25bff48
children f1f47660483d
comparison
equal deleted inserted replaced
253:b36895bda652 254:d2ffb480ff33
17 #define _FFT_MODEL_H_ 17 #define _FFT_MODEL_H_
18 18
19 #include "data/fft/FFTDataServer.h" 19 #include "data/fft/FFTDataServer.h"
20 #include "DenseThreeDimensionalModel.h" 20 #include "DenseThreeDimensionalModel.h"
21 21
22 /**
23 * An implementation of DenseThreeDimensionalModel that makes FFT data
24 * derived from a DenseTimeValueModel available as a generic data grid.
25 * The FFT data is acquired using FFTDataServer.
26 */
27
22 class FFTModel : public DenseThreeDimensionalModel 28 class FFTModel : public DenseThreeDimensionalModel
23 { 29 {
24 Q_OBJECT 30 Q_OBJECT
25 31
26 public: 32 public:
33 /**
34 * Construct an FFT model derived from the given
35 * DenseTimeValueModel, with the given window parameters and FFT
36 * size (which may exceed the window size, for zero-padded FFTs).
37 *
38 * If the model has multiple channels use only the given channel,
39 * unless the channel is -1 in which case merge all available
40 * channels.
41 *
42 * If polar is true, the data will normally be retrieved from the
43 * FFT model in magnitude/phase form; otherwise it will normally
44 * be retrieved in "cartesian" real/imaginary form. The results
45 * should be the same either way, but a "polar" model addressed in
46 * "cartesian" form or vice versa may suffer a performance
47 * penalty.
48 *
49 * The fillFromColumn argument gives a hint that the FFT data
50 * server should aim to start calculating FFT data at that column
51 * number if possible, as that is likely to be requested first.
52 */
27 FFTModel(const DenseTimeValueModel *model, 53 FFTModel(const DenseTimeValueModel *model,
28 int channel, 54 int channel,
29 WindowType windowType, 55 WindowType windowType,
30 size_t windowSize, 56 size_t windowSize,
31 size_t windowIncrement, 57 size_t windowIncrement,