Instanced connectivity-graph renderable: node spheres and edge cylinders coloured by weight through a named colormap. More...
#include "../disp3D_global.h"#include <QMatrix4x4>#include <QVector3D>#include <QColor>#include <vector>#include <memory>#include <connectivity/network/network.h>

Go to the source code of this file.
Classes | |
| class | NetworkObject |
| Renderable network visualization for QRhi. More... | |
Instanced connectivity-graph renderable: node spheres and edge cylinders coloured by weight through a named colormap.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
NetworkObject mirrors the DipoleObject instancing pattern but splits the scene into two meshes — nodes (spheres) and edges (cylinders) — each with its own vertex / index / instance buffer triple. The node mesh re-uses the dipole instance layout for shader compatibility (model + colour + isSelected), so a single pipeline serves both renderables.
setColormap selects the palette (Viridis, Hot, Jet, ...) used to map edge weight to RGBA; setThreshold prunes edges and nodes below a normalised cut-off and regenerates the instance stream without touching the underlying CONNECTIVITYLIB::Network.
Definition in file networkobject.h.