|
OpenHantek
|
#include <postprocessing.h>
Public Slots | |
| void | input (const DSOsamples *data) |
Signals | |
| void | processingFinished (std::shared_ptr< PPresult > result) |
Public Member Functions | |
| PostProcessing (unsigned channelCount) | |
| void | registerProcessor (Processor *processor) |
Static Private Member Functions | |
| static void | convertData (const DSOsamples *source, PPresult *destination) |
Private Attributes | |
| const unsigned | channelCount |
A new PPresult is created for each new input. We need to know the channel size. More... | |
| std::vector< Processor * > | processors |
| The list of processors. Processors are not memory managed by this class. More... | |
| std::unique_ptr< PPresult > | currentData |
Manages all post processing processors. Register another processor with registerProcessor(p). All processors, in the order of insertion, will process the input data, given by input(data). The final result will be made available via the processingFinished signal.
|
explicit |
|
staticprivate |
|
slot |
Start processing new data. The actual data may be processed in another thread if you have moved this class object into another thread.
| data |
|
signal |
| void PostProcessing::registerProcessor | ( | Processor * | processor | ) |
Adds a new processor that is called when a new input arrived. The order of the processors is imporant. The first added processor will be called first. This class does not take ownership of the processors.
| processor |
|
private |
A new PPresult is created for each new input. We need to know the channel size.
|
private |
|
private |
The list of processors. Processors are not memory managed by this class.