Electric Field Measurement Relacs Plugins
0.9.8
|
#include <manualjar.h>
Public Slots | |
void | setValues (void) |
![]() | |
virtual void | dialog (void) |
virtual void | help (void) |
virtual void | notifyDialog (const Options &opt) |
Public Member Functions | |
ManualJAR (void) | |
virtual int | main (void) |
virtual void | sessionStarted (void) |
void | initPlot (double deltaf, bool lineardeltaf, double deltaf2, double amplitude, double duration, double before, double after, double eodf, const MapD &eodfrequency, const EventData &jarchirpevents) |
void | save (double deltaf, bool lineardeltaf, double deltaf2, double amplitude, double duration, double pause, double fishrate, double stimulusrate, const MapD &eodfrequency, const MapD &eodamplitude, const EventData &jarchirpevents, bool split, int count) |
void | saveEODFreq (const Options &header, const MapD &eodfrequency, const MapD &eodamplitude, bool split, int count) |
void | saveChirps (const Options &header, const EventData &jarchirpevents, bool split, int count) |
![]() | |
ConfigDialog (const string &configident="", int configgroup=0, const string &name="", const string &author="", const string &version="", const string &date=__DATE__) | |
virtual | ~ConfigDialog (void) |
string | name (void) const |
virtual void | setName (const string &name) |
string | author (void) const |
virtual void | setAuthor (const string &author) |
string | version (void) const |
virtual void | setVersion (const string &version) |
string | date (void) const |
virtual void | setDate (const string &date) |
virtual OptWidget * | dialogOptions (OptDialog *od, string *tabhotkeys=0) |
virtual void | dialogButtons (OptDialog *od) |
virtual void | dialogEmptyMessage (OptDialog *od) |
int | dialogSelectMask (void) const |
void | setDialogSelectMask (int mask) |
void | addDialogSelectMask (int mask) |
int | dialogReadOnlyMask (void) const |
void | setDialogReadOnlyMask (int mask) |
void | addDialogReadOnlyMask (int mask) |
int | dialogStyle (void) const |
void | setDialogStyle (int style) |
void | addDialogStyle (int style) |
string | dialogCaption (void) const |
void | setDialogCaption (const string &caption) |
bool | dialogHeader (void) const |
void | setDialogHeader (bool d) |
string | headerBackgroundColor (void) const |
void | setHeaderBackgroundColor (const string &color) |
string | headerForegroundColor (void) const |
void | setHeaderForegroundColor (const string &color) |
string | headerImageFile (void) const |
void | setHeaderImageFile (const string &file) |
virtual void | dialogHeaderWidget (OptDialog *od) |
bool | dialogHelp (void) const |
void | setDialogHelp (bool d) |
string | helpCaption (void) const |
void | setHelpCaption (const string &caption) |
string | helpPath (int inx=0) const |
int | helpPathes (void) const |
void | clearHelpPathes (void) |
void | setHelpPath (const string &path) |
void | addHelpPath (const string &path) |
virtual string | helpFileName (void) const |
bool | dialogOpen (void) const |
bool | helpOpen (void) const |
QWidget * | mainWidget (void) |
virtual void | setMainWidget (QWidget *widget) |
void | lock () const |
void | unlock () const |
bool | tryLock (int timeout=1) |
QMutex * | mutex (void) |
![]() | |
ConfigClass (const string &ident, int group=0, int mode=0xffff, int selectmask=0) | |
ConfigClass (const ConfigClass &C) | |
virtual | ~ConfigClass (void) |
const string & | configIdent (void) const |
void | setConfigIdent (const string &ident) |
int | configGroup (void) const |
void | setConfigGroup (int group) |
int | configMode (void) const |
void | setConfigMode (int mode) |
void | addConfigMode (int mode) |
void | delConfigMode (int mode) |
int | configSelectMask (void) const |
void | setConfigSelectMask (int mask) |
void | addConfig (void) |
void | readConfig (void) |
virtual void | readConfig (StrQueue &sq) |
virtual void | saveConfig (ofstream &str) |
virtual int | configSize (void) const |
virtual void | config (void) |
virtual void | preConfig (void) |
![]() | |
Traces (void) | |
![]() | |
StandardTraces (void) | |
![]() | |
EODTools (void) | |
double | eodThreshold (const InData &data, double tbegin, double tend, double contrast=0.2) |
void | eodPeaks (const InData &data, double tbegin, double tend, double threshold, EventData &peaks) |
void | eodTroughs (const InData &data, double tbegin, double tend, double threshold, EventData &troughs) |
void | eodPeaksTroughs (const InData &data, double tbegin, double tend, double threshold, EventData &peaks, EventData &troughs) |
double | meanPeaks (const InData &data, double tbegin, double tend, double threshold) |
double | meanTroughs (const InData &data, double tbegin, double tend, double threshold) |
double | eodAmplitude (const InData &data, double tbegin, double tend) |
void | beatAmplitudes (const InData &eodd, double tbegin, double tend, double period, double contrast, double &uppermean, double &upperampl, double &lowermean, double &lowerampl) |
double | beatAmplitude (const InData &eodd, double tbegin, double tend, double period, double contrast=0.2) |
double | beatContrast (const InData &eodd, double tbegin, double tend, double period, double contrast=0.2) |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *e) |
virtual void | customEvent (QEvent *qce) |
![]() | |
void | setDialogOpen (bool open=true) |
void | setHelpOpen (bool open=true) |
Protected Attributes | |
Plot | P |
OptWidget | JW |
QLabel * | ModeLabel |
QLabel * | ElapsedTimeLabel |
QPushButton * | StartButton |
bool | Start |
int | Count |
![]() | |
Options | DialogOptions |
Additional Inherited Members | |
![]() | |
enum | Action |
![]() | |
void | dialogAccepted (void) |
void | dialogAction (int r) |
void | dialogClosed (int r) |
![]() | |
static void | setConfigureClasses (ConfigureClasses *cfg) |
![]() | |
static void | initialize (const RELACSPlugin *rp, const InList &data, const EventList &events) |
![]() | |
void | notificationFromDialog (const Parameter &p) |
virtual void | dClosed (int r) |
virtual void | hClosed (int r) |
![]() | |
static void | clearIndices (int *traceindices, int n=-1) |
static void | initStandardTraces (const InList &data, int *ntraces, int *traceindices, const string *names, string &namelist, bool alpha=false) |
static void | initStandardEventTraces (const InList &data, const EventList &events, int *ntraces, int *traceindices, int *eventindices, const string *tracenames, const string *eventnames, string &tracenamelist, string &eventnamelist, bool alpha=false) |
static void | initStandardOutputs (const RELACSPlugin *rp, int *ntraces, int *traceindices, const string *names, string &namelist, bool alpha=false) |
![]() | |
static int | EODTrace = -1 |
static int | EODEvents = -1 |
static int | ChirpEvents = -1 |
static int | LocalEODTraces = 0 |
static int | LocalEODTrace [MaxTraces] = { -1, -1, -1, -1 } |
static int | LocalEODEvents [MaxTraces] = { -1, -1, -1, -1 } |
static int | LocalChirpEvents [MaxTraces] = { -1, -1, -1, -1 } |
static int | LocalBeatPeakEvents [MaxTraces] = { -1, -1, -1, -1 } |
static int | LocalBeatTroughEvents [MaxTraces] = { -1, -1, -1, -1 } |
static int | FishEODTanks = 0 |
static int | FishEODTraces [MaxTraces] = { 0, 0, 0, 0 } |
static int | FishEODTrace [MaxTraces][MaxTraces] = { { -1, -1, -1, -1 }, { -1, -1, -1, -1 } } |
static int | FishEODEvents [MaxTraces][MaxTraces] = { { -1, -1, -1, -1 }, { -1, -1, -1, -1 } } |
static int | FishChirpEvents [MaxTraces][MaxTraces] = { { -1, -1, -1, -1 }, { -1, -1, -1, -1 } } |
static int | GlobalEField = -1 |
static int | GlobalAMEField = -1 |
static int | LocalEFields = 0 |
static int | LocalEField [MaxTraces] = { -1, -1, -1, -1 } |
static int | LocalAMEFields = 0 |
static int | LocalAMEField [MaxTraces] = { -1, -1, -1, -1 } |
static int | FishEFields = 0 |
static int | FishEField [MaxTraces] = { -1, -1, -1, -1 } |
static int | EFields = 0 |
static int | EField [2 *MaxTraces] = { -1, -1, -1, -1 } |
static int | GlobalEFieldTrace = -1 |
static int | GlobalEFieldEvents = -1 |
static int | LocalEFieldTraces = 0 |
static int | LocalEFieldTrace [MaxTraces] = { -1, -1, -1, -1 } |
static int | LocalEFieldEvents [MaxTraces] = { -1, -1, -1, -1 } |
static int | FishEFieldTraces = 0 |
static int | FishEFieldTrace [MaxTraces] = { -1, -1, -1, -1 } |
static int | FishEFieldEvents [MaxTraces] = { -1, -1, -1, -1 } |
![]() | |
static const int | MaxTraces |
[RePro] Apply sinewaves with manually set difference frequencies and amplitudes.
eodf=0Hz
: Current EOD frequency (number
)deltaf=0Hz
: Difference frequency (number
)lineardeltaf=false:
Change difference frequency linearly (boolean
)deltaf2=0Hz
: Difference frequency at end (number
)amplitude=1mV
: Amplitude (number
)duration=10seconds
: Signal duration (number
)ramp=0.5seconds
: Duration of linear ramp (number
)fakefish=0Hz
: Assume a fish with frequency (number
)showlineardeltaf=false:
Show dialog for linearly changing deltaf (boolean
)before=1seconds
: Time before stimulation to be analyzed (number
)after=1seconds
: Time after stimulation to be analyzed (number
)averagetime=1seconds
: Time for computing EOD frequency (number
)split=false:
Save each run into a separate file (boolean
)savetraces=false:
Save traces during pause (boolean
) ManualJAR | ( | void | ) |
References OptWidget::assign(), ManualJAR::Count, ManualJAR::ElapsedTimeLabel, ManualJAR::JW, Plot::lock(), ManualJAR::ModeLabel, ConfigDialog::mutex(), ManualJAR::P, Plot::setBMarg(), ConfigClass::setConfigSelectMask(), ConfigDialog::setDialogSelectMask(), Plot::setLMarg(), OptWidget::setMargins(), Plot::setRMarg(), Plot::setTMarg(), ManualJAR::setValues(), OptWidget::setVerticalSpacing(), Plot::setXLabel(), Plot::setYLabel(), Plot::setYRange(), ManualJAR::StartButton, and Plot::unlock().
|
virtual |
Implements RePro.
References EventData::assign(), EventData::begin(), ceil(), Traces::ChirpEvents, Plot::clear(), Map< T >::clear(), EventData::clear(), ManualJAR::Count, Plot::draw(), EventData::end(), Traces::EODEvents, Traces::EODTrace, DaqError::errorText(), DaqError::failed(), Traces::GlobalEField, ManualJAR::initPlot(), ManualJAR::JW, OutData::length(), Plot::lock(), ManualJAR::P, Plot::plotVLine(), Map< T >::push(), Map< T >::reserve(), EventData::reserve(), ManualJAR::save(), OutData::setDelay(), OutData::setIntensity(), OutData::setTrace(), Plot::setXRange(), OutData::sineWave(), ManualJAR::Start, OutData::sweepWave(), EventIterator::time(), Plot::unlock(), and OptWidget::updateValue().
|
virtual |
References ManualJAR::Count.
void initPlot | ( | double | deltaf, |
bool | lineardeltaf, | ||
double | deltaf2, | ||
double | amplitude, | ||
double | duration, | ||
double | before, | ||
double | after, | ||
double | eodf, | ||
const MapD & | eodfrequency, | ||
const EventData & | jarchirpevents | ||
) |
References Plot::clear(), Plot::draw(), Plot::keepPointer(), Plot::lock(), ConfigDialog::mutex(), ManualJAR::P, Plot::plot(), Plot::plotVLine(), Plot::setDataMutex(), Plot::setTitle(), Plot::setXRange(), Plot::setYFallBackRange(), Plot::setYRange(), and Plot::unlock().
Referenced by ManualJAR::main().
void save | ( | double | deltaf, |
bool | lineardeltaf, | ||
double | deltaf2, | ||
double | amplitude, | ||
double | duration, | ||
double | pause, | ||
double | fishrate, | ||
double | stimulusrate, | ||
const MapD & | eodfrequency, | ||
const MapD & | eodamplitude, | ||
const EventData & | jarchirpevents, | ||
bool | split, | ||
int | count | ||
) |
References ManualJAR::saveChirps(), and ManualJAR::saveEODFreq().
Referenced by ManualJAR::main().
void saveEODFreq | ( | const Options & | header, |
const MapD & | eodfrequency, | ||
const MapD & | eodamplitude, | ||
bool | split, | ||
int | count | ||
) |
References TableKey::addNumber(), Traces::EODEvents, TableKey::save(), TableKey::saveKey(), Map< T >::size(), EventData::sizeFormat(), EventData::sizeScale(), EventData::sizeUnit(), Map< T >::x(), and Map< T >::y().
Referenced by ManualJAR::save().
References TableKey::addNumber(), Traces::ChirpEvents, EventData::eventSize(), EventData::eventWidth(), TableKey::save(), TableKey::saveKey(), EventData::size(), EventData::sizeFormat(), EventData::sizeScale(), EventData::sizeUnit(), EventData::widthFormat(), EventData::widthScale(), and EventData::widthUnit().
Referenced by ManualJAR::save().
|
slot |
References OptWidget::accept(), ManualJAR::JW, and ManualJAR::Start.
Referenced by ManualJAR::ManualJAR().
|
protectedvirtual |
References ManualJAR::StartButton.
|
protectedvirtual |
|
protected |
Referenced by ManualJAR::initPlot(), ManualJAR::main(), and ManualJAR::ManualJAR().
|
protected |
Referenced by ManualJAR::customEvent(), ManualJAR::main(), ManualJAR::ManualJAR(), and ManualJAR::setValues().
|
protected |
Referenced by ManualJAR::customEvent(), and ManualJAR::ManualJAR().
|
protected |
Referenced by ManualJAR::customEvent(), and ManualJAR::ManualJAR().
|
protected |
Referenced by ManualJAR::customEvent(), ManualJAR::keyPressEvent(), and ManualJAR::ManualJAR().
|
protected |
Referenced by ManualJAR::main(), and ManualJAR::setValues().
|
protected |
Referenced by ManualJAR::main(), ManualJAR::ManualJAR(), and ManualJAR::sessionStarted().