v2.0.0
Loading...
Searching...
No Matches
DISP3DLIB::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 59 of file networkobject.h.

Constructor & Destructor Documentation

◆ NetworkObject()

DISP3DLIB::NetworkObject::NetworkObject ( )

Default constructor.

Definition at line 56 of file networkobject.cpp.

◆ ~NetworkObject()

DISP3DLIB::NetworkObject::~NetworkObject ( )
default

Destructor.

Member Function Documentation

◆ edgeIndexBuffer()

QRhiBuffer * DISP3DLIB::NetworkObject::edgeIndexBuffer ( ) const

Definition at line 83 of file networkobject.cpp.

◆ edgeIndexCount()

int DISP3DLIB::NetworkObject::edgeIndexCount ( ) const
inline

Definition at line 134 of file networkobject.h.

◆ edgeInstanceBuffer()

QRhiBuffer * DISP3DLIB::NetworkObject::edgeInstanceBuffer ( ) const

Definition at line 87 of file networkobject.cpp.

◆ edgeInstanceCount()

int DISP3DLIB::NetworkObject::edgeInstanceCount ( ) const
inline

Definition at line 138 of file networkobject.h.

◆ edgeVertexBuffer()

QRhiBuffer * DISP3DLIB::NetworkObject::edgeVertexBuffer ( ) const

Definition at line 79 of file networkobject.cpp.

◆ hasData()

bool DISP3DLIB::NetworkObject::hasData ( ) const
inline

Definition at line 153 of file networkobject.h.

◆ isVisible()

bool DISP3DLIB::NetworkObject::isVisible ( ) const
inline

Definition at line 144 of file networkobject.h.

◆ load()

void DISP3DLIB::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 94 of file networkobject.cpp.

◆ nodeIndexBuffer()

QRhiBuffer * DISP3DLIB::NetworkObject::nodeIndexBuffer ( ) const

Definition at line 71 of file networkobject.cpp.

◆ nodeIndexCount()

int DISP3DLIB::NetworkObject::nodeIndexCount ( ) const
inline

Definition at line 121 of file networkobject.h.

◆ nodeInstanceBuffer()

QRhiBuffer * DISP3DLIB::NetworkObject::nodeInstanceBuffer ( ) const

Definition at line 75 of file networkobject.cpp.

◆ nodeInstanceCount()

int DISP3DLIB::NetworkObject::nodeInstanceCount ( ) const
inline

Definition at line 125 of file networkobject.h.

◆ nodeVertexBuffer()

QRhiBuffer * DISP3DLIB::NetworkObject::nodeVertexBuffer ( ) const

Definition at line 67 of file networkobject.cpp.

◆ setColormap()

void DISP3DLIB::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 116 of file networkobject.cpp.

◆ setThreshold()

void DISP3DLIB::NetworkObject::setThreshold ( double dThreshold)

Update the threshold and regenerate visible edges/nodes.

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

Definition at line 107 of file networkobject.cpp.

◆ setVisible()

void DISP3DLIB::NetworkObject::setVisible ( bool visible)
inline

Definition at line 148 of file networkobject.h.

◆ updateEdgeBuffers()

void DISP3DLIB::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 562 of file networkobject.cpp.

◆ updateNodeBuffers()

void DISP3DLIB::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 533 of file networkobject.cpp.


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