TraceView Class Reference

Class which draws the traces, cluster and event representations. More...

#include <traceview.h>

Inheritance diagram for TraceView:

Inheritance graph
[legend]
Collaboration diagram for TraceView:

Collaboration graph
[legend]
List of all members.

Public Types

enum  {
  SELECT = ZOOM+1, MEASURE = ZOOM+2, SELECT_TIME = ZOOM+3, SELECT_EVENT = ZOOM+4,
  ADD_EVENT = ZOOM+5, DRAW_LINE = ZOOM+6
}
 Enum to be use as a Mode. More...
enum  {
  SELECT = ZOOM+1, MEASURE = ZOOM+2, SELECT_TIME = ZOOM+3, SELECT_EVENT = ZOOM+4,
  ADD_EVENT = ZOOM+5, DRAW_LINE = ZOOM+6
}
 Enum to be use as a Mode. More...

Public Slots

void dataAvailable (Array< dataType > &data, QObject *initiator)
 Displays the data that has been retrieved.
void dataAvailable (Array< dataType > &data, QObject *initiator, QString providerName)
 Displays the cluster information that has been retrieved.
void dataAvailable (Array< dataType > &times, Array< int > &ids, QObject *initiator, QString providerName)
 Displays the event information that has been retrieved.
void nextClusterDataAvailable (Array< dataType > &data, QObject *initiator, QString providerName, long startingTime, long startingTimeInRecordingUnits)
 Compute the cluster information that has been retrieved regarding the next cluster to display.
void previousClusterDataAvailable (Array< dataType > &data, QObject *initiator, QString providerName, long startingTime, long startingTimeInRecordingUnits)
 Compute the cluster information that has been retrieved regarding the previous cluster to display.
void nextEventDataAvailable (Array< dataType > &times, Array< int > &ids, QObject *initiator, QString providerName, long startingTime)
 Compute the event information that has been retrieved regarding the next event to display.
void previousEventDataAvailable (Array< dataType > &times, Array< int > &ids, QObject *initiator, QString providerName, long startingTime)
 Compute the event information that has been retrieved regarding the previous event to display.
void eventToAddProperties (QString providerName, QString eventDescription)
 Stores the properties for the next event to be added.
void skipStatusChanged (const QValueList< int > &skippedChannels)
 Updates the list of skipped channels.
int getRasterHeight ()
 Returns the height of the rasters in the world coordinate system.
void dataAvailable (Array< dataType > &data, QObject *initiator)
 Displays the data that has been retrieved.
void dataAvailable (Array< dataType > &data, QObject *initiator, QString providerName)
 Displays the cluster information that has been retrieved.
void dataAvailable (Array< dataType > &times, Array< int > &ids, QObject *initiator, QString providerName)
 Displays the event information that has been retrieved.
void nextClusterDataAvailable (Array< dataType > &data, QObject *initiator, QString providerName, long startingTime, long startingTimeInRecordingUnits)
 Compute the cluster information that has been retrieved regarding the next cluster to display.
void previousClusterDataAvailable (Array< dataType > &data, QObject *initiator, QString providerName, long startingTime, long startingTimeInRecordingUnits)
 Compute the cluster information that has been retrieved regarding the previous cluster to display.
void nextEventDataAvailable (Array< dataType > &times, Array< int > &ids, QObject *initiator, QString providerName, long startingTime)
 Compute the event information that has been retrieved regarding the next event to display.
void previousEventDataAvailable (Array< dataType > &times, Array< int > &ids, QObject *initiator, QString providerName, long startingTime)
 Compute the event information that has been retrieved regarding the previous event to display.
void eventToAddProperties (QString providerName, QString eventDescription)
 Stores the properties for the next event to be added.
void skipStatusChanged (const QValueList< int > &skippedChannels)
 Updates the list of skipped channels.
int getRasterHeight ()
 Returns the height of the rasters in the world coordinate system.

Signals

void channelsSelected (const QValueList< int > &selectedIds)
void setStartAndDuration (long time, long duration)
void eventModified (QString providerName, int selectedEventId, double time, double newTime)
void eventRemoved (QString providerName, int selectedEventId, double time)
void eventAdded (QString providerName, QString addedEventDescription, double time)
void eventsAvailable (QDict< EventData > &eventsData, QMap< QString, QValueList< int > > &selectedEvents, QDict< ItemColors > &providerItemColors, QObject *initiator, double samplingRate)
void channelsSelected (const QValueList< int > &selectedIds)
void setStartAndDuration (long time, long duration)
void eventModified (QString providerName, int selectedEventId, double time, double newTime)
void eventRemoved (QString providerName, int selectedEventId, double time)
void eventAdded (QString providerName, QString addedEventDescription, double time)
void eventsAvailable (QDict< EventData > &eventsData, QMap< QString, QValueList< int > > &selectedEvents, QDict< ItemColors > &providerItemColors, QObject *initiator, double samplingRate)

Public Member Functions

 TraceView (TracesProvider &tracesProvider, bool greyScale, bool multiColumns, bool verticalLines, bool raster, bool waveforms, bool labelsDisplay, QValueList< int > &channelsToDisplay, int unitGain, int acquisitionGain, long start, long timeFrameWidth, ChannelColors *channelColors, QMap< int, QValueList< int > > *groupsChannels, QMap< int, int > *channelsGroups, QValueList< int > &channelOffsets, QValueList< int > &gains, const QValueList< int > &skippedChannels, int rasterHeight, QImage backgroundImage, QWidget *parent=0, const char *name=0, QColor backgroundColor=Qt::black, KStatusBar *statusBar=0L, int minSize=500, int maxSize=4000, int windowTopLeft=-500, int windowBottomRight=1001, int border=0)
 Constructor.
void setMultiColumns (bool multiple)
 Sets the mode of presentation to single or multiple columns.
void setClusterVerticalLines (bool lines)
 Displays or hides vertical lines to show the clusters.
void setClusterRaster (bool raster)
 Displays or hides a raster to show the clusters.
void setClusterWaveforms (bool waveforms)
 Displays or hides the cluster waveforms on top of the traces.
void setGreyScale (bool grey)
 All the channels of the display are now display either in a gradation of grey or in color.
void displayTimeFrame (long start, long timeFrameWidth)
 Updates the traces to show between start and start + timeFrameWidth.
void showChannels (const QValueList< int > &channelsToShow)
 Updates the list of channels shown with channelsToShow.
void increaseAllAmplitude ()
 Increases of the amplitude of all the channels.
void decreaseAllAmplitude ()
 Decreases of the amplitude of all the channels.
void increaseSelectedChannelsAmplitude (const QValueList< int > &channelIds)
 Increases of the amplitude of the selected channels.
void decreaseSelectedChannelsAmplitude (const QValueList< int > &channelIds)
 Decreases of the amplitude of the selected channels.
