v2.0.0
Loading...
Searching...
No Matches
NetworkObject Class Reference

Renderable network visualization for QRhi. More...

#include <networkobject.h>

Classes

struct  GpuBuffers

Public Member Functions

 NetworkObject ()
 ~NetworkObject ()
void load (const CONNECTIVITYLIB::Network &network, const QString &sColormap="Viridis")
void setThreshold (double dThreshold)
void setColormap (const QString &sColormap)
void updateNodeBuffers (QRhi *rhi, QRhiResourceUpdateBatch *u)
void updateEdgeBuffers (QRhi *rhi, QRhiResourceUpdateBatch *u)
QRhiBuffer * nodeVertexBuffer () const
QRhiBuffer * nodeIndexBuffer () const
QRhiBuffer * nodeInstanceBuffer () const
int nodeIndexCount () const
int nodeInstanceCount () const
QRhiBuffer * edgeVertexBuffer () const
QRhiBuffer * edgeIndexBuffer () const
QRhiBuffer * edgeInstanceBuffer () const
int edgeIndexCount () const
int edgeInstanceCount () const
bool isVisible () const
void setVisible (bool visible)
bool hasData () const

Detailed Description

Renderable network visualization for QRhi.

NetworkObject renders connectivity network nodes (instanced spheres) and edges (instanced cylinders) using the same instanced rendering pipeline as DipoleObject for the QRhi backend.

Definition at line 64 of file networkobject.h.

Constructor & Destructor Documentation

◆ NetworkObject()

NetworkObject::NetworkObject ( )

Default constructor.

Definition at line 75 of file networkobject.cpp.

◆ ~NetworkObject()

NetworkObject::~NetworkObject ( )
default

Destructor.

Member Function Documentation

◆ edgeIndexBuffer()

QRhiBuffer * NetworkObject::edgeIndexBuffer ( ) const

Definition at line 90 of file networkobject.cpp.

◆ edgeIndexCount()

int NetworkObject::edgeIndexCount ( ) const
inline

Definition at line 133 of file networkobject.h.

◆ edgeInstanceBuffer()

QRhiBuffer * NetworkObject::edgeInstanceBuffer ( ) const

Definition at line 91 of file networkobject.cpp.

◆ edgeInstanceCount()

int NetworkObject::edgeInstanceCount ( ) const
inline

Definition at line 134 of file networkobject.h.

◆ edgeVertexBuffer()

QRhiBuffer * NetworkObject::edgeVertexBuffer ( ) const

Definition at line 89 of file networkobject.cpp.

◆ hasData()

bool NetworkObject::hasData ( ) const
inline

Definition at line 140 of file networkobject.h.

◆ isVisible()

bool NetworkObject::isVisible ( ) const
inline

Definition at line 137 of file networkobject.h.

◆ load()

void NetworkObject::load ( const CONNECTIVITYLIB::Network & network,
const QString & sColormap = "Viridis" )

Load network data and generate node/edge instances.

Parameters
[in]networkThe connectivity network to visualize.
[in]sColormapColormap name for weight-based coloring (e.g. "Viridis", "Hot").

Definition at line 95 of file networkobject.cpp.

◆ nodeIndexBuffer()

QRhiBuffer * NetworkObject::nodeIndexBuffer ( ) const

Definition at line 87 of file networkobject.cpp.

◆ nodeIndexCount()

int NetworkObject::nodeIndexCount ( ) const
inline

Definition at line 126 of file networkobject.h.

◆ nodeInstanceBuffer()

QRhiBuffer * NetworkObject::nodeInstanceBuffer ( ) const

Definition at line 88 of file networkobject.cpp.

◆ nodeInstanceCount()

int NetworkObject::nodeInstanceCount ( ) const
inline

Definition at line 127 of file networkobject.h.

◆ nodeVertexBuffer()

QRhiBuffer * NetworkObject::nodeVertexBuffer ( ) const

Definition at line 86 of file networkobject.cpp.

◆ setColormap()

void NetworkObject::setColormap ( const QString & sColormap)

Set the colormap used for edge/node coloring.

Parameters
[in]sColormapColormap name (e.g. "Hot", "Viridis", "Jet").

Definition at line 117 of file networkobject.cpp.

◆ setThreshold()

void NetworkObject::setThreshold ( double dThreshold)

Update the threshold and regenerate visible edges/nodes.

Parameters
[in]dThresholdNew threshold value (0.0 – 1.0).

Definition at line 108 of file networkobject.cpp.

◆ setVisible()

void NetworkObject::setVisible ( bool visible)
inline

Definition at line 138 of file networkobject.h.

◆ updateEdgeBuffers()

void NetworkObject::updateEdgeBuffers ( QRhi * rhi,
QRhiResourceUpdateBatch * u )

Upload or update GPU buffers for edge geometry.

Parameters
[in]rhiQRhi instance.
[in]uResource update batch.

Definition at line 495 of file networkobject.cpp.

◆ updateNodeBuffers()

void NetworkObject::updateNodeBuffers ( QRhi * rhi,
QRhiResourceUpdateBatch * u )

Upload or update GPU buffers for node geometry.

Parameters
[in]rhiQRhi instance.
[in]uResource update batch.

Definition at line 466 of file networkobject.cpp.


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