Oscilloscope 0.5.0
A simple oscilloscope VST
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
BaseFinder Class Reference

#include <SampleFinder.h>

Inheritance diagram for BaseFinder:
AutoSampleFinder ManualSampleFinder

Public Member Functions

int findFirstSample (float triggerLevel, std::vector< float > currentlyDisplayedData)
 

Protected Attributes

std::function< int(float, std::vector< float >)> findSample
 

Detailed Description

Virtual base class from where to inherit to implement all cases of how to find the first sample to plot.

Definition at line 62 of file SampleFinder.h.

Member Function Documentation

◆ findFirstSample()

int BaseFinder::findFirstSample ( float  triggerLevel,
std::vector< float >  currentlyDisplayedData 
)

Find first sample to plot in the current modality.

Parameters
triggerLevelTrigger level.
currentlyDisplayedDataCurrently displayed buffer.
Returns
int Distance in samples of first sample to plot or -1 if no feasible sample is found.

Definition at line 209 of file SampleFinder.cpp.

Member Data Documentation

◆ findSample

std::function<int(float, std::vector<float>)> BaseFinder::findSample
protected

Lambda triggering the element of FindMethods corresponding to the current find modality

Definition at line 81 of file SampleFinder.h.


The documentation for this class was generated from the following files: