SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
satdump::handlers::DatasetHandler Class Reference

Dataset handler. More...

#include <dataset_handler.h>

Inheritance diagram for satdump::handlers::DatasetHandler:
satdump::handlers::Handler

Public Member Functions

 DatasetHandler (std::string path, products::DataSet d)
 Constructor.
void init ()
void drawMenu ()
 Render explorer menu left sidebar.
void drawContents (ImVec2 win_size)
 Render explorer contents (center/left)
std::string getName ()
 Get this handler's readable name.
std::string getID ()
Public Member Functions inherited from satdump::handlers::Handler
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 Attributes

std::shared_ptr< Handlerinstrument_products
std::shared_ptr< Handlergeneral_products
std::vector< std::shared_ptr< products::Product > > all_products
Public Attributes inherited from satdump::handlers::Handler
std::string handler_tree_icon = "N"

Additional Inherited Members

Protected Attributes inherited from satdump::handlers::Handler
std::vector< std::shared_ptr< Handler > > subhandlers
std::mutex subhandlers_mtx

Detailed Description

Dataset handler.

This is intended to handle instrument product datasets, usually from a single satellite with one or more instruments. It will organize things a bit better better by grouping instruments and locking their handlers in place, as well as setup a product generator capable of processing the dataset as a whole.

Parameters
instrument_productshandler used to store instrument products
general_productshandler used to generate dataset-based products
datasetthe dataset struct

Constructor & Destructor Documentation

◆ DatasetHandler()

satdump::handlers::DatasetHandler::DatasetHandler ( std::string path,
products::DataSet d )

Constructor.

Parameters
pathpath of the dataset folder
ddataset struct

Member Function Documentation

◆ drawContents()

void satdump::handlers::DatasetHandler::drawContents ( ImVec2 win_size)
virtual

Render explorer contents (center/left)

Implements satdump::handlers::Handler.

◆ drawMenu()

void satdump::handlers::DatasetHandler::drawMenu ( )
virtual

Render explorer menu left sidebar.

Implements satdump::handlers::Handler.

◆ getID()

std::string satdump::handlers::DatasetHandler::getID ( )
inlinevirtual

◆ getName()

std::string satdump::handlers::DatasetHandler::getName ( )
inlinevirtual

Get this handler's readable name.

Returns
name as a string

Reimplemented from satdump::handlers::Handler.


The documentation for this class was generated from the following files:
  • src-core/handlers/dataset/dataset_handler.h
  • src-core/handlers/dataset/dataset_handler.cpp