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

#include <graphicsitems.h>

Inheritance diagram for VectorPointItem:
Collaboration diagram for VectorPointItem:

Public Member Functions

 VectorPointItem (qint64 fid, double sceneX, double sceneY, double radius, QGraphicsItem *parent=nullptr)
 
int type () const override
 
qint64 featureId () const
 
void setAttributes (const QVariantMap &attrs)
 
QVariantMap attributes () const
 
void setHighlighted (bool on)
 
void setElementRadius (double r)
 
void setMarkerShape (int shapeValue)
 
int markerShape () const
 
void setOwnerLayer (OpenSWMMVisLayer *layer)
 
OpenSWMMVisLayerownerLayer () const
 

Protected Member Functions

void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 

Constructor & Destructor Documentation

◆ VectorPointItem()

VectorPointItem::VectorPointItem ( qint64  fid,
double  sceneX,
double  sceneY,
double  radius,
QGraphicsItem *  parent = nullptr 
)
explicit

Member Function Documentation

◆ attributes()

QVariantMap VectorPointItem::attributes ( ) const
inline

◆ featureId()

qint64 VectorPointItem::featureId ( ) const
inline

◆ markerShape()

int VectorPointItem::markerShape ( ) const
inline

◆ ownerLayer()

OpenSWMMVisLayer * VectorPointItem::ownerLayer ( ) const
inline

◆ paint()

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

◆ setAttributes()

void VectorPointItem::setAttributes ( const QVariantMap &  attrs)
inline

◆ setElementRadius()

void VectorPointItem::setElementRadius ( double  r)

◆ setHighlighted()

void VectorPointItem::setHighlighted ( bool  on)

◆ setMarkerShape()

void VectorPointItem::setMarkerShape ( int  shapeValue)
inline

G-1 — marker shape as a canonical OpenSWMM::Render::MarkerShape int (0..18). Painted via drawMarkerShape so GIS vector points get the full canonical shape set instead of always-ellipse.

◆ setOwnerLayer()

void VectorPointItem::setOwnerLayer ( OpenSWMMVisLayer layer)
inline

◆ type()

int VectorPointItem::type ( ) const
inlineoverride

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