void setGains (int gain, int acquisitionGain)
 Sets the unit gain and the acquisition system gain.
void channelColorUpdate (int channelId, bool active)
 Changes the color of a channel.
void groupColorUpdate (int groupId, bool active)
 Changes the color of a group of channels.
void updateDrawing ()
 Update the information presented in the view.
void groupsModified (bool active)
 Updates of the display due to a change in the display groups if active is true, otherwise simply updates the internal variables.
void setMode (BaseFrame::Mode selectedMode, bool active)
 Change the current mode, call by a selection of a tool.
void selectChannels (const QValueList< int > &selectedIds)
 Selects the channels .
void resetOffsets (const QMap< int, int > &selectedChannelDefaultOffsets)
 Resets the offset of the selected channels to the default values.
void resetGains (const QValueList< int > &selectedChannels)
 Resets the gain of the selected channels.
void reset ()
 Resets the state of the view.
void showHideLabels (bool show)
 Shows or hide the labels next to the channels displaying the channel id and the gain.
void showCalibration (bool show, bool active)
 Shows or hide the calibration scale.
void addClusterProvider (ClustersProvider *clustersProvider, QString name, ItemColors *clusterColors, bool active, QValueList< int > &clustersToShow, QMap< int, QValueList< int > > *displayGroupsClusterFile, QMap< int, int > *channelsSpikeGroups, int nbSamplesBefore, int nbSamplesAfter, const QValueList< int > &clustersToSkip)
 Adds a new provider of cluster data.
void removeClusterProvider (QString name, bool active)
 Removes a provider of cluster data.
void showClusters (QString name, QValueList< int > &clustersToShow)
 Updates the list of clusters shown with clustersToShow for the cluster provider identified by name.
void clusterColorUpdate (QString name, int clusterId, bool active)
 Changes the color of a cluster.
void addEventProvider (EventsProvider *eventsProvider, QString name, ItemColors *eventColors, bool active, QValueList< int > &eventsToShow, const QValueList< int > &eventsToSkip)
 Adds a new provider of event data.
void removeEventProvider (QString name, bool active)
 Removes a provider of event data.
void showEvents (QString name, QValueList< int > &eventsToShow)
 Updates the list of events shown with eventsToShow for the event provider identified by name.
void eventColorUpdate (QString name, int eventId, bool active)
 Changes the color of an event.
void print (QPainter &printPainter, QPaintDeviceMetrics &metrics, bool whiteBackground)
 Prints the currently display information on a printer via the painter printPainter.
void showNextEvent ()
 Retrieves the next event.
void showPreviousEvent ()
 Retrieves the previous event.
void updateEvents (QString providerName, bool active)
 Updates the event data provided by providerName due to a modification of an event.
void updateEvents (QString providerName, QValueList< int > &eventsToShow, bool active)
 Updates the event data provided by providerName due to the addition of an event.
void removeEvent ()
 Deletes the selected event.
void showNextCluster ()
 Retrieves the next cluster.
void showPreviousCluster ()
 Retrieves the previous cluster.
void updateNoneBrowsingEventList (QString providerName, const QValueList< int > &eventsToNotBrowse)
 Updates the list of events to not use while browsing.
void updateNoneBrowsingClusterList (QString providerName, const QValueList< int > &clustersToNotBrowse)
 Updates the list of clusters to not use while browsing.
void updateWaveformInformation (int nbSamplesBefore, int nbSamplesAfter, bool active)
 Updates the description of a spike waveform.
void samplingRateModified (long long length)
 Updates the length of the document due to a modification of the sampling rate.
void updateClusterData (bool active)
 Updates the cluster information presented on the display.
void updateClusters (QString name, QValueList< int > &clustersToShow, ItemColors *clusterColors, bool active)
 Updates the display due to modification of clusters provided by the cluster provider identified by name.
void increaseRatio ()
 Increases the display ratio between the traces and the rasters when they are present.
void decreaseRatio ()
 Decreases the display ratio between the traces and the rasters when they are present.
void getCurrentEventInformation (long startTime, long endTime, QObject *initiator)
 Gets the event information for all the available eventProviders.
void traceBackgroundImageUpdate (QImage traceBackgroundImage, bool active)
 Updates the background image.
 TraceView (TracesProvider &tracesProvider, bool greyScale, bool multiColumns, bool verticalLines, bool raster, bool waveforms, bool labelsDisplay, QValueList< int > &channelsToDisplay, int unitGain, int acquisitionGain, long start, long timeFrameWidth, ChannelColors *channelColors, QMap< int, QValueList< int > > *groupsChannels, QMap< int, int > *channelsGroups, QValueList< int > &channelOffsets, QValueList< int > &gains, const QValueList< int > &skippedChannels, int rasterHeight, QImage backgroundImage, QWidget *parent=0, const char *name=0, QColor backgroundColor=Qt::black, KStatusBar *statusBar=0L, int minSize=500, int maxSize=4000, int windowTopLeft=-500, int windowBottomRight=1001, int border=0)
 Constructor.
void setMultiColumns (bool multiple)
 Sets the mode of presentation to single or multiple columns.
void setClusterVerticalLines (bool lines)
 Displays or hides vertical lines to show the clusters.
void setClusterRaster (bool raster)
 Displays or hides a raster to show the clusters.
void setClusterWaveforms (bool waveforms)
 Displays or hides the cluster waveforms on top of the traces.
void setGreyScale (bool grey)
 All the channels of the display are now display either in a gradation of grey or in color.
void displayTimeFrame (long start, long timeFrameWidth)
 Updates the traces to show between start and start + timeFrameWidth.
void showChannels (const QValueList< int > &channelsToShow)
 Updates the list of channels shown with channelsToShow.
void increaseAllAmplitude ()
 Increases of the amplitude of all the channels.
void decreaseAllAmplitude ()
 Decreases of the amplitude of all the channels.
void increaseSelectedChannelsAmplitude (const QValueList< int > &channelIds)
 Increases of the amplitude of the selected channels.
void decreaseSelectedChannelsAmplitude (const QValueList< int > &channelIds)
 Decreases of the amplitude of the selected channels.
void setGains (int gain, int acquisitionGain)
 Sets the unit gain and the acquisition system gain.
void channelColorUpdate (int channelId, bool active)
 Changes the color of a channel.
void groupColorUpdate (int groupId, bool active)
 Changes the color of a group of channels.
void updateDrawing ()
 Update the information presented in the view.
void groupsModified (bool active)
 Updates of the display due to a change in the display groups if active is true, otherwise simply updates the internal variables.
void setMode (BaseFrame::Mode selectedMode, bool active)
 Change the current mode, call by a selection of a tool.
void selectChannels (const QValueList< int > &selectedIds)
 Selects the channels .
