RADLib
RADical C++ application framework
RADUi::Slint::Detail::PlotComponentBridge< Component, Setter > Class Template Reference

Bridge object that renders a PlotModel into a Slint image property. More...

#include <RADSlintPlot.h>

+ Inheritance diagram for RADUi::Slint::Detail::PlotComponentBridge< Component, Setter >:
+ Collaboration diagram for RADUi::Slint::Detail::PlotComponentBridge< Component, Setter >:

Public Member Functions

 PlotComponentBridge (RADUi::PlotModel &model, const slint::ComponentHandle< Component > &component, Setter setter, RADUi::PlotViewport viewport, double framesPerSecond, RADUi::PlotRenderMode renderMode)
 Connects to model changes and configures rendering. More...
 
void handleDataChanged ()
 Schedules a rate-limited render after model data changes. More...
 
- Public Member Functions inherited from RADCore::RADObject
 RADObject ()
 Creates a RADObject bound to the current thread. More...
 
virtual ~RADObject ()
 Disconnects tracked event links and releases lifetime token. More...
 
void registerLink (const ConnectionRecord &record)
 Registers a connection for cleanup when this object is destroyed. More...
 
std::thread::id threadId () const
 Returns the thread id this object is currently associated with. More...
 
EventLoopassociatedEventLoop () const
 Returns the associated event loop, if any. More...
 
ThreadAffinity threadAffinity () const
 Returns both thread id and associated loop atomically. More...
 
std::weak_ptr< void > lifetimeToken () const
 Returns a weak token used to drop queued callbacks after destruction. More...
 
void moveToThread (std::thread::id tId, EventLoop *loop=nullptr)
 Moves the object's affinity to tId and optional loop. More...
 

Detailed Description

template<typename Component, typename Setter>
class RADUi::Slint::Detail::PlotComponentBridge< Component, Setter >

Bridge object that renders a PlotModel into a Slint image property.

Constructor & Destructor Documentation

◆ PlotComponentBridge()

template<typename Component , typename Setter >
RADUi::Slint::Detail::PlotComponentBridge< Component, Setter >::PlotComponentBridge ( RADUi::PlotModel model,
const slint::ComponentHandle< Component > &  component,
Setter  setter,
RADUi::PlotViewport  viewport,
double  framesPerSecond,
RADUi::PlotRenderMode  renderMode 
)
inline

Connects to model changes and configures rendering.

Member Function Documentation

◆ handleDataChanged()

template<typename Component , typename Setter >
void RADUi::Slint::Detail::PlotComponentBridge< Component, Setter >::handleDataChanged ( )
inline

Schedules a rate-limited render after model data changes.


The documentation for this class was generated from the following file: