| 1 |
#ifndef _ERP_h_ |
| 2 |
#define _ERP_h_ |
| 3 |
/* ERP.h |
| 4 |
* |
| 5 |
* Copyright (C) 2011,2012,2014-2018 Paul Boersma |
| 6 |
* |
| 7 |
* This code is free software; you can redistribute it and/or modify |
| 8 |
* it under the terms of the GNU General Public License as published by |
| 9 |
* the Free Software Foundation; either version 2 of the License, or (at |
| 10 |
* your option) any later version. |
| 11 |
* |
| 12 |
* This code is distributed in the hope that it will be useful, but |
| 13 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 15 |
* See the GNU General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License |
| 18 |
* along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 19 |
*/ |
| 20 |
|
| 21 |
#include "Sound.h" |
| 22 |
|
| 23 |
#include "ERP_def.h" |
| 24 |
|
| 25 |
/** |
| 26 |
Look up the channel number from its name. |
| 27 |
*/ |
| 28 |
integer ERP_getChannelNumber (ERP me, conststring32 channelName); |
| 29 |
|
| 30 |
/** |
| 31 |
* Draw the scalp distribution. |
| 32 |
* @param tmin: the time window. |
| 33 |
* @param tmax: the time window. |
| 34 |
*/ |
| 35 |
void ERP_drawScalp (ERP me, |
| 36 |
Graphics graphics, double tmin, double tmax, double vmin, double vmax, |
| 37 |
enum kGraphics_colourScale colourScale, bool garnish); |
| 38 |
void ERP_drawScalp_garnish (Graphics graphics, double vmin, double vmax, enum kGraphics_colourScale colourScale); |
| 39 |
|
| 40 |
void ERP_drawChannel_number (ERP me, Graphics graphics, integer channelNumber, double tmin, double tmax, double vmin, double vmax, bool garnish); |
| 41 |
void ERP_drawChannel_name (ERP me, Graphics graphics, conststring32 channelName, double tmin, double tmax, double vmin, double vmax, bool garnish); |
| 42 |
|
| 43 |
autoTable ERP_tabulate (ERP me, bool includeSampleNumbers, bool includeTime, int timeDecimals, int voltageDecimals, int units); |
| 44 |
|
| 45 |
/** |
| 46 |
Extract the Sound part from the ERP. The channel names are lost. |
| 47 |
*/ |
| 48 |
autoSound ERP_downto_Sound (ERP me); |
| 49 |
|
| 50 |
/* End of file ERP.h */ |
| 51 |
#endif |