mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
26 lines
No EOL
654 B
C++
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();
|
|
};
|
|
} |