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

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

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...

Detailed Description

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

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

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.