void resetOffsets (const QMap< int, int > &selectedChannelDefaultOffsets)
 Resets the offset of the selected channels to the default values.
void resetGains (const QValueList< int > &selectedChannels)
 Resets the gain of the selected channels.
void reset ()
 Resets the state of the view.
void showHideLabels (bool show)
 Shows or hide the labels next to the channels displaying the channel id and the gain.
void showCalibration (bool show, bool active)
 Shows or hide the calibration scale.
void addClusterProvider (ClustersProvider *clustersProvider, QString name, ItemColors *clusterColors, bool active, QValueList< int > &clustersToShow, QMap< int, QValueList< int > > *displayGroupsClusterFile, QMap< int, int > *channelsSpikeGroups, int nbSamplesBefore, int nbSamplesAfter, const QValueList< int > &clustersToSkip)
 Adds a new provider of cluster data.
void removeClusterProvider (QString name, bool active)
 Removes a provider of cluster data.
void showClusters (QString name, QValueList< int > &clustersToShow)
 Updates the list of clusters shown with clustersToShow for the cluster provider identified by name.
void clusterColorUpdate (QString name, int clusterId, bool active)
 Changes the color of a cluster.
void addEventProvider (EventsProvider *eventsProvider, QString name, ItemColors *eventColors, bool active, QValueList< int > &eventsToShow, const QValueList< int > &eventsToSkip)
 Adds a new provider of event data.
void removeEventProvider (QString name, bool active)
 Removes a provider of event data.
void showEvents (QString name, QValueList< int > &eventsToShow)
 Updates the list of events shown with eventsToShow for the event provider identified by name.
void eventColorUpdate (QString name, int eventId, bool active)
 Changes the color of an event.
void print (QPainter &printPainter, QPaintDeviceMetrics &metrics, bool whiteBackground)
 Prints the currently display information on a printer via the painter printPainter.
void showNextEvent ()
 Retrieves the next event.
void showPreviousEvent ()
 Retrieves the previous event.
void updateEvents (QString providerName, bool active)
 Updates the event data provided by providerName due to a modification of an event.
void updateEvents (QString providerName, QValueList< int > &eventsToShow, bool active)
 Updates the event data provided by providerName due to the addition of an event.
void removeEvent ()
 Deletes the selected event.
void showNextCluster ()
 Retrieves the next cluster.
void showPreviousCluster ()
 Retrieves the previous cluster.
void updateNoneBrowsingEventList (QString providerName, const QValueList< int > &eventsToNotBrowse)
 Updates the list of events to not use while browsing.
void updateNoneBrowsingClusterList (QString providerName, const QValueList< int > &clustersToNotBrowse)
 Updates the list of clusters to not use while browsing.
void updateWaveformInformation (int nbSamplesBefore, int nbSamplesAfter, bool active)
 Updates the description of a spike waveform.
void samplingRateModified (long long length)
 Updates the length of the document due to a modification of the sampling rate.
void updateClusterData (bool active)
 Updates the cluster information presented on the display.
void updateClusters (QString name, QValueList< int > &clustersToShow, ItemColors *clusterColors, bool active)
 Updates the display due to modification of clusters provided by the cluster provider identified by name.
void increaseRatio ()
 Increases the display ratio between the traces and the rasters when they are present.
void decreaseRatio ()
 Decreases the display ratio between the traces and the rasters when they are present.
void getCurrentEventInformation (long startTime, long endTime, QObject *initiator)
 Gets the event information for all the available eventProviders.
void traceBackgroundImageUpdate (QImage traceBackgroundImage, bool active)
 Updates the background image.

Protected Member Functions

void drawContents (QPainter *painter)
 Draws the contents of the frame.
void mouseMoveEvent (QMouseEvent *event)
 The view responds to a mouse move event.
void resizeEvent (QResizeEvent *event)
 The view responds to a resize event.
void mousePressEvent (QMouseEvent *event)
 The view responds to a mouse click.
void mouseReleaseEvent (QMouseEvent *event)
 The view responds to a mouse release.
void mouseDoubleClickEvent (QMouseEvent *event)
 The view responds to a double click.
void drawContents (QPainter *painter)
 Draws the contents of the frame.
void mouseMoveEvent (QMouseEvent *event)
 The view responds to a mouse move event.
void resizeEvent (QResizeEvent *event)
 The view responds to a resize event.
void mousePressEvent (QMouseEvent *event)
 The view responds to a mouse click.
void mouseReleaseEvent (QMouseEvent *event)
 The view responds to a mouse release.
void mouseDoubleClickEvent (QMouseEvent *event)
 The view responds to a double click.

Classes

struct  ClusterData
 Structure representing cluster data, actual data and status.

Detailed Description

Class which draws the traces, cluster and event representations.

Author:
Lynn Hazan


Member Enumeration Documentation

anonymous enum

Enum to be use as a Mode.

anonymous enum

Enum to be use as a Mode.


Constructor & Destructor Documentation

TraceView::TraceView ( TracesProvider tracesProvider,
bool  greyScale,
bool  multiColumns,
bool  verticalLines,
bool  raster,
bool  waveforms,
bool  labelsDisplay,
QValueList< int > &  channelsToDisplay,
int  unitGain,
int  acquisitionGain,
long  start,
long  timeFrameWidth,
ChannelColors channelColors,
QMap< int, QValueList< int > > *  groupsChannels,
QMap< int, int > *  channelsGroups,
QValueList< int > &  channelOffsets,
QValueList< int > &  gains,
const QValueList< int > &  skippedChannels,
int  rasterHeight,
QImage  backgroundImage,
QWidget *  parent = 0,
const char *  name = 0,
QColor  backgroundColor = Qt::black,
KStatusBar *  statusBar = 0L,
int  minSize = 500,
int  maxSize = 4000,
int  windowTopLeft = -500,
int  windowBottomRight = 1001,
int  border = 0 
)

Constructor.

Parameters:
tracesProvider a reference on the provider of the channels data.
greyScale true if all the channels are display either in a gradation of grey false if they are display in color.
multiColumns true if the traces are displayed on multiple columns, false otherwise.
verticalLines true if vertical lines are displayed to show the clusters, false otherwise.
raster true if a raster is drawn to show the clusters, false otherwise
waveforms true if waveforms are drawn on top of the traces, false otherwise.
labelsDisplay true if labels are drawn next to the traces, false otherwise.
channelsToDisplay a reference on the list of channel to be shown at the opening of the view.
unitGain initial gain use to draw the traces.
acquisitionGain acquisition gain.
start starting time in miliseconds.
timeFrameWidth time window in miliseconds.
channelColors a pointer on the list of colors for the channels.
groupsChannels a pointer on the map given the list of channels for each group.
channelsGroups a pointer on the map given to which group each channel belongs.
channelOffsets a reference on the list containing the offset for each channel.
gains a reference on the list of the exponents used to compute the drawing gain for each channel.
skippedChannels list of skipped channels.
rasterHeight height of the rasters in the world coordinate system.
backgroundImage image used as background.
parent the parent QWidget.
name name of the widget (can be used for introspection).
backgroundColor color used as background.
statusBar a reference to the application status bar.
minSize minumum size of the view.
maxSize maximum size of the view.
windowTopLeft the top-left corner of the window (QRect corresponding to the part of the drawing which will actually be drawn onto the widget).
windowBottomRight bottom-right corner of the window (QRect corresponding to the part of the drawing which will actually be drawn onto the widget).
border size of the border between the frame and the contents.

