OpenHantek
Loading...
Searching...
No Matches
GraphGenerator Class Reference

Generates ready to be used vertex arrays. More...

#include <graphgenerator.h>

Inheritance diagram for GraphGenerator:
Processor

Public Member Functions

 GraphGenerator (const DsoSettingsScope *scope, const DsoSettingsView *view)
Public Member Functions inherited from Processor
virtual ~Processor ()

Private Member Functions

void generateGraphsTYvoltage (PPresult *result)
void generateGraphsTYspectrum (PPresult *result)
void generateGraphsXY (PPresult *result)
void prepareSinc (void)
void process (PPresult *data) override

Private Attributes

bool ready = false
const DsoSettingsScopescope
const DsoSettingsViewview
std::vector< double > sinc
const unsigned int sincWidth = 2
const unsigned int oversample = 5
const unsigned int sincSize = sincWidth * oversample
std::vector< double > resample

Detailed Description

Generates ready to be used vertex arrays.

Constructor & Destructor Documentation

◆ GraphGenerator()

GraphGenerator::GraphGenerator ( const DsoSettingsScope * scope,
const DsoSettingsView * view )

Member Function Documentation

◆ generateGraphsTYspectrum()

void GraphGenerator::generateGraphsTYspectrum ( PPresult * result)
private

◆ generateGraphsTYvoltage()

void GraphGenerator::generateGraphsTYvoltage ( PPresult * result)
private

◆ generateGraphsXY()

void GraphGenerator::generateGraphsXY ( PPresult * result)
private

◆ prepareSinc()

void GraphGenerator::prepareSinc ( void )
private

◆ process()

void GraphGenerator::process ( PPresult * data)
overrideprivatevirtual

Implements Processor.

Field Documentation

◆ oversample

const unsigned int GraphGenerator::oversample = 5
private

◆ ready

bool GraphGenerator::ready = false
private

◆ resample

std::vector< double > GraphGenerator::resample
private

◆ scope

const DsoSettingsScope* GraphGenerator::scope
private

◆ sinc

std::vector< double > GraphGenerator::sinc
private

◆ sincSize

const unsigned int GraphGenerator::sincSize = sincWidth * oversample
private

◆ sincWidth

const unsigned int GraphGenerator::sincWidth = 2
private

◆ view

const DsoSettingsView* GraphGenerator::view
private

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