2025-03-09 10:16:40 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "dsp/block.h"
|
2025-04-15 19:06:12 +01:00
|
|
|
#include "dsp/device/options_displayer_warper.h"
|
|
|
|
|
#include "nlohmann/json.hpp"
|
|
|
|
|
|
2025-03-09 10:16:40 +01:00
|
|
|
namespace satdump
|
|
|
|
|
{
|
|
|
|
|
namespace ndsp
|
|
|
|
|
{
|
|
|
|
|
// TODOREWORK proper sub-namespace?
|
|
|
|
|
class Flowgraph;
|
|
|
|
|
|
|
|
|
|
class NodeInternal
|
|
|
|
|
{
|
|
|
|
|
protected:
|
|
|
|
|
Flowgraph *f;
|
2025-04-15 19:06:12 +01:00
|
|
|
|
|
|
|
|
std::shared_ptr<ndsp::OptDisplayerWarper> optdisp;
|
2025-03-09 10:16:40 +01:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
std::shared_ptr<ndsp::Block> blk;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
NodeInternal(const Flowgraph *f, std::shared_ptr<ndsp::Block> b);
|
|
|
|
|
|
2025-04-21 23:17:21 +02:00
|
|
|
virtual bool render();
|
|
|
|
|
|
|
|
|
|
virtual void up_state() { optdisp->update(); }
|
2025-03-09 10:16:40 +01:00
|
|
|
|
|
|
|
|
virtual nlohmann::json getP();
|
|
|
|
|
virtual void setP(nlohmann::json p);
|
|
|
|
|
};
|
2025-04-15 19:06:12 +01:00
|
|
|
} // namespace ndsp
|
|
|
|
|
} // namespace satdump
|