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
SWMMLayerItem Class Reference

#include <swmmlayeritem.h>

Inheritance diagram for SWMMLayerItem:
Collaboration diagram for SWMMLayerItem:

Public Member Functions

 SWMMLayerItem (SWMMModelLayer *layer, QGraphicsItem *parent=nullptr)
 
 ~SWMMLayerItem () override=default
 
int type () const override
 
void refreshBoundingRect ()
 
QRectF boundingRect () const override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
SWMMModelLayerownerLayer () const
 

Constructor & Destructor Documentation

◆ SWMMLayerItem()

SWMMLayerItem::SWMMLayerItem ( SWMMModelLayer layer,
QGraphicsItem *  parent = nullptr 
)
explicit
Here is the call graph for this function:

◆ ~SWMMLayerItem()

SWMMLayerItem::~SWMMLayerItem ( )
overridedefault

Member Function Documentation

◆ boundingRect()

QRectF SWMMLayerItem::boundingRect ( ) const
inlineoverride
Here is the caller graph for this function:

◆ ownerLayer()

SWMMModelLayer * SWMMLayerItem::ownerLayer ( ) const
inline

Layer that owns this batched renderer. Used by the layer's depopulateScene() to pick out its own batched item when tearing down. Multiple layers each have one, so identity is required.

Here is the caller graph for this function:

◆ paint()

void SWMMLayerItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
override
Here is the call graph for this function:

◆ refreshBoundingRect()

void SWMMLayerItem::refreshBoundingRect ( )

Recompute the cached bounding rect from the layer's SoA. Call after a geometry-mutating edit (move / add / remove).

Here is the caller graph for this function:

◆ type()

int SWMMLayerItem::type ( ) const
inlineoverride
Here is the caller graph for this function:

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