Renderable network visualization for QRhi.
More...
#include <networkobject.h>
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.
◆ NetworkObject()
| DISP3DLIB::NetworkObject::NetworkObject |
( |
| ) |
|
◆ ~NetworkObject()
| DISP3DLIB::NetworkObject::~NetworkObject |
( |
| ) |
|
|
default |
◆ edgeIndexBuffer()
| QRhiBuffer * DISP3DLIB::NetworkObject::edgeIndexBuffer |
( |
| ) |
const |
◆ edgeIndexCount()
| int DISP3DLIB::NetworkObject::edgeIndexCount |
( |
| ) |
const |
|
inline |
◆ edgeInstanceBuffer()
| QRhiBuffer * DISP3DLIB::NetworkObject::edgeInstanceBuffer |
( |
| ) |
const |
◆ edgeInstanceCount()
| int DISP3DLIB::NetworkObject::edgeInstanceCount |
( |
| ) |
const |
|
inline |
◆ edgeVertexBuffer()
| QRhiBuffer * DISP3DLIB::NetworkObject::edgeVertexBuffer |
( |
| ) |
const |
◆ hasData()
| bool DISP3DLIB::NetworkObject::hasData |
( |
| ) |
const |
|
inline |
◆ isVisible()
| bool DISP3DLIB::NetworkObject::isVisible |
( |
| ) |
const |
|
inline |
◆ load()
Load network data and generate node/edge instances.
- Parameters
-
| [in] | network | The connectivity network to visualize. |
| [in] | sColormap | Colormap name for weight-based coloring (e.g. "Viridis", "Hot"). |
Definition at line 94 of file networkobject.cpp.
◆ nodeIndexBuffer()
| QRhiBuffer * DISP3DLIB::NetworkObject::nodeIndexBuffer |
( |
| ) |
const |
◆ nodeIndexCount()
| int DISP3DLIB::NetworkObject::nodeIndexCount |
( |
| ) |
const |
|
inline |
◆ nodeInstanceBuffer()
| QRhiBuffer * DISP3DLIB::NetworkObject::nodeInstanceBuffer |
( |
| ) |
const |
◆ nodeInstanceCount()
| int DISP3DLIB::NetworkObject::nodeInstanceCount |
( |
| ) |
const |
|
inline |
◆ nodeVertexBuffer()
| QRhiBuffer * DISP3DLIB::NetworkObject::nodeVertexBuffer |
( |
| ) |
const |
◆ setColormap()
| void DISP3DLIB::NetworkObject::setColormap |
( |
const QString & | sColormap | ) |
|
Set the colormap used for edge/node coloring.
- Parameters
-
| [in] | sColormap | Colormap 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] | dThreshold | New threshold value (0.0 – 1.0). |
Definition at line 107 of file networkobject.cpp.
◆ setVisible()
| void DISP3DLIB::NetworkObject::setVisible |
( |
bool | visible | ) |
|
|
inline |
◆ updateEdgeBuffers()
| void DISP3DLIB::NetworkObject::updateEdgeBuffers |
( |
QRhi * | rhi, |
|
|
QRhiResourceUpdateBatch * | u ) |
Upload or update GPU buffers for edge geometry.
- Parameters
-
| [in] | rhi | QRhi instance. |
| [in] | u | Resource 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] | rhi | QRhi instance. |
| [in] | u | Resource update batch. |
Definition at line 533 of file networkobject.cpp.
The documentation for this class was generated from the following files: