v2.0.0
Loading...
Searching...
No Matches
MNELIB::MNELayoutPort Class Reference

Single viewport of a plotter layout (one line of an MNE-C .lout file). More...

#include <mne_layout_port.h>

Public Member Functions

bool contains (const QString &channel) const
QRectF rect () const

Static Public Member Functions

static QString cleanName (const QString &name)

Public Attributes

int portno = 0
bool invert = false
float xmin = 0
float xmax = 0
float ymin = 0
float ymax = 0
QString label
QStringList names
bool matched = false

Detailed Description

Single viewport of a plotter layout (one line of an MNE-C .lout file).

Channel names are stored in matching form: lower case, without spaces and without anything after a dash (MNE-C mne_lout_clean_name), so "MEG 0113" and "meg0113" select the same port and a CTF "MLC11-2622" matches "MLC11".

Definition at line 43 of file mne_layout_port.h.

Member Function Documentation

◆ cleanName()

QString MNELayoutPort::cleanName ( const QString & name)
static

Returns name in matching form.

Parameters
[in]nameA channel name.
Returns
The name in lower case, without spaces and cut at the first dash.

Definition at line 58 of file mne_layout.cpp.

◆ contains()

bool MNELayoutPort::contains ( const QString & channel) const

Returns whether channel (any spelling) is one of the port's channels.

Parameters
[in]channelA channel name.
Returns
True if the cleaned name equals one of the port's channel names.

Definition at line 65 of file mne_layout.cpp.

◆ rect()

QRectF MNELIB::MNELayoutPort::rect ( ) const
inline

Returns the viewport box.

Returns
The box from (xmin, ymin) with the port's width and height.

Definition at line 72 of file mne_layout_port.h.

Member Data Documentation

◆ invert

bool MNELIB::MNELayoutPort::invert = false

Draw the signal upside down (negative height in the file).

Definition at line 78 of file mne_layout_port.h.

◆ label

QString MNELIB::MNELayoutPort::label

Channel names as written in the file (e.g. "MEG 0113").

Definition at line 83 of file mne_layout_port.h.

◆ matched

bool MNELIB::MNELayoutPort::matched = false

Set by the last MNELayout::matchPorts call.

Definition at line 85 of file mne_layout_port.h.

◆ names

QStringList MNELIB::MNELayoutPort::names

Channel names in matching form (see cleanName()).

Definition at line 84 of file mne_layout_port.h.

◆ portno

int MNELIB::MNELayoutPort::portno = 0

Running number of this viewport.

Definition at line 77 of file mne_layout_port.h.

◆ xmax

float MNELIB::MNELayoutPort::xmax = 0

Viewport right bound.

Definition at line 80 of file mne_layout_port.h.

◆ xmin

float MNELIB::MNELayoutPort::xmin = 0

Viewport left bound.

Definition at line 79 of file mne_layout_port.h.

◆ ymax

float MNELIB::MNELayoutPort::ymax = 0

Viewport top bound.

Definition at line 82 of file mne_layout_port.h.

◆ ymin

float MNELIB::MNELayoutPort::ymin = 0

Viewport bottom bound.

Definition at line 81 of file mne_layout_port.h.


The documentation for this class was generated from the following files: