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 64 of file networkobject.h.
◆ NetworkObject()
| NetworkObject::NetworkObject |
( |
| ) |
|
◆ ~NetworkObject()
| NetworkObject::~NetworkObject |
( |
| ) |
|
|
default |
◆ edgeIndexBuffer()
| QRhiBuffer * NetworkObject::edgeIndexBuffer |
( |
| ) |
const |
◆ edgeIndexCount()
| int NetworkObject::edgeIndexCount |
( |
| ) |
const |
|
inline |
◆ edgeInstanceBuffer()
| QRhiBuffer * NetworkObject::edgeInstanceBuffer |
( |
| ) |
const |
◆ edgeInstanceCount()
| int NetworkObject::edgeInstanceCount |
( |
| ) |
const |
|
inline |
◆ edgeVertexBuffer()
| QRhiBuffer * NetworkObject::edgeVertexBuffer |
( |
| ) |
const |
◆ hasData()
| bool NetworkObject::hasData |
( |
| ) |
const |
|
inline |
◆ isVisible()
| bool 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 95 of file networkobject.cpp.
◆ nodeIndexBuffer()
| QRhiBuffer * NetworkObject::nodeIndexBuffer |
( |
| ) |
const |
◆ nodeIndexCount()
| int NetworkObject::nodeIndexCount |
( |
| ) |
const |
|
inline |
◆ nodeInstanceBuffer()
| QRhiBuffer * NetworkObject::nodeInstanceBuffer |
( |
| ) |
const |
◆ nodeInstanceCount()
| int NetworkObject::nodeInstanceCount |
( |
| ) |
const |
|
inline |
◆ nodeVertexBuffer()
| QRhiBuffer * NetworkObject::nodeVertexBuffer |
( |
| ) |
const |
◆ setColormap()
| void 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 117 of file networkobject.cpp.
◆ setThreshold()
| void 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 108 of file networkobject.cpp.
◆ setVisible()
| void NetworkObject::setVisible |
( |
bool | visible | ) |
|
|
inline |
◆ updateEdgeBuffers()
| void 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 495 of file networkobject.cpp.
◆ updateNodeBuffers()
| void 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 466 of file networkobject.cpp.
The documentation for this class was generated from the following files: