SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
SWMM2DResultsQSGRenderer Class Reference

#include <swmm2dresultsqsgrenderer.h>

Inheritance diagram for SWMM2DResultsQSGRenderer:
Collaboration diagram for SWMM2DResultsQSGRenderer:

Signals

void contentReady ()
 

Public Member Functions

 SWMM2DResultsQSGRenderer (QQuickItem *parent=nullptr)
 
 ~SWMM2DResultsQSGRenderer () override
 
void setLayer (SWMM2DResultsLayer *layer)
 
void setMapExtent (const MapExtent &extent)
 
void forceRebuild ()
 
quint64 contentRevision () const noexcept
 

Protected Member Functions

QSGNode * updatePaintNode (QSGNode *oldNode, UpdatePaintNodeData *) override
 

Constructor & Destructor Documentation

◆ SWMM2DResultsQSGRenderer()

SWMM2DResultsQSGRenderer::SWMM2DResultsQSGRenderer ( QQuickItem *  parent = nullptr)
explicit

◆ ~SWMM2DResultsQSGRenderer()

SWMM2DResultsQSGRenderer::~SWMM2DResultsQSGRenderer ( )
override

Member Function Documentation

◆ contentReady

void SWMM2DResultsQSGRenderer::contentReady ( )
signal

QSG-2D-1M Phase 7 — emitted when an asynchronous derived-geometry job (contour marching) publishes a result. MapCanvas connects this to its framebuffer-regrab path: without it, the freshly synced bands would sit in the offscreen QSG widget until the next layer-driven repaint.

Here is the caller graph for this function:

◆ contentRevision()

quint64 SWMM2DResultsQSGRenderer::contentRevision ( ) const
inlinenoexcept

Monotonic counter bumped every time an external change marks this renderer's content dirty. MapCanvas compares it against the value recorded when it last grabbed the QSG framebuffer, so a change that arrives after the canvas cleared its own dirty flag still forces a regrab instead of compositing a stale frame. Extent and layer-pointer changes are keyed separately by the canvas and do not bump this.

◆ forceRebuild()

void SWMM2DResultsQSGRenderer::forceRebuild ( )

Drop caches and mark content dirty — used by MapCanvas when the QSG/CPU ownership toggles so a stale frame is never composited.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLayer()

void SWMM2DResultsQSGRenderer::setLayer ( SWMM2DResultsLayer layer)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setMapExtent()

void SWMM2DResultsQSGRenderer::setMapExtent ( const MapExtent extent)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updatePaintNode()

QSGNode * SWMM2DResultsQSGRenderer::updatePaintNode ( QSGNode *  oldNode,
UpdatePaintNodeData *   
)
overrideprotected
Here is the call graph for this function:

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