v2.0.0
Loading...
Searching...
No Matches
DISP3DLIB::SceneLayer Struct Reference

Opaque, type-erased handle to a layer payload. More...

#include <multimodalscene.h>

Public Attributes

QString id
QString displayName
SceneLayerKind kind = SceneLayerKind::Custom
bool visible = true
float opacity = 1.0f
int drawOrder = 0
std::shared_ptr< void > payload

Detailed Description

Opaque, type-erased handle to a layer payload.

The payload is owned by the caller (e.g. the plugin that loaded the data) and supplied as a std::shared_ptr<void> so the scene neither owns nor inspects it. The scene only needs the kind, the id, and the generic visibility / opacity flags to drive draw order; the renderer downcasts the payload by kind.

This indirection keeps disp3D/scene/ free of QRhi includes and means new renderables (sEEG, ECoG, future fNIRS optodes, …) plug in without touching this header.

Definition at line 83 of file multimodalscene.h.

Member Data Documentation

◆ displayName

QString DISP3DLIB::SceneLayer::displayName

Human-readable label for the scene tree dock.

Definition at line 86 of file multimodalscene.h.

◆ drawOrder

int DISP3DLIB::SceneLayer::drawOrder = 0

Tie-breaker within the same kind.

Definition at line 90 of file multimodalscene.h.

◆ id

QString DISP3DLIB::SceneLayer::id

Caller-supplied unique id ("cortex_lh", "seeg_LH", "mri_axial").

Definition at line 85 of file multimodalscene.h.

◆ kind

SceneLayerKind DISP3DLIB::SceneLayer::kind = SceneLayerKind::Custom

Definition at line 87 of file multimodalscene.h.

◆ opacity

float DISP3DLIB::SceneLayer::opacity = 1.0f

Definition at line 89 of file multimodalscene.h.

◆ payload

std::shared_ptr<void> DISP3DLIB::SceneLayer::payload

Renderable-specific data (ElectrodeObject, SliceObject, BrainSurface, …).

Definition at line 91 of file multimodalscene.h.

◆ visible

bool DISP3DLIB::SceneLayer::visible = true

Definition at line 88 of file multimodalscene.h.


The documentation for this struct was generated from the following file: