v2.0.0
Loading...
Searching...
No Matches
networkobject.h File Reference

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>
Include dependency graph for networkobject.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  NetworkObject
 Renderable network visualization for QRhi. More...

Detailed Description

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

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.0.0
Date
March 2026

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.