TraceView::TraceView ( TracesProvider tracesProvider,
bool  greyScale,
bool  multiColumns,
bool  verticalLines,
bool  raster,
bool  waveforms,
bool  labelsDisplay,
QValueList< int > &  channelsToDisplay,
int  unitGain,
int  acquisitionGain,
long  start,
long  timeFrameWidth,
ChannelColors channelColors,
QMap< int, QValueList< int > > *  groupsChannels,
QMap< int, int > *  channelsGroups,
QValueList< int > &  channelOffsets,
QValueList< int > &  gains,
const QValueList< int > &  skippedChannels,
int  rasterHeight,
QImage  backgroundImage,
QWidget *  parent = 0,
const char *  name = 0,
QColor  backgroundColor = Qt::black,
KStatusBar *  statusBar = 0L,
int  minSize = 500,
int  maxSize = 4000,
int  windowTopLeft = -500,
int  windowBottomRight = 1001,
int  border = 0 
)

Constructor.

Parameters:
tracesProvider a reference on the provider of the channels data.
greyScale true if all the channels are display either in a gradation of grey false if they are display in color.
multiColumns true if the traces are displayed on multiple columns, false otherwise.
verticalLines true if vertical lines are displayed to show the clusters, false otherwise.
raster true if a raster is drawn to show the clusters, false otherwise
waveforms true if waveforms are drawn on top of the traces, false otherwise.
labelsDisplay true if labels are drawn next to the traces, false otherwise.
channelsToDisplay a reference on the list of channel to be shown at the opening of the view.
unitGain initial gain use to draw the traces.
acquisitionGain acquisition gain.
start starting time in miliseconds.
timeFrameWidth time window in miliseconds.
channelColors a pointer on the list of colors for the channels.
groupsChannels a pointer on the map given the list of channels for each group.
channelsGroups a pointer on the map given to which group each channel belongs.
channelOffsets a reference on the list containing the offset for each channel.
gains a reference on the list of the exponents used to compute the drawing gain for each channel.
skippedChannels list of skipped channels.
rasterHeight height of the rasters in the world coordinate system.
backgroundImage image used as background.
parent the parent QWidget.
name name of the widget (can be used for introspection).
backgroundColor color used as background.
statusBar a reference to the application status bar.
minSize minumum size of the view.
maxSize maximum size of the view.
windowTopLeft the top-left corner of the window (QRect corresponding to the part of the drawing which will actually be drawn onto the widget).
windowBottomRight bottom-right corner of the window (QRect corresponding to the part of the drawing which will actually be drawn onto the widget).
border size of the border between the frame and the contents.


Member Function Documentation

void TraceView::setMultiColumns ( bool  multiple  ) 

Sets the mode of presentation to single or multiple columns.

Parameters:
multiple true if the traces are presented on multiple columns, false if they are presented on a single column.

void TraceView::setClusterVerticalLines ( bool  lines  ) 

Displays or hides vertical lines to show the clusters.

Parameters:
lines true if the vertical lines are drawn for each cluster, false otherwise.

void TraceView::setClusterRaster ( bool  raster  ) 

Displays or hides a raster to show the clusters.

Parameters:
raster true if a raster is drawn, false otherwise.

void TraceView::setClusterWaveforms ( bool  waveforms  ) 

Displays or hides the cluster waveforms on top of the traces.

Parameters:
waveforms true if the waveforms are drawn, false otherwise.

void TraceView::setGreyScale ( bool  grey  ) 

All the channels of the display are now display either in a gradation of grey or in color.

Parameters:
grey true if the channels have to be displayed in grey false otherwise.

void TraceView::displayTimeFrame ( long  start,
long  timeFrameWidth 
)

Updates the traces to show between start and start + timeFrameWidth.

Parameters:
start starting time in miliseconds.
timeFrameWidth time window in miliseconds.

void TraceView::showChannels ( const QValueList< int > &  channelsToShow  ) 

Updates the list of channels shown with channelsToShow.

Parameters:
channelsToShow new list of channels to be shown.

void TraceView::increaseSelectedChannelsAmplitude ( const QValueList< int > &  channelIds  ) 

Increases of the amplitude of the selected channels.

Parameters:
channelIds ids of the channels for which the amplitude has to be increased.

void TraceView::decreaseSelectedChannelsAmplitude ( const QValueList< int > &  channelIds  ) 

Decreases of the amplitude of the selected channels.

Parameters:
channelIds ids of the channels for which the amplitude has to be decreased.

void TraceView::setGains ( int  gain,
int  acquisitionGain 
)

Sets the unit gain and the acquisition system gain.

Parameters:
gain initial gain use to draw the traces in the TraceView.
acquisitionGain acquisition gain.

void TraceView::channelColorUpdate ( int  channelId,
bool  active 
)

Changes the color of a channel.

Parameters:
channelId id of the channel to redraw.
active true if the view is the active one, false otherwise.

void TraceView::groupColorUpdate ( int  groupId,
bool  active 
) [inline]

Changes the color of a group of channels.

Parameters:
groupId id of the group for which the color have been changed.
active true if the view is the active one, false otherwise.

void TraceView::groupsModified ( bool  active  ) 

Updates of the display due to a change in the display groups if active is true, otherwise simply updates the internal variables.

Parameters:
active true if the view is the active one, false otherwise.

void TraceView::setMode ( BaseFrame::Mode  selectedMode,
bool  active 
) [inline]

Change the current mode, call by a selection of a tool.

Parameters:
selectedMode new mode of drawing.
active true if the view is the active one, false otherwise.

void TraceView::selectChannels ( const QValueList< int > &  selectedIds  ) 

Selects the channels .

Parameters:
selectedIds ids of the selected channels.

void TraceView::resetOffsets ( const QMap< int, int > &  selectedChannelDefaultOffsets  ) 

Resets the offset of the selected channels to the default values.

Parameters:
selectedChannelDefaultOffsets map given the default offsets for the selected channels.

void TraceView::resetGains ( const QValueList< int > &  selectedChannels  ) 

Resets the gain of the selected channels.

