efish Relacs Plugins  0.9.8
Public Slots | Public Member Functions | Protected Member Functions | List of all members
Session Class Reference

#include <session.h>

Inheritance diagram for Session:
Inheritance graph
[legend]
Collaboration diagram for Session:
Collaboration graph
[legend]

Public Slots

void customEvent (QEvent *qce)
 
- Public Slots inherited from Control
virtual void saveDoxygenOptions (void)
 
virtual void saveWidget (void)
 
- Public Slots inherited from ConfigDialog
virtual void dialog (void)
 
virtual void help (void)
 
virtual void notifyDialog (const Options &opt)
 

Public Member Functions

 Session (void)
 
 ~Session (void)
 
virtual void preConfig (void)
 
virtual void config (void)
 
virtual void initDevices (void)
 
virtual void sessionStarted (void)
 
virtual void sessionStopped (bool saved)
 
void saveEOD (void)
 
void saveTemperature (void)
 
void plot (void)
 
virtual void main (void)
 
- Public Member Functions inherited from Control
 Control (const string &name, const string &pluginset="", const string &author="unknown", const string &version="unknown", const string &date=__DATE__)
 
virtual ~Control (void)
 
virtual void setName (const string &name)
 
void start (void)
 
virtual void requestStop (void)
 
bool wait (double time=-1.0)
 
virtual void addActions (QMenu *menu, bool doxydoc)
 
 RELACSPlugin (const string &configident="", int configgroup=0, const string &name="", const string &pluginset="", const string &author="unknown", const string &version="unknown", const string &date=__DATE__)
 
virtual ~RELACSPlugin (void)
 
QWidget * widget (void)
 
void setWidget (QWidget *widget)
 
void setLayout (QLayout *layout)
 
int desktopWidth (void) const
 
int desktopHeight (void) const
 
string pluginSet (void) const
 
string uniqueName (void) const
 
void setShortUniqueName (void)
 
void setLongUniqueName (void)
 
void updateUniqueName (void)
 
const Optionssettings (void) const
 
Optionssettings (void)
 
void setSettings (void)
 
virtual void modeChanged (void)
 
virtual void notifyMetaData (void)
 
virtual void notifyStimulusData (void)
 
void setRELACSWidget (RELACSWidget *rw)
 
virtual string helpFileName (void) const
 
const InListtraces (void) const
 
const InDatatrace (int index) const
 
const InDatatrace (const string &ident) const
 
int traceIndex (const string &ident) const
 
string traceNames (void) const
 
string rawTraceNames (void) const
 
const EventListevents (void) const
 
const EventDataevents (int index) const
 
const EventDataevents (const string &ident) const
 
const EventDatastimulusEvents (void) const
 
const EventDatarestartEvents (void) const
 
const EventDatarecordingEvents (void) const
 
int traceInputTrace (int trace) const
 
int traceInputTrace (const string &ident) const
 
int traceInputEvent (int trace) const
 
int traceInputEvent (const string &ident) const
 
int eventInputTrace (int event) const
 
int eventInputTrace (const string &ident) const
 
int eventInputEvent (int event) const
 
int eventInputEvent (const string &ident) const
 
double signalTime (void) const
 
double currentTime (void) const
 
double currentTimeRaw (void) const
 
void addTracesEvents (deque< InList * > &data, deque< EventList * > &events)
 
void setTracesEvents (const InList &data, const EventList &event)
 
void assignTracesEvents (const InList &data, const EventList &events)
 
void assignTracesEvents (void)
 
void updateDerivedTracesEvents (void)
 
int getData (double mintracetime=0.0, double prevsignal=-1000.0)
 
int outTracesSize (void) const
 
int outTraceIndex (const string &name) const
 
string outTraceName (int index) const
 
string outTraceNames (void) const
 
const TraceSpecoutTrace (int index) const
 
const TraceSpecoutTrace (const string &name) const
 
void setSignalDelay (int device, double delay)
 
bool acquisition (void) const
 
bool simulation (void) const
 
bool analysis (void) const
 
bool idle (void) const
 
string modeStr (void) const
 
