SatDump 2.0.0-alpha-76a915210
|
Public Types | |
enum | current_mode_t { MODE_GRAPH , MODE_DOTMAP , MODE_FILLMAP } |
Public Member Functions | |
PunctiformProductHandler (std::shared_ptr< products::Product > p, bool dataset_mode=false) | |
void | do_process () |
Actual processing function to be implemented by the child class. | |
void | drawMenu () |
Render explorer menu left sidebar. | |
void | drawContents (ImVec2 win_size) |
Render explorer contents (center/left) | |
void | drawMenuBar () |
Render explorer menu bar (in the left sidebar) | |
void | addSubHandler (std::shared_ptr< Handler > handler, bool ontop=false) |
Add a new subhandler. | |
void | delSubHandler (std::shared_ptr< Handler > handler, bool now=false) |
Delete a subhandler. | |
bool | drawTreeMenu (std::shared_ptr< Handler > &h) |
Render explorer menu bar (in the left sidebar) | |
void | setConfig (nlohmann::json p) |
Optional, allows setting a configuration/state from JSON. | |
nlohmann::json | getConfig () |
Optional, allows getting a configuration/state as JSON. | |
void | saveResult (std::string directory) |
std::string | getID () |
Public Member Functions inherited from satdump::handlers::ProductHandler | |
nlohmann::json | getInstrumentCfg () |
ProductHandler (std::shared_ptr< products::Product > p, bool dataset_mode=false, std::function< bool(nlohmann::ordered_json &)> filterPreset=[](auto &) { return true;}) | |
Constructor. | |
std::string | getName () |
Get this handler's readable name. | |
Public Member Functions inherited from satdump::handlers::Handler | |
std::string | getTreeID () |
Get this handler's ImGui ID for rendering in the tree. | |
bool | hasSubhandlers () |
Check if this handler contains any sub-handlers. | |
virtual std::vector< std::shared_ptr< Handler > > | getAllSubHandlers () |
Get all current subhandlers. | |
void | setCanBeSelected (bool v) |
Set if a handler can be select in the tree. | |
void | setCanBeDragged (bool v) |
Set if a handler can be dragged around in the tree. | |
void | setCanBeDraggedTo (bool v) |
Set if a handler can be dragged to in the tree. | |
void | setSubHandlersCanBeDragged (bool v) |
Set if a handler's subhandlers can be dragged to in the tree. | |
void | setCanSubBeReorgTo (bool v) |
Set if a handler's subhandlers can be reordered. | |
virtual void | resetConfig () |
Optional, allows resetting the handler's configuration. | |
Public Member Functions inherited from satdump::handlers::ProcessingHandler | |
void | process () |
Performing processing. This is not multi-threaded, intended to call it externally. | |
void | set_is_processing (bool v) |
Set the processing status externally, to force waiting before starting a new thread. | |
void | asyncProcess () |
Perform processing asynchronously, in a thread. |
Public Attributes | |
products::PunctiformProduct * | product |
current_mode_t | current_mode = MODE_GRAPH |
float | progress = 0 |
ImageHandler | img_handler |
std::string | selected_channel |
double | range_min = 0 |
double | range_max = 10 |
Public Attributes inherited from satdump::handlers::Handler | |
std::string | handler_tree_icon = "N" |
Additional Inherited Members | |
Static Public Member Functions inherited from satdump::handlers::ProcessingHandler | |
static std::string | getID () |
static std::shared_ptr< Handler > | getInstance () |
Protected Member Functions inherited from satdump::handlers::ProductHandler | |
void | resetPreset () |
std::string | generateFileName () |
bool | renderPresetMenu () |
Draw preset selection menu. | |
void | tryApplyDefaultPreset () |
Attempts to a apply a default preset if present in the configuration. | |
Protected Attributes inherited from satdump::handlers::ProductHandler | |
bool | preset_reset_by_handler = false |
std::shared_ptr< products::Product > | product |
nlohmann::ordered_json | instrument_cfg |
std::string | product_internal_name |
Protected Attributes inherited from satdump::handlers::Handler | |
std::vector< std::shared_ptr< Handler > > | subhandlers |
std::mutex | subhandlers_mtx |
Protected Attributes inherited from satdump::handlers::ProcessingHandler | |
bool | is_processing = false |
std::mutex | is_processing_mtx |
std::thread | async_thread |
|
inlinevirtual |
Add a new subhandler.
handler | the handler to add |
ontop | if true, adds the handler at the start of the list |
Reimplemented from satdump::handlers::Handler.
|
inlinevirtual |
Delete a subhandler.
handler | the handler to delete |
Reimplemented from satdump::handlers::Handler.
|
virtual |
Actual processing function to be implemented by the child class.
Implements satdump::handlers::ProcessingHandler.
|
virtual |
Render explorer contents (center/left)
Implements satdump::handlers::Handler.
|
virtual |
Render explorer menu left sidebar.
Implements satdump::handlers::Handler.
|
virtual |
Render explorer menu bar (in the left sidebar)
Reimplemented from satdump::handlers::Handler.
|
inlinevirtual |
Render explorer menu bar (in the left sidebar)
h | currently selected handler, to be replaced if another is selected |
Reimplemented from satdump::handlers::Handler.
|
virtual |
Optional, allows getting a configuration/state as JSON.
Reimplemented from satdump::handlers::Handler.
|
inlinevirtual |
Reimplemented from satdump::handlers::ProductHandler.
|
virtual |
Reimplemented from satdump::handlers::ProductHandler.
|
virtual |
Optional, allows setting a configuration/state from JSON.
p | JSON object |
Reimplemented from satdump::handlers::Handler.