Parameters:
selectedChannels ids of the selected channels.

void TraceView::showHideLabels ( bool  show  ) 

Shows or hide the labels next to the channels displaying the channel id and the gain.

Parameters:
show true if the labels have to be shown, false otherwise.

void TraceView::showCalibration ( bool  show,
bool  active 
) [inline]

Shows or hide the calibration scale.

Parameters:
show true if the scale has to be shown, false otherwise.
active true if the view is the active one, false otherwise.

void TraceView::addClusterProvider ( ClustersProvider clustersProvider,
QString  name,
ItemColors clusterColors,
bool  active,
QValueList< int > &  clustersToShow,
QMap< int, QValueList< int > > *  displayGroupsClusterFile,
QMap< int, int > *  channelsSpikeGroups,
int  nbSamplesBefore,
int  nbSamplesAfter,
const QValueList< int > &  clustersToSkip 
)

Adds a new provider of cluster data.

Parameters:
clustersProvider provider of cluster data.
name name use to identified the cluster provider.
clusterColors list of colors for the clusters.
active true if the view is the active one, false otherwise.
clustersToShow list of clusters to be shown.
displayGroupsClusterFile map between the anatomatical groups and the cluster files.
channelsSpikeGroups map between the channel ids and the spike group ids.
nbSamplesBefore number of samples contained in the waveform of a spike before the sample of the peak.
nbSamplesAfter number of samples contained in the waveform of a spike after the sample of the peak.
clustersToSkip list of clusters to not use while browsing.

void TraceView::removeClusterProvider ( QString  name,
bool  active 
)

Removes a provider of cluster data.

Parameters:
name name use to identified the cluster provider.
active true if the view is the active one, false otherwise.

void TraceView::showClusters ( QString  name,
QValueList< int > &  clustersToShow 
)

Updates the list of clusters shown with clustersToShow for the cluster provider identified by name.

Parameters:
name name use to identified the cluster provider containing the clusters to show.
clustersToShow new list of clusters to be shown.

void TraceView::clusterColorUpdate ( QString  name,
int  clusterId,
bool  active 
)

Changes the color of a cluster.

Parameters:
name name use to identified the cluster provider containing the updated cluster.
clusterId id of the cluster to redraw.
active true if the view is the active one, false otherwise.

void TraceView::addEventProvider ( EventsProvider *  eventsProvider,
QString  name,
ItemColors eventColors,
bool  active,
QValueList< int > &  eventsToShow,
const QValueList< int > &  eventsToSkip 
)

Adds a new provider of event data.

Parameters:
eventsProvider provider of event data.
name name use to identified the event provider.
eventColors list of colors for the events.
active true if the view is the active one, false otherwise.
eventsToShow list of events to be shown.
eventsToSkip list of events to not use while browsing.

void TraceView::removeEventProvider ( QString  name,
bool  active 
)

Removes a provider of event data.

Parameters:
name name use to identified the event provider.
active true if the view is the active one, false otherwise.

void TraceView::showEvents ( QString  name,
QValueList< int > &  eventsToShow 
)

Updates the list of events shown with eventsToShow for the event provider identified by name.

Parameters:
name name use to identified the event provider containing the events to show.
eventsToShow new list of events to be shown.

void TraceView::eventColorUpdate ( QString  name,
int  eventId,
bool  active 
)

Changes the color of an event.

Parameters:
name name use to identified the event provider containing the updated event.
eventId id of the event to redraw.
active true if the view is the active one, false otherwise.

void TraceView::print ( QPainter &  printPainter,
QPaintDeviceMetrics &  metrics,
bool  whiteBackground 
)

Prints the currently display information on a printer via the painter printPainter.

Does not print zoomed display.

Parameters:
printPainter painter on a printer.
metrics object providing informatin about the printer.
whiteBackground true if the printed background has to be white, false otherwise.

void TraceView::updateEvents ( QString  providerName,
bool  active 
) [inline]

Updates the event data provided by providerName due to a modification of an event.

Parameters:
providerName name use to identified the event provider containing the modified event.
active true if the view is the active one, false otherwise.

void TraceView::updateEvents ( QString  providerName,
QValueList< int > &  eventsToShow,
bool  active 
)

Updates the event data provided by providerName due to the addition of an event.

Parameters:
providerName name use to identified the event provider containing the modified event.
eventsToShow new list of events to be shown.
active true if the view is the active one, false otherwise.

void TraceView::updateNoneBrowsingEventList ( QString  providerName,
const QValueList< int > &  eventsToNotBrowse 
)

Updates the list of events to not use while browsing.

Parameters:
providerName name use to identified the event provider containing the modified event.
eventsToNotBrowse new list of events to not use while browsing.

void TraceView::updateNoneBrowsingClusterList ( QString  providerName,
const QValueList< int > &  clustersToNotBrowse 
)

Updates the list of clusters to not use while browsing.

Parameters:
providerName name use to identified the event provider containing the modified event.
clustersToNotBrowse new list of clusters to not use while browsing.

void TraceView::updateWaveformInformation ( int  nbSamplesBefore,
int  nbSamplesAfter,
bool  active 
)

Updates the description of a spike waveform.

Parameters:
nbSamplesBefore number of samples contained in the waveform of a spike before the sample of the peak.
nbSamplesAfter number of samples contained in the waveform of a spike after the sample of the peak.
active true if the view is the active one, false otherwise.

void TraceView::samplingRateModified ( long long  length  )  [inline]

Updates the length of the document due to a modification of the sampling rate.

Parameters:
length the newly computed length of the document.

void TraceView::updateClusterData ( bool  active  ) 

Updates the cluster information presented on the display.

Parameters:
active true if the view is the active one, false otherwise.

void TraceView::updateClusters ( QString  name,
QValueList< int > &  clustersToShow,
ItemColors clusterColors,
bool  active 
)

Updates the display due to modification of clusters provided by the cluster provider identified by name.

Parameters:
name name use to identified the cluster provider containing the clusters to show.
clustersToShow new list of clusters to be shown.
clusterColors list of colors for the clusters.
active true if the view is the active one, false otherwise.

void TraceView::getCurrentEventInformation ( long  startTime,
long  endTime,
QObject *  initiator 
)

Gets the event information for all the available eventProviders.

Parameters:
startTime begining of the time interval from which to retrieve the data in miliseconds.
endTime end of the time interval from which to retrieve the data.
initiator instance requesting the data.

void TraceView::traceBackgroundImageUpdate ( QImage  traceBackgroundImage,
bool  active 
)

Updates the background image.

Parameters:
traceBackgroundImage image to be used as background.
active true if the view is the active one, false otherwise.

void TraceView::dataAvailable ( Array< dataType > &  data,
QObject *  initiator 
) [slot]

Displays the data that has been retrieved.

