Single MRI volume slice rendered as a textured quad with adjustable axis, position, contrast and colormap. More...
#include "../disp3D_global.h"#include <Eigen/Core>#include <Eigen/Geometry>#include <QImage>#include <QMatrix4x4>#include <QVector>

Go to the source code of this file.
Classes | |
| class | DISP3DLIB::SliceObject |
| Data model for a single 2-D MRI volume slice. More... | |
Namespaces | |
| namespace | DISP3DLIB |
| 3-D brain visualisation using the Qt RHI rendering backend. | |
Enumerations | |
| enum class | DISP3DLIB::SliceOrientation { DISP3DLIB::Axial = 0 , DISP3DLIB::Coronal = 1 , DISP3DLIB::Sagittal = 2 } |
| Orientation for an orthogonal MRI slice. More... | |
Single MRI volume slice rendered as a textured quad with adjustable axis, position, contrast and colormap.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
SliceObject mounts one orthogonal slice (axial, sagittal or coronal) of an MriVolume on a screen-aligned quad and uploads the slice texture as R8 (grayscale) or RGBA8 (colour-mapped) to the GPU. The slice index can be scrolled at interactive rates; only the texture data is re-uploaded, the quad geometry is constant.
Used by the multimodal scene to mix MRI anatomy with the cortical surface and overlays in a single render pass: the slice is drawn first with depth-test enabled so cortical activity correctly occludes / is occluded by the slice plane.
Definition in file sliceobject.h.