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

Lightweight render-related enums (ShaderMode, VisualizationMode) shared across disp3D. More...

#include "../disp3D_global.h"
#include <cstdint>
Include dependency graph for rendertypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  DISP3DLIB
 3-D brain visualisation using the Qt RHI rendering backend.

Enumerations

enum  DISP3DLIB::ShaderMode {
  DISP3DLIB::Standard , DISP3DLIB::Holographic , DISP3DLIB::Anatomical , DISP3DLIB::Dipole ,
  DISP3DLIB::XRay , DISP3DLIB::ShowNormals
}
enum  DISP3DLIB::VisualizationMode { DISP3DLIB::ModeSurface , DISP3DLIB::ModeAnnotation , DISP3DLIB::ModeScientific , DISP3DLIB::ModeSourceEstimate }

Functions

uint32_t DISP3DLIB::packABGR (uint32_t r, uint32_t g, uint32_t b, uint32_t a=0xFF)

Detailed Description

Lightweight render-related enums (ShaderMode, VisualizationMode) shared across disp3D.

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

Kept QRhi-free and free of heavy Qt includes so it can be pulled in from any disp3D translation unit without forcing a recompile of every shader pipeline when a new render mode is added.

DISP3DLIB::ShaderMode selects between the Standard Phong lighting model, Holographic (translucent fresnel), Anatomical (matte tissue), Dipole (instanced arrow shader), XRay (additive front-faces) and ShowNormals (debug visualisation of vertex normals). DISP3DLIB::VisualizationMode selects how per-vertex colour is computed in the fragment shader: from the base surface tint, from FsAnnotation parcellation, from a scientific (curvature-shaded) palette, or from a source-time-course overlay.

Definition in file rendertypes.h.