7#include "products/image/image_calibrator.h"
18 ImageProductHandler(std::shared_ptr<products::Product>,
bool dataset_mode =
false);
19 ~ImageProductHandler();
21 std::shared_ptr<ImageHandler> img_handler;
24 bool enabled_advanced_menus =
false;
28 std::shared_ptr<products::ImageCalibrator> img_calibrator;
31 bool needs_to_update =
true;
34 std::string channel_selection_box_str;
35 int channel_selection_curr_id = 0;
38 bool images_can_be_calibrated =
false;
39 bool channel_calibrated =
false;
48 std::map<int, std::map<std::string, CalibInfo>> channels_calibrated_ranges;
49 std::string channels_calibrated_curr_unit;
52 std::vector<std::pair<calibration::UnitInfo, std::shared_ptr<calibration::UnitConverter>>> channels_calibration_units_and_converters;
54 void initOverlayConverters();
57 std::string expression;
72 void saveResult(std::string directory);
74 void addSubHandler(std::shared_ptr<Handler> handler,
bool ontop =
false)
77 img_handler->addSubHandler(handler, ontop);
82 img_handler->delSubHandler(handler,
true);
88 return img_handler->drawTreeMenu(h);
91 std::string getID() {
return "image_product_handler"; }
void resetConfig()
Optional, allows resetting the handler's configuration.
Definition image_product_handler.h:70
void drawContents(ImVec2 win_size)
Render explorer contents (center/left)
Definition image_product_handler.cpp:402
void drawMenuBar()
Render explorer menu bar (in the left sidebar)
Definition image_product_handler.cpp:387
void drawMenu()
Render explorer menu left sidebar.
Definition image_product_handler.cpp:92
void addSubHandler(std::shared_ptr< Handler > handler, bool ontop=false)
Add a new subhandler.
Definition image_product_handler.h:74
void do_process()
Actual processing function to be implemented by the child class.
Definition image_product_handler.cpp:351
void setConfig(nlohmann::json p)
Optional, allows setting a configuration/state from JSON.
Definition image_product_handler.cpp:263
void delSubHandler(std::shared_ptr< Handler > handler, bool now=false)
Delete a subhandler.
Definition image_product_handler.h:80
nlohmann::json getConfig()
Optional, allows getting a configuration/state as JSON.
Definition image_product_handler.cpp:324
bool drawTreeMenu(std::shared_ptr< Handler > &h)
Render explorer menu bar (in the left sidebar)
Definition image_product_handler.h:85
ProductHandler(std::shared_ptr< products::Product > p, bool dataset_mode=false, std::function< bool(nlohmann::ordered_json &)> filterPreset=[](auto &) { return true;})
Constructor.
Definition product_handler.cpp:17
SatDump image product class.
Definition image_product.h:42
ImageProduct implementation.
Calibration Unit information.
Definition calibration_units.h:35
Definition image_product_handler.h:42