OptionsrelacsSettings (void)
 
const OptionsrelacsSettings (void) const
 
void lockRelacsSettings (void) const
 
void unlockRelacsSettings (void) const
 
QMutex * relacsSettingsMutex (void)
 
string path (void) const
 
string addPath (const string &file) const
 
string defaultPath (void) const
 
string addDefaultPath (const string &file) const
 
bool saving (void) const
 
OptionsstimulusData (void)
 
const OptionsstimulusData (void) const
 
int stimulusDataTraceFlag (void) const
 
void lockStimulusData (void) const
 
void unlockStimulusData (void) const
 
QMutex * stimulusDataMutex (void)
 
MetaDatametaData (void)
 
const MetaDatametaData (void) const
 
void lockMetaData (void) const
 
void unlockMetaData (void) const
 
QMutex * metaDataMutex (void)
 
AllDevicesdevices (void) const
 
Devicedevice (const string &ident)
 
void updateDeviceMenu (void)
 
DigitalIOdigitalIO (const string &ident)
 
Triggertrigger (const string &ident)
 
Attenuateattenuator (const string &name)
 
Filterfilter (const string &name)
 
FilterfilterTrace (int index)
 
FilterfilterTrace (const string &name)
 
OptionsfilterOpts (const string &name)
 
OptionsfilterTraceOpts (int index)
 
OptionsfilterTraceOpts (const string &name)
 
void lockFilter (const string &name)
 
void lockFilterTrace (int index)
 
void lockFilterTrace (const string &name)
 
void unlockFilter (const string &name)
 
void unlockFilterTrace (int index)
 
void unlockFilterTrace (const string &name)
 
void autoConfigureFilter (Filter *filter, double tbegin, double tend)
 
void autoConfigureFilter (Filter *filter, double duration)
 
void autoConfigureFilter (double tbegin, double tend)
 
void autoConfigureFilter (double duration)
 
Filterdetector (const string &name)
 
FilterdetectorEvents (int index)
 
FilterdetectorEvents (const string &name)
 
OptionsdetectorOpts (const string &name)
 
OptionsdetectorEventsOpts (int index)
 
OptionsdetectorEventsOpts (const string &name)
 
void lockDetector (const string &name)
 
void lockDetectorEvents (int index)
 
void lockDetectorEvents (const string &name)
 
void unlockDetector (const string &name)
 
void unlockDetectorEvents (int index)
 
void unlockDetectorEvents (const string &name)
 
void autoConfigureDetector (Filter *detector, double tbegin, double tend)
 
void autoConfigureDetector (Filter *detector, double duration)
 
void autoConfigureDetectors (double tbegin, double tend)
 
void autoConfigureDetectors (double duration)
 
double sessionTime (void) const
 
string sessionTimeStr (void) const
 
bool sessionRunning (void) const
 
int reproCount (void) const
 
bool globalKeyEvents (void)
 
void setGlobalKeyEvents (bool global=true)
 
- Public Member Functions inherited from ConfigDialog
 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
 
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 OptWidgetdialogOptions (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)
 
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)
 
- Public Member Functions inherited from ConfigClass
 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
 

Protected Member Functions

virtual void notify (void)
 
- Protected Member Functions inherited from Control
bool interrupt (void) const
 
bool waitOnData (double time=MAXDOUBLE)
 
bool waitOnReProSleep (double time=MAXDOUBLE)
 
bool waitOnReProFinished (double time=MAXDOUBLE)
 
bool waitOnSessionStart (double time=MAXDOUBLE)
 
bool waitOnSessionPrestop (double time=MAXDOUBLE)
 
bool waitOnSessionStop (double time=MAXDOUBLE)
 
bool sleep (double t)
 
void timeStamp (void)
 
bool sleepOn (double t)
 
virtual void setPluginSet (const string &pluginset)
 
void printlog (const string &s) const
 
void warning (const string &s, double timeout=0.0)
 
void info (const string &s, double timeout=0.0)
 
void postCustomEvent (int type=0)
 
int maxVoltages (const InData &data, vector< double > &ranges) const
 
