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

QStandardItemModel mirroring the BIDS dataset hierarchy (subjects / sessions / runs / derivatives). More...

#include "../../disp_global.h"
#include <QStandardItemModel>
Include dependency graph for bidsviewmodel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DISPLIB::BidsViewModel
 QStandardItemModel mirroring the BIDS dataset hierarchy (subjects / sessions / runs / derivatives). More...

Namespaces

namespace  DISPLIB
 2-D display widgets and visualisation helpers (charts, topography, colour maps).

Macros

#define BIDS_ITEM_TYPE   Qt::UserRole + 2
#define BIDS_ITEM_SUBJECT   Qt::UserRole + 3
#define BIDS_ITEM_SESSION   Qt::UserRole + 4

Variables

constexpr auto BIDS_SUBJECT = 01
constexpr auto BIDS_SESSION = 02
constexpr auto BIDS_FOLDER = 03
constexpr auto BIDS_FUNCTIONALDATA = 10
constexpr auto BIDS_ANATOMICALDATA = 11
constexpr auto BIDS_BEHAVIORALDATA = 12
constexpr auto BIDS_IEEGDATA = 13
constexpr auto BIDS_AVERAGE = 20
constexpr auto BIDS_EVENT = 21
constexpr auto BIDS_DIPOLE = 22
constexpr auto BIDS_ELECTRODES = 23
constexpr auto BIDS_COORDSYSTEM = 24
constexpr auto BIDS_UNKNOWN = 99

Detailed Description

QStandardItemModel mirroring the BIDS dataset hierarchy (subjects / sessions / runs / derivatives).

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2020-2026 MNE-CPP Authors

Author
Gabriel Motta gabri.nosp@m.elbe.nosp@m.nmott.nosp@m.a@gm.nosp@m.ail.c.nosp@m.om; Juan GPC jgarc.nosp@m.iapr.nosp@m.ieto@.nosp@m.mgh..nosp@m.harva.nosp@m.rd.e.nosp@m.du; Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
0.1.7
Date
October 2020

BidsViewModel rebuilds itself from a top-level dataset path and exposes the BIDS tree to DISPLIB::BidsView. Item roles carry the absolute path, the BIDS entity type and the loadable-by-this-app flag so the surrounding plugin can react to double-clicks (load raw, attach derivative, …) without re-walking the file system.

Definition in file bidsviewmodel.h.

Macro Definition Documentation

◆ BIDS_ITEM_SESSION

#define BIDS_ITEM_SESSION   Qt::UserRole + 4

Definition at line 31 of file bidsviewmodel.h.

◆ BIDS_ITEM_SUBJECT

#define BIDS_ITEM_SUBJECT   Qt::UserRole + 3

Definition at line 30 of file bidsviewmodel.h.

◆ BIDS_ITEM_TYPE

#define BIDS_ITEM_TYPE   Qt::UserRole + 2

Definition at line 29 of file bidsviewmodel.h.

Variable Documentation

◆ BIDS_ANATOMICALDATA

auto BIDS_ANATOMICALDATA = 11
inlineconstexpr

Definition at line 42 of file bidsviewmodel.h.

◆ BIDS_AVERAGE

auto BIDS_AVERAGE = 20
inlineconstexpr

Definition at line 47 of file bidsviewmodel.h.

◆ BIDS_BEHAVIORALDATA

auto BIDS_BEHAVIORALDATA = 12
inlineconstexpr

Definition at line 43 of file bidsviewmodel.h.

◆ BIDS_COORDSYSTEM

auto BIDS_COORDSYSTEM = 24
inlineconstexpr

Definition at line 51 of file bidsviewmodel.h.

◆ BIDS_DIPOLE

auto BIDS_DIPOLE = 22
inlineconstexpr

Definition at line 49 of file bidsviewmodel.h.

◆ BIDS_ELECTRODES

auto BIDS_ELECTRODES = 23
inlineconstexpr

Definition at line 50 of file bidsviewmodel.h.

◆ BIDS_EVENT

auto BIDS_EVENT = 21
inlineconstexpr

Definition at line 48 of file bidsviewmodel.h.

◆ BIDS_FOLDER

auto BIDS_FOLDER = 03
inlineconstexpr

Definition at line 38 of file bidsviewmodel.h.

◆ BIDS_FUNCTIONALDATA

auto BIDS_FUNCTIONALDATA = 10
inlineconstexpr

Definition at line 41 of file bidsviewmodel.h.

◆ BIDS_IEEGDATA

auto BIDS_IEEGDATA = 13
inlineconstexpr

Definition at line 44 of file bidsviewmodel.h.

◆ BIDS_SESSION

auto BIDS_SESSION = 02
inlineconstexpr

Definition at line 37 of file bidsviewmodel.h.

◆ BIDS_SUBJECT

auto BIDS_SUBJECT = 01
inlineconstexpr

Definition at line 36 of file bidsviewmodel.h.

◆ BIDS_UNKNOWN

auto BIDS_UNKNOWN = 99
inlineconstexpr

Definition at line 53 of file bidsviewmodel.h.