Parameters:
data array of data (number of channels X number of samples).
initiator instance requesting the data.

void TraceView::dataAvailable ( Array< dataType > &  data,
QObject *  initiator,
QString  providerName 
) [slot]

Displays the cluster information that has been retrieved.

Parameters:
data 2 line array containing the sample index of the peak index of each spike existing in the requested time frame with the corresponding cluster id. The first line contains the sample index and the second line the cluster id.
initiator instance requesting the data.
providerName name of the instance providing the data.

void TraceView::dataAvailable ( Array< dataType > &  times,
Array< int > &  ids,
QObject *  initiator,
QString  providerName 
) [slot]

Displays the event information that has been retrieved.

Parameters:
times 1 line array containing the time (in recording samples) of each event existing in the requested time frame.
ids 1 line array containing the identifiers of each event existing in the requested time frame.
initiator instance requesting the data.
providerName name of the instance providing the data.

void TraceView::nextClusterDataAvailable ( Array< dataType > &  data,
QObject *  initiator,
QString  providerName,
long  startingTime,
long  startingTimeInRecordingUnits 
) [slot]

Compute the cluster information that has been retrieved regarding the next cluster to display.

Parameters:
data 2 line array containing the sample index of the peak index of each spike existing in the requested time frame with the corresponding cluster id. The first line contains the sample index and the second line the cluster id.
initiator instance requesting the data.
providerName name of the instance providing the data.
startingTime time from which the data have been retreived in milisesonds.
startingTimeInRecordingUnits time from which the data have been retrieved in recording units.

void TraceView::previousClusterDataAvailable ( Array< dataType > &  data,
QObject *  initiator,
QString  providerName,
long  startingTime,
long  startingTimeInRecordingUnits 
) [slot]

Compute the cluster information that has been retrieved regarding the previous cluster to display.

Parameters:
data 2 line array containing the sample index of the peak index of each spike existing in the requested time frame with the corresponding cluster id. The first line contains the sample index and the second line the cluster id.
initiator instance requesting the data.
providerName name of the instance providing the data.
startingTime time from which the data have been retreived in milisesonds.
startingTimeInRecordingUnits time from which the data have been retrieved in recording units.

void TraceView::nextEventDataAvailable ( Array< dataType > &  times,
Array< int > &  ids,
QObject *  initiator,
QString  providerName,
long  startingTime 
) [slot]

Compute the event information that has been retrieved regarding the next event to display.

Parameters:
times 1 line array containing the time (in recording samples) of each event existing in the requested time frame.
ids 1 line array containing the identifiers of each event existing in the requested time frame.
initiator instance requesting the data.
providerName name of the instance providing the data.
startingTime time from which the data have been retreived.

void TraceView::previousEventDataAvailable ( Array< dataType > &  times,
Array< int > &  ids,
QObject *  initiator,
QString  providerName,
long  startingTime 
) [slot]

Compute the event information that has been retrieved regarding the previous event to display.

Parameters:
times 1 line array containing the time (in recording samples) of each event existing in the requested time frame.
ids 1 line array containing the identifiers of each event existing in the requested time frame.
initiator instance requesting the data.
providerName name of the instance providing the data.
startingTime time from which the data have been retreived.

void TraceView::eventToAddProperties ( QString  providerName,
QString  eventDescription 
) [inline, slot]

Stores the properties for the next event to be added.

Parameters:
providerName name use to identified the event provider which will contain the added event.
eventDescription description of the next event to be created.

void TraceView::skipStatusChanged ( const QValueList< int > &  skippedChannels  )  [slot]

Updates the list of skipped channels.

Parameters:
skippedChannels list of skipped channels

int TraceView::getRasterHeight (  )  [inline, slot]

Returns the height of the rasters in the world coordinate system.

Returns:
raster height.

void TraceView::drawContents ( QPainter *  painter  )  [protected, virtual]

Draws the contents of the frame.

Parameters:
painter painter used to draw the contents

Implements BaseFrame.

void TraceView::mouseMoveEvent ( QMouseEvent *  event  )  [protected, virtual]

The view responds to a mouse move event.

The time is display in the status bar.

Parameters:
event mouse move event.

Reimplemented from BaseFrame.

void TraceView::resizeEvent ( QResizeEvent *  event  )  [inline, protected, virtual]

The view responds to a resize event.

The window is recomputed.

Parameters:
event resize event.

Reimplemented from BaseFrame.

void TraceView::mousePressEvent ( QMouseEvent *  event  )  [protected, virtual]

The view responds to a mouse click.

Parameters:
event mouse release event.

(mode == SELECT_EVENT && x >= (X0 + groupIndex * Xshift))

Reimplemented from BaseFrame.

void TraceView::mouseReleaseEvent ( QMouseEvent *  event  )  [protected, virtual]

The view responds to a mouse release.

Parameters:
event mouse event.

Reimplemented from BaseFrame.

void TraceView::mouseDoubleClickEvent ( QMouseEvent *  event  )  [protected, virtual]

The view responds to a double click.

Parameters:
event mouse event.

Reimplemented from BaseFrame.

void TraceView::setMultiColumns ( bool  multiple  ) 

Sets the mode of presentation to single or multiple columns.

Parameters:
multiple true if the traces are presented on multiple columns, false if they are presented on a single column.

void TraceView::setClusterVerticalLines ( bool  lines  ) 

Displays or hides vertical lines to show the clusters.

Parameters:
lines true if the vertical lines are drawn for each cluster, false otherwise.

void TraceView::setClusterRaster ( bool  raster  ) 

Displays or hides a raster to show the clusters.

Parameters:
raster true if a raster is drawn, false otherwise.

void TraceView::setClusterWaveforms ( bool  waveforms  ) 

Displays or hides the cluster waveforms on top of the traces.

Parameters:
waveforms true if the waveforms are drawn, false otherwise.

void TraceView::setGreyScale ( bool  grey  ) 

All the channels of the display are now display either in a gradation of grey or in color.

Parameters:
grey true if the channels have to be displayed in grey false otherwise.

void TraceView::displayTimeFrame ( long  start,
long  timeFrameWidth 
)

Updates the traces to show between start and start + timeFrameWidth.

Parameters:
start starting time in miliseconds.
timeFrameWidth time window in miliseconds.

void TraceView::showChannels ( const QValueList< int > &  channelsToShow  ) 

Updates the list of channels shown with channelsToShow.

Parameters:
channelsToShow new list of channels to be shown.

void TraceView::increaseSelectedChannelsAmplitude ( const QValueList< int > &  channelIds  ) 

Increases of the amplitude of the selected channels.

Parameters:
channelIds ids of the channels for which the amplitude has to be increased.

void TraceView::decreaseSelectedChannelsAmplitude ( const QValueList< int > &  channelIds  ) 

Decreases of the amplitude of the selected channels.

