|
nlohmann::json | getInstrumentCfg () |
virtual void | saveResult (std::string directory) |
| 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.
|
std::string | getID () |
Public Member Functions inherited from satdump::handlers::Handler |
virtual void | drawMenu ()=0 |
| Render explorer menu left sidebar.
|
virtual void | drawContents (ImVec2 win_size)=0 |
| Render explorer contents (center/left)
|
virtual void | drawMenuBar () |
| Render explorer menu bar (in the left sidebar)
|
virtual bool | drawTreeMenu (std::shared_ptr< Handler > &h) |
| Render explorer menu bar (in the left sidebar)
|
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 void | addSubHandler (std::shared_ptr< Handler > handler, bool ontop=false) |
| Add a new subhandler.
|
virtual void | delSubHandler (std::shared_ptr< Handler > handler, bool now=false) |
| Delete a subhandler.
|
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 | setConfig (nlohmann::json p) |
| Optional, allows setting a configuration/state from JSON.
|
virtual nlohmann::json | getConfig () |
| Optional, allows getting a configuration/state as JSON.
|
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.
|
Product handler base class.
A common usecase of handlers in the explorer is to allow displaying and doing basic manipulation on instrument products.
To this effect, this base class implements the common interface for handling those instrument products.
- Parameters
-
product | raw product pointer, to be cast in the inheriting class |
instrument_cfg | TODOREWORK instrument configuration file, for presets |