SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
waterfall_test.h
1#pragma once
2
3#include "handlers/handler.h"
4
5#include "common/widgets/fft_plot.h"
6#include "common/widgets/waterfall_plot.h"
7
8#include <nng/nng.h>
9#include <nng/protocol/bus0/bus.h>
10#include <thread>
11
12// TODOREWORK, move into plugin? Or Core?
13namespace satdump
14{
15 namespace handlers
16 {
17 class WaterfallTestHandler : public Handler
18 {
19 public:
20 WaterfallTestHandler();
21 ~WaterfallTestHandler();
22
23 nng_socket socket;
24 nng_dialer dialer;
25
26 std::thread listenTh;
27
28 float *fft_buffer;
29 std::shared_ptr<widgets::FFTPlot> fft_plot;
30 std::shared_ptr<widgets::WaterfallPlot> waterfall_plot;
31
32 // The Rest
33 void drawMenu();
34 void drawContents(ImVec2 win_size);
35
36 std::string getName() { return "Waterfall"; }
37
38 std::string getID() { return "waterfall_test_handler"; }
39 };
40 } // namespace handlers
41} // namespace satdump
SatDump's handler base class.
Definition handler.h:32
std::string getName()
Get this handler's readable name.
Definition waterfall_test.h:36
void drawMenu()
Render explorer menu left sidebar.
Definition waterfall_test.cpp:57
void drawContents(ImVec2 win_size)
Render explorer contents (center/left)
Definition waterfall_test.cpp:79