Parameters:
channelIds ids of the channels for which the amplitude has to be decreased.

void TraceView::setGains ( int  gain,
int  acquisitionGain 
)

Sets the unit gain and the acquisition system gain.

Parameters:
gain initial gain use to draw the traces in the TraceView.
acquisitionGain acquisition gain.

void TraceView::channelColorUpdate ( int  channelId,
bool  active 
)

Changes the color of a channel.

Parameters:
channelId id of the channel to redraw.
active true if the view is the active one, false otherwise.

void TraceView::groupColorUpdate ( int  groupId,
bool  active 
) [inline]

Changes the color of a group of channels.

Parameters:
groupId id of the group for which the color have been changed.
active true if the view is the active one, false otherwise.

void TraceView::groupsModified ( bool  active  ) 

Updates of the display due to a change in the display groups if active is true, otherwise simply updates the internal variables.

Parameters:
active true if the view is the active one, false otherwise.

void TraceView::setMode ( BaseFrame::Mode  selectedMode,
bool  active 
) [inline]

Change the current mode, call by a selection of a tool.

Parameters:
selectedMode new mode of drawing.
active true if the view is the active one, false otherwise.

void TraceView::selectChannels ( const QValueList< int > &  selectedIds  ) 

Selects the channels .

Parameters:
selectedIds ids of the selected channels.

void TraceView::resetOffsets ( const QMap< int, int > &  selectedChannelDefaultOffsets  ) 

Resets the offset of the selected channels to the default values.

Parameters:
selectedChannelDefaultOffsets map given the default offsets for the selected channels.

void TraceView::resetGains ( const QValueList< int > &  selectedChannels  ) 

Resets the gain of the selected channels.

Parameters:
selectedChannels ids of the selected channels.

void TraceView::showHideLabels ( bool  show  ) 

Shows or hide the labels next to the channels displaying the channel id and the gain.

Parameters:
show true if the labels have to be shown, false otherwise.

void TraceView::showCalibration ( bool  show,
bool  active 
) [inline]

Shows or hide the calibration scale.

Parameters:
show true if the scale has to be shown, false otherwise.
active true if the view is the active one, false otherwise.

void TraceView::addClusterProvider ( ClustersProvider clustersProvider,
QString  name,
ItemColors clusterColors,
bool  active,
QValueList< int > &  clustersToShow,
QMap< int, QValueList< int > > *  displayGroupsClusterFile,
QMap< int, int > *  channelsSpikeGroups,
int  nbSamplesBefore,
int  nbSamplesAfter,
const QValueList< int > &  clustersToSkip 
)

Adds a new provider of cluster data.

Parameters:
clustersProvider provider of cluster data.
name name use to identified the cluster provider.
clusterColors list of colors for the clusters.
active true if the view is the active one, false otherwise.
clustersToShow list of clusters to be shown.
displayGroupsClusterFile map between the anatomatical groups and the cluster files.
channelsSpikeGroups map between the channel ids and the spike group ids.
nbSamplesBefore number of samples contained in the waveform of a spike before the sample of the peak.
nbSamplesAfter number of samples contained in the waveform of a spike after the sample of the peak.
clustersToSkip list of clusters to not use while browsing.

void TraceView::removeClusterProvider ( QString  name,
bool  active 
)

Removes a provider of cluster data.

Parameters:
name name use to identified the cluster provider.
active true if the view is the active one, false otherwise.

void TraceView::showClusters ( QString  name,
QValueList< int > &  clustersToShow 
)

Updates the list of clusters shown with clustersToShow for the cluster provider identified by name.

Parameters:
name name use to identified the cluster provider containing the clusters to show.
clustersToShow new list of clusters to be shown.

void TraceView::clusterColorUpdate ( QString  name,
int  clusterId,
bool  active 
)

Changes the color of a cluster.

Parameters:
name name use to identified the cluster provider containing the updated cluster.
clusterId id of the cluster to redraw.
active true if the view is the active one, false otherwise.

void TraceView::addEventProvider ( EventsProvider *  eventsProvider,
QString  name,
ItemColors eventColors,
bool  active,
QValueList< int > &  eventsToShow,
const QValueList< int > &  eventsToSkip 
)

Adds a new provider of event data.

Parameters:
eventsProvider provider of event data.
name name use to identified the event provider.
eventColors list of colors for the events.
active true if the view is the active one, false otherwise.
eventsToShow list of events to be shown.
eventsToSkip list of events to not use while browsing.

void TraceView::removeEventProvider ( QString  name,
bool  active 
)

Removes a provider of event data.

Parameters:
name name use to identified the event provider.
active true if the view is the active one, false otherwise.

void TraceView::showEvents ( QString  name,
QValueList< int > &  eventsToShow 
)

Updates the list of events shown with eventsToShow for the event provider identified by name.

Parameters:
name name use to identified the event provider containing the events to show.
eventsToShow new list of events to be shown.

void TraceView::eventColorUpdate ( QString  name,
int  eventId,
bool  active 
)

Changes the color of an event.

Parameters:
name name use to identified the event provider containing the updated event.
eventId id of the event to redraw.
active true if the view is the active one, false otherwise.

void TraceView::print ( QPainter &  printPainter,
QPaintDeviceMetrics &  metrics,
bool  whiteBackground 
)

Prints the currently display information on a printer via the painter printPainter.

Does not print zoomed display.

Parameters:
printPainter painter on a printer.
metrics object providing informatin about the printer.
whiteBackground true if the printed background has to be white, false otherwise.

void TraceView::updateEvents ( QString  providerName,
bool  active 
) [inline]

Updates the event data provided by providerName due to a modification of an event.

Parameters:
providerName name use to identified the event provider containing the modified event.
active true if the view is the active one, false otherwise.

void TraceView::updateEvents ( QString  providerName,
QValueList< int > &  eventsToShow,
bool  active 
)

Updates the event data provided by providerName due to the addition of an event.

Parameters:
providerName name use to identified the event provider containing the modified event.
eventsToShow new list of events to be shown.
active true if the view is the active one, false otherwise.

void TraceView::updateNoneBrowsingEventList ( QString  providerName,
const QValueList< int > &  eventsToNotBrowse 
)

Updates the list of events to not use while browsing.

Parameters:
providerName name use to identified the event provider containing the modified event.
eventsToNotBrowse new list of events to not use while browsing.

void TraceView::updateNoneBrowsingClusterList ( QString  providerName,
const QValueList< int > &  clustersToNotBrowse 
)

Updates the list of clusters to not use while browsing.

Parameters:
providerName name use to identified the event provider containing the modified event.
clustersToNotBrowse new list of clusters to not use while browsing.

void TraceView::updateWaveformInformation ( int  nbSamplesBefore,
int  nbSamplesAfter,
bool  active 
)