int maxValues (const InData &data, vector< double > &ranges) const
 
void setGain (const InData &data, int gainindex)
 
void adjustGain (const InData &data, double maxvalue)
 
void adjustGain (const InData &data, double minvalue, double maxvalue)
 
void adjust (const InData &data, double tbegin, double tend, double threshold)
 
void adjust (const InData &data, double duration, double threshold)
 
int activateGains (void)
 
Controlcontrol (int index)
 
Controlcontrol (const string &name)
 
OptionscontrolOpts (int index)
 
OptionscontrolOpts (const string &name)
 
void lockControl (int index)
 
void lockControl (const string &name)
 
void unlockControl (int index)
 
void unlockControl (const string &name)
 
Modelmodel (void)
 
OptionsmodelOpts (void)
 
void lockModel (void)
 
void unlockModel (void)
 
ReProsrepros (void)
 
OptionsreprosDialogOpts (void)
 
ReProrepro (int index)
 
ReProrepro (const string &name)
 
OptionsreproOpts (int index)
 
OptionsreproOpts (const string &name)
 
void lockRePro (int index)
 
void lockRePro (const string &name)
 
void unlockRePro (int index)
 
void unlockRePro (const string &name)
 
ReProcurrentRePro (void)
 
OptionscurrentReProOpts (void)
 
void lockCurrentRePro (void)
 
void unlockCurrentRePro (void)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual bool eventFilter (QObject *obj, QEvent *event)
 
void setWaitMouseCursor (void)
 
void restoreMouseCursor (void)
 
- Protected Member Functions inherited from ConfigDialog
void setDialogOpen (bool open=true)
 
void setHelpOpen (bool open=true)
 

Additional Inherited Members

- Public Types inherited from ConfigClass
enum  Action
 
- Signals inherited from ConfigDialog
void dialogAccepted (void)
 
void dialogAction (int r)
 
void dialogClosed (int r)
 
- Static Public Member Functions inherited from ConfigClass
static void setConfigureClasses (ConfigureClasses *cfg)
 
- Static Public Attributes inherited from Control
static const int DeviceId
 
static const int AnalogInputId
 
static const int AnalogOutputId
 
static const int DigitalIOId
 
static const int TriggerId
 
static const int AttenuatorId
 
static const int AttenuateId
 
static const int ModelId
 
static const int FilterId
 
static const int ReProId
 
static const int ControlId
 
static const int Core
 
static const int Plugins
 
- Protected Slots inherited from Control
void startTheSession (void)
 
void stopTheSession (void)
 
void toggleSession (void)
 
void removeFocus (void)
 
void muteAudioMonitor (void)
 
void unmuteAudioMonitor (void)
 
virtual void customEvent (QEvent *qce)
 
void widgetDestroyed (QObject *obj)
 
- Protected Slots inherited from ConfigDialog
void notificationFromDialog (const Parameter &p)
 
virtual void dClosed (int r)
 
virtual void hClosed (int r)
 
- Protected Attributes inherited from Control
RELACSWidgetRW
 
- Protected Attributes inherited from ConfigDialog
Options DialogOptions
 

Detailed Description

[Control] Session for recording EODs of weakly electric fish.

Author
Jan Benda
Version
1.1 (Jan 19, 2013)
Options
  • ephys=true: Electrophysiological recording (boolean)
Plots
  • The amplitude (red) and
  • the frequency (green) of the global EOD measurement.

Constructor & Destructor Documentation

Session ( void  )
~Session ( void  )

Member Function Documentation

void preConfig ( void  )
virtual
void config ( void  )
virtual
void initDevices ( void  )
virtual
void sessionStarted ( void  )
virtual
void sessionStopped ( bool  saved)
virtual

Reimplemented from Control.

References Session::saveEOD(), and Session::saveTemperature().

void saveEOD ( void  )
void saveTemperature ( void  )
void plot ( void  )
void main ( void  )
virtual
void customEvent ( QEvent *  qce)
slot
void notify ( void  )
protectedvirtual

This function is called when an option of the Session is set.

References Control::postCustomEvent().


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