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
#define BIDS_SUBJECT   01
#define BIDS_SESSION   02
#define BIDS_FOLDER   03
#define BIDS_FUNCTIONALDATA   10
#define BIDS_ANATOMICALDATA   11
#define BIDS_BEHAVIORALDATA   12
#define BIDS_IEEGDATA   13
#define BIDS_AVERAGE   20
#define BIDS_EVENT   21
#define BIDS_DIPOLE   22
#define BIDS_ELECTRODES   23
#define BIDS_COORDSYSTEM   24
#define 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 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_ANATOMICALDATA

#define BIDS_ANATOMICALDATA   11

Definition at line 42 of file bidsviewmodel.h.

◆ BIDS_AVERAGE

#define BIDS_AVERAGE   20

Definition at line 47 of file bidsviewmodel.h.

◆ BIDS_BEHAVIORALDATA

#define BIDS_BEHAVIORALDATA   12

Definition at line 43 of file bidsviewmodel.h.

◆ BIDS_COORDSYSTEM

#define BIDS_COORDSYSTEM   24

Definition at line 51 of file bidsviewmodel.h.

◆ BIDS_DIPOLE

#define BIDS_DIPOLE   22

Definition at line 49 of file bidsviewmodel.h.

◆ BIDS_ELECTRODES

#define BIDS_ELECTRODES   23

Definition at line 50 of file bidsviewmodel.h.

◆ BIDS_EVENT

#define BIDS_EVENT   21

Definition at line 48 of file bidsviewmodel.h.

◆ BIDS_FOLDER

#define BIDS_FOLDER   03

Definition at line 38 of file bidsviewmodel.h.

◆ BIDS_FUNCTIONALDATA

#define BIDS_FUNCTIONALDATA   10

Definition at line 41 of file bidsviewmodel.h.

◆ BIDS_IEEGDATA

#define BIDS_IEEGDATA   13

Definition at line 44 of file bidsviewmodel.h.

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

◆ BIDS_SESSION

#define BIDS_SESSION   02

Definition at line 37 of file bidsviewmodel.h.

◆ BIDS_SUBJECT

#define BIDS_SUBJECT   01

Definition at line 36 of file bidsviewmodel.h.

◆ BIDS_UNKNOWN

#define BIDS_UNKNOWN   99

Definition at line 53 of file bidsviewmodel.h.