satdump/src-core/common/widgets/constellation.h
2021-10-22 15:26:17 +02:00

26 lines
No EOL
654 B
C++

#pragma once
#include "imgui/imgui.h"
#include "common/dsp/complex.h"
#include "common/dsp/random.h"
namespace widgets
{
const int CONST_SIZE = 2048;
class ConstellationViewer
{
private:
complex_t sample_buffer_complex_float[CONST_SIZE];
const float d_hscale, d_vscale;
const int d_constellation_size;
dsp::Random rng;
public:
ConstellationViewer(float hscale = 1, float vscale = 1, int constellation_size = 200);
~ConstellationViewer();
void pushComplex(complex_t *buffer, int size);
void pushFloatAndGaussian(float *buffer, int size);
void draw();
};
}