Updates the description of a spike waveform.

Parameters:
nbSamplesBefore number of samples contained in the waveform of a spike before the sample of the peak.
nbSamplesAfter number of samples contained in the waveform of a spike after the sample of the peak.
active true if the view is the active one, false otherwise.

void TraceView::samplingRateModified ( long long  length  )  [inline]

Updates the length of the document due to a modification of the sampling rate.

Parameters:
length the newly computed length of the document.

void TraceView::updateClusterData ( bool  active  ) 

Updates the cluster information presented on the display.

Parameters:
active true if the view is the active one, false otherwise.

void TraceView::updateClusters ( QString  name,
QValueList< int > &  clustersToShow,
ItemColors clusterColors,
bool  active 
)

Updates the display due to modification of clusters provided by the cluster provider identified by name.

Parameters:
name name use to identified the cluster provider containing the clusters to show.
clustersToShow new list of clusters to be shown.
clusterColors list of colors for the clusters.
active true if the view is the active one, false otherwise.

void TraceView::getCurrentEventInformation ( long  startTime,
long  endTime,
QObject *  initiator 
)

Gets the event information for all the available eventProviders.

Parameters:
startTime begining of the time interval from which to retrieve the data in miliseconds.
endTime end of the time interval from which to retrieve the data.
initiator instance requesting the data.

void TraceView::traceBackgroundImageUpdate ( QImage  traceBackgroundImage,
bool  active 
)

Updates the background image.

Parameters:
traceBackgroundImage image to be used as background.
active true if the view is the active one, false otherwise.

void TraceView::dataAvailable ( Array< dataType > &  data,
QObject *  initiator 
) [slot]

Displays the data that has been retrieved.

Parameters:
data array of data (number of channels X number of samples).
initiator instance requesting the data.

void TraceView::dataAvailable ( Array< dataType > &  data,
QObject *  initiator,
QString  providerName 
) [slot]

Displays the cluster information that has been retrieved.

Parameters:
data 2 line array containing the sample index of the peak index of each spike existing in the requested time frame with the corresponding cluster id. The first line contains the sample index and the second line the cluster id.
initiator instance requesting the data.
providerName name of the instance providing the data.

void TraceView::dataAvailable ( Array< dataType > &  times,
Array< int > &  ids,
QObject *  initiator,
QString  providerName 
) [slot]

Displays the event information that has been retrieved.

Parameters:
times 1 line array containing the time (in recording samples) of each event existing in the requested time frame.
ids 1 line array containing the identifiers of each event existing in the requested time frame.
initiator instance requesting the data.
providerName name of the instance providing the data.

void TraceView::nextClusterDataAvailable ( Array< dataType > &  data,
QObject *  initiator,
QString  providerName,
long  startingTime,
long  startingTimeInRecordingUnits 
) [slot]

Compute the cluster information that has been retrieved regarding the next cluster to display.

Parameters:
data 2 line array containing the sample index of the peak index of each spike existing in the requested time frame with the corresponding cluster id. The first line contains the sample index and the second line the cluster id.
initiator instance requesting the data.
providerName name of the instance providing the data.
startingTime time from which the data have been retreived in milisesonds.
startingTimeInRecordingUnits time from which the data have been retrieved in recording units.

void TraceView::previousClusterDataAvailable ( Array< dataType > &  data,
QObject *  initiator,
QString  providerName,
long  startingTime,
long  startingTimeInRecordingUnits 
) [slot]

Compute the cluster information that has been retrieved regarding the previous cluster to display.

Parameters:
data 2 line array containing the sample index of the peak index of each spike existing in the requested time frame with the corresponding cluster id. The first line contains the sample index and the second line the cluster id.
initiator instance requesting the data.
providerName name of the instance providing the data.
startingTime time from which the data have been retreived in milisesonds.
startingTimeInRecordingUnits time from which the data have been retrieved in recording units.

void TraceView::nextEventDataAvailable ( Array< dataType > &  times,
Array< int > &  ids,
QObject *  initiator,
QString  providerName,
long  startingTime 
) [slot]

Compute the event information that has been retrieved regarding the next event to display.

Parameters:
times 1 line array containing the time (in recording samples) of each event existing in the requested time frame.
ids 1 line array containing the identifiers of each event existing in the requested time frame.
initiator instance requesting the data.
providerName name of the instance providing the data.
startingTime time from which the data have been retreived.

void TraceView::previousEventDataAvailable ( Array< dataType > &  times,
Array< int > &  ids,
QObject *  initiator,
QString  providerName,
long  startingTime 
) [slot]

Compute the event information that has been retrieved regarding the previous event to display.

Parameters:
times 1 line array containing the time (in recording samples) of each event existing in the requested time frame.
ids 1 line array containing the identifiers of each event existing in the requested time frame.
initiator instance requesting the data.
providerName name of the instance providing the data.
startingTime time from which the data have been retreived.

void TraceView::eventToAddProperties ( QString  providerName,
QString  eventDescription 
) [inline, slot]

Stores the properties for the next event to be added.

Parameters:
providerName name use to identified the event provider which will contain the added event.
eventDescription description of the next event to be created.

void TraceView::skipStatusChanged ( const QValueList< int > &  skippedChannels  )  [slot]

Updates the list of skipped channels.

Parameters:
skippedChannels list of skipped channels

int TraceView::getRasterHeight (  )  [inline, slot]

Returns the height of the rasters in the world coordinate system.

Returns:
raster height.

void TraceView::drawContents ( QPainter *  painter  )  [protected, virtual]

Draws the contents of the frame.

Parameters:
painter painter used to draw the contents

Implements BaseFrame.

void TraceView::mouseMoveEvent ( QMouseEvent *  event  )  [protected, virtual]

The view responds to a mouse move event.

The time is display in the status bar.

Parameters:
event mouse move event.

Reimplemented from BaseFrame.

void TraceView::resizeEvent ( QResizeEvent *  event  )  [inline, protected, virtual]

The view responds to a resize event.

The window is recomputed.

Parameters:
event resize event.

Reimplemented from BaseFrame.

void TraceView::mousePressEvent ( QMouseEvent *  event  )  [protected, virtual]

The view responds to a mouse click.

Parameters:
event mouse release event.

Reimplemented from BaseFrame.

void TraceView::mouseReleaseEvent ( QMouseEvent *  event  )  [protected, virtual]

The view responds to a mouse release.

Parameters:
event mouse event.

Reimplemented from BaseFrame.

void TraceView::mouseDoubleClickEvent ( QMouseEvent *  event  )  [protected, virtual]

The view responds to a double click.

Parameters:
event mouse event.

Reimplemented from BaseFrame.


The documentation for this class was generated from the following files:
Generated on Mon Sep 17 20:47:34 2007 for NeuroScope by  doxygen 1.5.1