SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
processing.h
1#pragma once
2
3#include "handlers/handler.h"
4#include "pipeline/module.h"
5#include "pipeline/pipeline.h"
6#include <thread>
7
8// TODOREWORK, move into plugin? Or Core?
9namespace satdump
10{
11 namespace handlers
12 {
13 class OffProcessingHandler : public Handler
14 {
15 private:
16 std::shared_ptr<std::vector<std::shared_ptr<pipeline::ProcessingModule>>> ui_call_list;
17 std::shared_ptr<std::mutex> ui_call_list_mutex;
18
19 void process(pipeline::Pipeline downlink_pipeline, std::string input_level, std::string input_file, std::string output_file, nlohmann::json parameters);
20
21 std::thread proc_thread;
22
23 std::string pipeline_name = "Pipeline";
24
25 public:
26 OffProcessingHandler(pipeline::Pipeline downlink_pipeline, std::string input_level, std::string input_file, std::string output_file, nlohmann::json parameters);
27
28 OffProcessingHandler(std::string downlink_pipeline, std::string input_level, std::string input_file, std::string output_file, nlohmann::json parameters);
29
30 ~OffProcessingHandler();
31
32 // The Rest
33 void drawMenu();
34 void drawContents(ImVec2 win_size);
35
36 std::string getName() { return pipeline_name; }
37
38 std::string getID() { return "processing_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 processing.h:36
void drawContents(ImVec2 win_size)
Render explorer contents (center/left)
Definition processing.cpp:100
void drawMenu()
Render explorer menu left sidebar.
Definition processing.cpp:98