v2.0.0
Loading...
Searching...
No Matches
DISP3DLIB::NetworkObject Class Reference

Renderable connectivity network visualization. More...

#include <networkobject.h>

Public Member Functions

 NetworkObject ()
 ~NetworkObject ()
void load (const CONNECTIVITYLIB::Network &network, const QString &sColormap="Viridis")
void setThreshold (double dThreshold)
void setColormap (const QString &sColormap)
InstancedStreams nodeStreams () const
InstancedStreams edgeStreams () const
int nodeInstanceCount () const
int edgeInstanceCount () const
const RenderKey & nodeRenderKey () const
const RenderKey & edgeRenderKey () const
bool isVisible () const
void setVisible (bool visible)
bool hasData () const

Detailed Description

Renderable connectivity network visualization.

NetworkObject renders connectivity network nodes (instanced spheres) and edges (instanced cylinders) using the same instanced rendering pipeline as DipoleObject.

Definition at line 57 of file networkobject.h.

Constructor & Destructor Documentation

◆ NetworkObject()

DISP3DLIB::NetworkObject::NetworkObject ( )
default

Default constructor.

◆ ~NetworkObject()

DISP3DLIB::NetworkObject::~NetworkObject ( )
default

Destructor.

Member Function Documentation

◆ edgeInstanceCount()

int DISP3DLIB::NetworkObject::edgeInstanceCount ( ) const
inline
Returns
Number of edges drawn above the threshold.

Definition at line 115 of file networkobject.h.

◆ edgeRenderKey()

const RenderKey & DISP3DLIB::NetworkObject::edgeRenderKey ( ) const
inline

Definition at line 127 of file networkobject.h.

◆ edgeStreams()

InstancedStreams DISP3DLIB::NetworkObject::edgeStreams ( ) const
Returns
CPU streams of the edge cylinder and of one instance per edge.

Definition at line 55 of file networkobject.cpp.

◆ hasData()

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

Definition at line 142 of file networkobject.h.

◆ isVisible()

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

Definition at line 133 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 66 of file networkobject.cpp.

◆ nodeInstanceCount()

int DISP3DLIB::NetworkObject::nodeInstanceCount ( ) const
inline
Returns
Number of nodes drawn, i.e. those touching an edge above the threshold.

Definition at line 109 of file networkobject.h.

◆ nodeRenderKey()

const RenderKey & DISP3DLIB::NetworkObject::nodeRenderKey ( ) const
inline
Returns
Identities of the node and edge meshes in the renderer's GPU cache.

Definition at line 123 of file networkobject.h.

◆ nodeStreams()

InstancedStreams DISP3DLIB::NetworkObject::nodeStreams ( ) const
Returns
CPU streams of the node sphere and of one instance per node.

Definition at line 46 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 88 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 79 of file networkobject.cpp.

◆ setVisible()

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

Definition at line 137 of file networkobject.h.


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