#include <tracewidget.h>
Collaboration diagram for TraceWidget:
Public Slots | ||||
void | changeBackgroundColor (QColor color) | |||
Changes the color of the background. | ||||
void | setGreyScale (bool grey) | |||
All the channels are now display either in a gradation of grey or in color. | ||||
void | moveToTime (long time) | |||
Display the traces starting at the given time in miliseconds. | ||||
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 | slotChannelsSelected (const QValueList< int > &selectedIds) | |||
Informs listener that the channels selectedIds have been selected. | ||||
virtual void | setMode (BaseFrame::Mode selectedMode, bool active) | |||
Change the current mode, call by a selection of a tool. | ||||
void | showChannels (const QValueList< int > &channelsToShow) | |||
Updates the list of channels shown with channelsToShow . | ||||
void | showClusters (QString name, QValueList< int > &clustersToShow) | |||
Updates the list of clusters shown with clustersToShow for the cluster provider identified by name . | ||||
void | showEvents (QString name, QValueList< int > &eventsToShow) | |||
Updates the list of events shown with eventsToShow for the event provider identified by name . | ||||
void | channelColorUpdate (int channelId, bool active) | |||
Changes the color of a channel. | ||||
void | clusterColorUpdate (QString name, int clusterId, bool active) | |||
Changes the color of a cluster. | ||||
void | eventColorUpdate (QString name, int eventId, bool active) | |||
Changes the color of a event. | ||||
void | groupColorUpdate (int groupId, bool active) | |||
Changes the color of a group of channels. | ||||
void | increaseAllChannelsAmplitude () | |||
Triggers the increase of the amplitude of all the channels. | ||||
void | decreaseAllChannelsAmplitude () | |||
Triggers the decrease of the amplitude of all the channels. | ||||
void | increaseSelectedChannelsAmplitude (const QValueList< int > &channelIds) | |||
Triggers the increase of the amplitude of the selected channels. | ||||
void | decreaseSelectedChannelsAmplitude (const QValueList< int > &channelIds) | |||
Triggers the decrease of the amplitude of the selected channels. | ||||
void | setGains (int gain, int acquisitionGain) | |||
Sets the unit gain and the acquisition system gain. | ||||
void | updateDrawing () | |||
Update the information presented in the view if need it. | ||||
void | updateContents () | |||
Update the TraceView. | ||||
void | groupsModified (bool active) | |||
Triggers the update of the display due to a change in the display groups. | ||||
void | selectChannels (const QValueList< int > &selectedIds) | |||
Selects the channels in the TraceView. | ||||
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 | drawTraces () | |||
Informs the view to update the traces for the current time frame. | ||||
void | reset () | |||
Informs the view to reset its state. | ||||
void | showLabels (bool show) | |||
Informs the view to show or hide the labels display next to the traces. | ||||
void | slotSetStartAndDuration (long time, long duration) | |||
Displays the traces starting at the given time time in miliseconds and for the given duration duration . | ||||
void | showCalibration (bool show, bool active) | |||
Shows or hides the calibration bar. | ||||
void | samplingRateModified (long long length) | |||
Updates the different time selection widgets due to a modification of the sampling rate for the document. | ||||
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 | addEventProvider (EventsProvider *eventsProvider, QString name, ItemColors *eventColors, bool active, QValueList< int > &eventsToShow, const QValueList< int > &eventsToNotBrowse) | |||
Adds a new provider of event data. | ||||
void | removeEventProvider (QString name, bool active) | |||
Removes a provider of event data. | ||||
void | print (QPainter &printPainter, QPaintDeviceMetrics &metrics, QString filePath, bool whiteBackground) | |||
Prints the current information drawn in the traceView. | ||||
void | showNextCluster () | |||
Retrieves the next cluster. | ||||
void | showPreviousCluster () | |||
Retrieves the previous cluster. | ||||
void | showNextEvent () | |||
Retrieves the next event. | ||||
void | showPreviousEvent () | |||
Retrieves the previous event. | ||||
void | slotEventModified (QString providerName, int selectedEventId, double time, double newTime) | |||
Informs that an event has been modified. | ||||
void | slotEventRemoved (QString providerName, int selectedEventId, double time) | |||
Informs that an event has been removed. | ||||
void | updateEvents (bool active, QString providerName, double time, double newTime) | |||
Updates the traceView if concerned by the modification of the event. | ||||
void | removeEvent () | |||
Deletes the selected event. | ||||
void | updateEvents (bool active, QString providerName, double time) | |||
Updates the traceView if concerned by the modification of the event. | ||||
void | eventToAddProperties (QString providerName, QString eventDescription) | |||
Informs the traceView of the properties for the next event to be added. | ||||
void | slotEventAdded (QString providerName, QString addedEventDescription, double time) | |||
Informs that an event has been added. | ||||
void | updateEvents (QString providerName, QValueList< int > &eventsToShow, bool active) | |||
Updates the event data provided by providerName due to the addition of an event. | ||||
void | updateWaveformInformation (int nbSamplesBefore, int nbSamplesAfter, bool active) | |||
Updates the description of a spike waveform. | ||||
void | updateClusterData (bool active) | |||
Updates the cluster information presented on the display. | ||||
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. | ||||
virtual void | dockBeingClosed () | |||
If the frame is contained in a dockWidget, this slot can be used when the enclosing dockwidget is being closed. | ||||
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 | updateSkipStatus (const QValueList< int > &skippedChannels) | |||
Updates the list of skipped channels. | ||||
void | increaseRasterHeight () | |||
Increases the height of the rasters. | ||||
void | decreaseRasterHeight () | |||
Decreases the height of the rasters. | ||||
int | getRasterHeight () | |||
Returns the height of the rasters. | ||||
void | slotEventsAvailable (QDict< EventData > &eventsData, QMap< QString, QValueList< int > > &selectedEvents, QDict< ItemColors > &providerItemColors, QObject *initiator, double samplingRate) | |||
Informs that data of the selected events providers corresponding to current time frame are available. | ||||
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. | ||||
void | changeBackgroundColor (QColor color) | |||
Changes the color of the background. | ||||
void | setGreyScale (bool grey) | |||
All the channels are now display either in a gradation of grey or in color. | ||||
void | moveToTime (long time) | |||
Display the traces starting at the given time in miliseconds. | ||||
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 | slotChannelsSelected (const QValueList< int > &selectedIds) | |||
Informs listener that the channels selectedIds have been selected. | ||||
virtual void | setMode (BaseFrame::Mode selectedMode, bool active) | |||
Change the current mode, call by a selection of a tool. | ||||
void | showChannels (const QValueList< int > &channelsToShow) | |||
Updates the list of channels shown with channelsToShow . | ||||
void | showClusters (QString name, QValueList< int > &clustersToShow) | |||
Updates the list of clusters shown with clustersToShow for the cluster provider identified by name . | ||||
void | showEvents (QString name, QValueList< int > &eventsToShow) | |||
Updates the list of events shown with eventsToShow for the event provider identified by name . | ||||
void | channelColorUpdate (int channelId, bool active) | |||
Changes the color of a channel. | ||||
void | clusterColorUpdate (QString name, int clusterId, bool active) | |||
Changes the color of a cluster. | ||||
void | eventColorUpdate (QString name, int eventId, bool active) | |||
Changes the color of a event. | ||||
void | groupColorUpdate (int groupId, bool active) | |||
Changes the color of a group of channels. | ||||
void | increaseAllChannelsAmplitude () | |||
Triggers the increase of the amplitude of all the channels. | ||||
void | decreaseAllChannelsAmplitude () | |||
Triggers the decrease of the amplitude of all the channels. | ||||
void | increaseSelectedChannelsAmplitude (const QValueList< int > &channelIds) | |||
Triggers the increase of the amplitude of the selected channels. | ||||
void | decreaseSelectedChannelsAmplitude (const QValueList< int > &channelIds) | |||
Triggers the decrease of the amplitude of the selected channels. | ||||
void | setGains (int gain, int acquisitionGain) | |||
Sets the unit gain and the acquisition system gain. | ||||
void | updateDrawing () | |||
Update the information presented in the view if need it. | ||||
void | updateContents () | |||
Update the TraceView. | ||||
void | groupsModified (bool active) | |||
Triggers the update of the display due to a change in the display groups. | ||||
void | selectChannels (const QValueList< int > &selectedIds) | |||
Selects the channels in the TraceView. | ||||
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 | drawTraces () | |||
Informs the view to update the traces for the current time frame. | ||||
void | reset () | |||
Informs the view to reset its state. | ||||
void | showLabels (bool show) | |||
Informs the view to show or hide the labels display next to the traces. | ||||
void | slotSetStartAndDuration (long time, long duration) | |||
Displays the traces starting at the given time time in miliseconds and for the given duration duration . | ||||
void | showCalibration (bool show, bool active) | |||
Shows or hides the calibration bar. | ||||
void | samplingRateModified (long long length) | |||
Updates the different time selection widgets due to a modification of the sampling rate for the document. | ||||
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 | addEventProvider (EventsProvider *eventsProvider, QString name, ItemColors *eventColors, bool active, QValueList< int > &eventsToShow, const QValueList< int > &eventsToNotBrowse) | |||
Adds a new provider of event data. | ||||
void | removeEventProvider (QString name, bool active) | |||
Removes a provider of event data. | ||||
void | print (QPainter &printPainter, QPaintDeviceMetrics &metrics, QString filePath, bool whiteBackground) | |||
Prints the current information drawn in the traceView. | ||||
void | showNextCluster () | |||
Retrieves the next cluster. | ||||
void | showPreviousCluster () | |||
Retrieves the previous cluster. | ||||
void | showNextEvent () | |||
Retrieves the next event. | ||||
void | showPreviousEvent () | |||
Retrieves the previous event. | ||||
void | slotEventModified (QString providerName, int selectedEventId, double time, double newTime) | |||
Informs that an event has been modified. | ||||
void | slotEventRemoved (QString providerName, int selectedEventId, double time) | |||
Informs that an event has been removed. | ||||
void | updateEvents (bool active, QString providerName, double time, double newTime) | |||
Updates the traceView if concerned by the modification of the event. | ||||
void | removeEvent () | |||
Deletes the selected event. | ||||
void | updateEvents (bool active, QString providerName, double time) | |||
Updates the traceView if concerned by the modification of the event. | ||||
void | eventToAddProperties (QString providerName, QString eventDescription) | |||
Informs the traceView of the properties for the next event to be added. | ||||
void | slotEventAdded (QString providerName, QString addedEventDescription, double time) | |||
Informs that an event has been added. | ||||
void | updateEvents (QString providerName, QValueList< int > &eventsToShow, bool active) | |||
Updates the event data provided by providerName due to the addition of an event. | ||||
void | updateWaveformInformation (int nbSamplesBefore, int nbSamplesAfter, bool active) | |||
Updates the description of a spike waveform. | ||||
void | updateClusterData (bool active) | |||
Updates the cluster information presented on the display. | ||||
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. | ||||
virtual void | dockBeingClosed () | |||
If the frame is contained in a dockWidget, this slot can be used when the enclosing dockwidget is being closed. | ||||
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 | updateSkipStatus (const QValueList< int > &skippedChannels) | |||
Updates the list of skipped channels. | ||||
void | increaseRasterHeight () | |||
Increases the height of the rasters. | ||||
void | decreaseRasterHeight () | |||
Decreases the height of the rasters. | ||||
int | getRasterHeight () | |||
Returns the height of the rasters. | ||||
void | slotEventsAvailable (QDict< EventData > &eventsData, QMap< QString, QValueList< int > > &selectedEvents, QDict< ItemColors > &providerItemColors, QObject *initiator, double samplingRate) | |||
Informs that data of the selected events providers corresponding to current time frame are available. | ||||
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. | ||||
Signals | ||||
void | channelsSelected (const QValueList< int > &selectedIds) | |||
void | updateStartAndDuration (long startTime, long timeWindow) | |||
Informs that the starting time and/or the timeWindow have changed. | ||||
void | eventModified (QString providerName, int selectedEventId, double time, double newTime) | |||
Informs that an event has been modified. | ||||
void | eventRemoved (QString providerName, int selectedEventId, double time) | |||
Informs that an event has been removed. | ||||
void | eventAdded (QString providerName, QString addedEventDescription, double time) | |||
Informs that an event has been added. | ||||
void | parentDockBeingClosed (QWidget *viewWidget) | |||
Signals that the enclosing dockwidget is being closed. | ||||
void | eventsAvailable (QDict< EventData > &eventsData, QMap< QString, QValueList< int > > &selectedEvents, QDict< ItemColors > &providerItemColors, QObject *initiator, double samplingRate) | |||
Informs that data of the selected events providers corresponding to current time frame are available. | ||||
void | channelsSelected (const QValueList< int > &selectedIds) | |||
void | updateStartAndDuration (long startTime, long timeWindow) | |||
Informs that the starting time and/or the timeWindow have changed. | ||||
void | eventModified (QString providerName, int selectedEventId, double time, double newTime) | |||
Informs that an event has been modified. | ||||
void | eventRemoved (QString providerName, int selectedEventId, double time) | |||
Informs that an event has been removed. | ||||
void | eventAdded (QString providerName, QString addedEventDescription, double time) | |||
Informs that an event has been added. | ||||
void | parentDockBeingClosed (QWidget *viewWidget) | |||
Signals that the enclosing dockwidget is being closed. | ||||
void | eventsAvailable (QDict< EventData > &eventsData, QMap< QString, QValueList< int > > &selectedEvents, QDict< ItemColors > &providerItemColors, QObject *initiator, double samplingRate) | |||
Informs that data of the selected events providers corresponding to current time frame are available. | ||||
Public Member Functions | ||||
TraceWidget (long startTime, long duration, bool greyScale, TracesProvider &tracesProvider, bool multiColumns, bool verticalLines, bool raster, bool waveforms, bool labelsDisplay, QValueList< int > &channelsToDisplay, int gain, int acquisitionGain, 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=0, int maxSize=4000, int windowTopLeft=-500, int windowBottomRight=1001, int border=0) | ||||
| ||||
long | timeFrameWidth () const | |||
Returns the time amount, in milisecond, of the time frame used by the TraceView. | ||||
long | timeFrameStart () const | |||
Returns the start time of the time frame used by the TraceView. | ||||
void | installEventFilter (const QObject *filterObject) | |||
Installs the event filter on the view contained in the widget. | ||||
TraceWidget (long startTime, long duration, bool greyScale, TracesProvider &tracesProvider, bool multiColumns, bool verticalLines, bool raster, bool waveforms, bool labelsDisplay, QValueList< int > &channelsToDisplay, int gain, int acquisitionGain, 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=0, int maxSize=4000, int windowTopLeft=-500, int windowBottomRight=1001, int border=0) | ||||
| ||||
long | timeFrameWidth () const | |||
Returns the time amount, in milisecond, of the time frame used by the TraceView. | ||||
long | timeFrameStart () const | |||
Returns the start time of the time frame used by the TraceView. | ||||
void | installEventFilter (const QObject *filterObject) | |||
Installs the event filter on the view contained in the widget. | ||||
Protected Member Functions | ||||
void | keyPressEvent (QKeyEvent *event) | |||
The view responds to a key press event. | ||||
void | keyPressEvent (QKeyEvent *event) | |||
The view responds to a key press event. |
TraceWidget::TraceWidget | ( | long | startTime, | |
long | duration, | |||
bool | greyScale, | |||
TracesProvider & | tracesProvider, | |||
bool | multiColumns, | |||
bool | verticalLines, | |||
bool | raster, | |||
bool | waveforms, | |||
bool | labelsDisplay, | |||
QValueList< int > & | channelsToDisplay, | |||
int | gain, | |||
int | acquisitionGain, | |||
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 = 0 , |
|||
int | maxSize = 4000 , |
|||
int | windowTopLeft = -500 , |
|||
int | windowBottomRight = 1001 , |
|||
int | border = 0 | |||
) |
startTime | starting time in miliseconds. |
duration | time window in miliseconds. | |
greyScale | true if all the channels are display either in a gradation of grey false if they are display in color. | |
tracesProvider | a reference on the provider of the channels data. | |
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. | |
gain | initial gain use to draw the traces in the TraceView. | |
acquisitionGain | acquisition gain. | |
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. |
TraceWidget::TraceWidget | ( | long | startTime, | |
long | duration, | |||
bool | greyScale, | |||
TracesProvider & | tracesProvider, | |||
bool | multiColumns, | |||
bool | verticalLines, | |||
bool | raster, | |||
bool | waveforms, | |||
bool | labelsDisplay, | |||
QValueList< int > & | channelsToDisplay, | |||
int | gain, | |||
int | acquisitionGain, | |||
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 = 0 , |
|||
int | maxSize = 4000 , |
|||
int | windowTopLeft = -500 , |
|||
int | windowBottomRight = 1001 , |
|||
int | border = 0 | |||
) |
startTime | starting time in miliseconds. |
duration | time window in miliseconds. | |
greyScale | true if all the channels are display either in a gradation of grey false if they are display in color. | |
tracesProvider | a reference on the provider of the channels data. | |
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. | |
gain | initial gain use to draw the traces in the TraceView. | |
acquisitionGain | acquisition gain. | |
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. |
void TraceWidget::setGreyScale | ( | bool | grey | ) | [slot] |
All the channels are now display either in a gradation of grey or in color.
grey | true if the channels have to be displayed in grey false otherwise. |
void TraceWidget::moveToTime | ( | long | time | ) | [slot] |
Display the traces starting at the given time in miliseconds.
The selection widgets are updated accordingly.
time | starting time to display the traces. |
void TraceWidget::setMultiColumns | ( | bool | multiple | ) | [inline, slot] |
Sets the mode of presentation to single or multiple columns.
multiple | true if the traces are presented on multiple columns, false if they are presented on a single column. |
void TraceWidget::setClusterVerticalLines | ( | bool | lines | ) | [inline, slot] |
Displays or hides vertical lines to show the clusters.
lines | true if the vertical lines are drawn for each cluster, false otherwise. |
void TraceWidget::setClusterRaster | ( | bool | raster | ) | [inline, slot] |
Displays or hides a raster to show the clusters.
raster | true if a raster is drawn, false otherwise. |
void TraceWidget::setClusterWaveforms | ( | bool | waveforms | ) | [inline, slot] |
Displays or hides the cluster waveforms on top of the traces.
waveforms | true if the waveforms are drawn, false otherwise. |
void TraceWidget::slotChannelsSelected | ( | const QValueList< int > & | selectedIds | ) | [inline, slot] |
Informs listener that the channels selectedIds
have been selected.
selectedIds | the list of channels selected by the user in a view. |
virtual void TraceWidget::setMode | ( | BaseFrame::Mode | selectedMode, | |
bool | active | |||
) | [inline, virtual, slot] |
Change the current mode, call by a selection of a tool.
selectedMode | new mode of drawing. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::showChannels | ( | const QValueList< int > & | channelsToShow | ) | [inline, slot] |
Updates the list of channels shown with channelsToShow
.
channelsToShow | new list of channels to be shown. |
void TraceWidget::showClusters | ( | QString | name, | |
QValueList< int > & | clustersToShow | |||
) | [inline, slot] |
Updates the list of clusters shown with clustersToShow
for the cluster provider identified by name
.
name | name use to identified the cluster provider containing the clusters to show. | |
clustersToShow | new list of clusters to be shown. |
void TraceWidget::showEvents | ( | QString | name, | |
QValueList< int > & | eventsToShow | |||
) | [inline, slot] |
Updates the list of events shown with eventsToShow
for the event provider identified by name
.
name | name use to identified the event provider containing the events to show. | |
eventsToShow | new list of events to be shown. |
void TraceWidget::channelColorUpdate | ( | int | channelId, | |
bool | active | |||
) | [inline, slot] |
Changes the color of a channel.
channelId | id of the channel to redraw. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::clusterColorUpdate | ( | QString | name, | |
int | clusterId, | |||
bool | active | |||
) | [inline, slot] |
Changes the color of a cluster.
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 TraceWidget::eventColorUpdate | ( | QString | name, | |
int | eventId, | |||
bool | active | |||
) | [inline, slot] |
Changes the color of a event.
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 TraceWidget::groupColorUpdate | ( | int | groupId, | |
bool | active | |||
) | [inline, slot] |
Changes the color of a group of channels.
groupId | id of the group for which the color have been changed. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::increaseSelectedChannelsAmplitude | ( | const QValueList< int > & | channelIds | ) | [inline, slot] |
Triggers the increase of the amplitude of the selected channels.
channelIds | ids of the channels for which the amplitude has to be increased. |
void TraceWidget::decreaseSelectedChannelsAmplitude | ( | const QValueList< int > & | channelIds | ) | [inline, slot] |
Triggers the decrease of the amplitude of the selected channels.
channelIds | ids of the channels for which the amplitude has to be decreased. |
void TraceWidget::setGains | ( | int | gain, | |
int | acquisitionGain | |||
) | [inline, slot] |
Sets the unit gain and the acquisition system gain.
gain | initial gain use to draw the traces in the TraceView. | |
acquisitionGain | acquisition gain. |
void TraceWidget::groupsModified | ( | bool | active | ) | [inline, slot] |
Triggers the update of the display due to a change in the display groups.
active | true if the view is the active one, false otherwise. |
void TraceWidget::selectChannels | ( | const QValueList< int > & | selectedIds | ) | [inline, slot] |
void TraceWidget::resetOffsets | ( | const QMap< int, int > & | selectedChannelDefaultOffsets | ) | [inline, slot] |
Resets the offset of the selected channels to the default values.
selectedChannelDefaultOffsets | map given the default offsets for the selected channels. |
void TraceWidget::resetGains | ( | const QValueList< int > & | selectedChannels | ) | [inline, slot] |
Resets the gain of the selected channels.
selectedChannels | ids of the selected channels. |
void TraceWidget::showLabels | ( | bool | show | ) | [inline, slot] |
Informs the view to show or hide the labels display next to the traces.
show | true if the labels have to be shown, false otherwise. |
void TraceWidget::slotSetStartAndDuration | ( | long | time, | |
long | duration | |||
) | [slot] |
Displays the traces starting at the given time time
in miliseconds and for the given duration duration
.
The selection widgets are updated accordingly.
time | starting time to display the traces. | |
duration | amount of time for which to display the traces. |
void TraceWidget::showCalibration | ( | bool | show, | |
bool | active | |||
) | [inline, slot] |
Shows or hides the calibration bar.
This bar is meaningful only when all the channels have the same amplification.
show | true if the bar has to be shown false otherwise. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::samplingRateModified | ( | long long | length | ) | [slot] |
Updates the different time selection widgets due to a modification of the sampling rate for the document.
Informs the view to update the traces.
length | the newly computed length of the document. |
void TraceWidget::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 | |||
) | [inline, slot] |
Adds a new provider of cluster data.
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 before the sample of the peak are contained in the waveform of a spike. | |
nbSamplesAfter | number of samples after the sample of the peak are contained in the waveform of a spike. | |
clustersToSkip | list of clusters to not use while browsing. |
void TraceWidget::removeClusterProvider | ( | QString | name, | |
bool | active | |||
) | [inline, slot] |
Removes a provider of cluster data.
name | name use to identified the cluster provider. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::addEventProvider | ( | EventsProvider * | eventsProvider, | |
QString | name, | |||
ItemColors * | eventColors, | |||
bool | active, | |||
QValueList< int > & | eventsToShow, | |||
const QValueList< int > & | eventsToNotBrowse | |||
) | [inline, slot] |
Adds a new provider of event data.
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 clusters to be shown. | |
eventsToNotBrowse | list of events to not use while browsing. |
void TraceWidget::removeEventProvider | ( | QString | name, | |
bool | active | |||
) | [inline, slot] |
Removes a provider of event data.
name | name use to identified the event provider. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::print | ( | QPainter & | printPainter, | |
QPaintDeviceMetrics & | metrics, | |||
QString | filePath, | |||
bool | whiteBackground | |||
) | [inline, slot] |
Prints the current information drawn in the traceView.
printPainter | painter on a printer. | |
metrics | object providing information about the printer. | |
filePath | path of the opened document. | |
whiteBackground | true if the printed background has to be white, false otherwise. |
void TraceWidget::slotEventModified | ( | QString | providerName, | |
int | selectedEventId, | |||
double | time, | |||
double | newTime | |||
) | [inline, slot] |
Informs that an event has been modified.
providerName | name use to identified the event provider containing the modified event. | |
selectedEventId | id of the modified event. | |
time | initial time of the modified event. | |
newTime | new time of the modified event. |
void TraceWidget::slotEventRemoved | ( | QString | providerName, | |
int | selectedEventId, | |||
double | time | |||
) | [inline, slot] |
Informs that an event has been removed.
providerName | name use to identified the event provider containing the removed event. | |
selectedEventId | id of the removed event. | |
time | initial time of the removed event. |
void TraceWidget::updateEvents | ( | bool | active, | |
QString | providerName, | |||
double | time, | |||
double | newTime | |||
) | [inline, slot] |
Updates the traceView if concerned by the modification of the event.
providerName | name use to identified the event provider containing the modified event. | |
time | initial time of the modified event. | |
newTime | new time of the modified event. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::updateEvents | ( | bool | active, | |
QString | providerName, | |||
double | time | |||
) | [inline, slot] |
Updates the traceView if concerned by the modification of the event.
providerName | name use to identified the event provider containing the removed event. | |
time | initial time of the removed event. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::eventToAddProperties | ( | QString | providerName, | |
QString | eventDescription | |||
) | [inline, slot] |
Informs the traceView of the properties for the next event to be added.
providerName | name use to identified the event provider which will contain the added event. | |
eventDescription | description of the next event to be created. |
void TraceWidget::slotEventAdded | ( | QString | providerName, | |
QString | addedEventDescription, | |||
double | time | |||
) | [inline, slot] |
Informs that an event has been added.
providerName | name use to identified the event provider containing the added event. | |
addedEventDescription | description of the added event. | |
time | time of the added event. |
void TraceWidget::updateEvents | ( | QString | providerName, | |
QValueList< int > & | eventsToShow, | |||
bool | active | |||
) | [inline, slot] |
Updates the event data provided by providerName
due to the addition of an event.
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 TraceWidget::updateWaveformInformation | ( | int | nbSamplesBefore, | |
int | nbSamplesAfter, | |||
bool | active | |||
) | [inline, slot] |
Updates the description of a spike waveform.
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 TraceWidget::updateClusterData | ( | bool | active | ) | [inline, slot] |
Updates the cluster information presented on the display.
active | true if the view is the active one, false otherwise. |
void TraceWidget::updateNoneBrowsingEventList | ( | QString | providerName, | |
const QValueList< int > & | eventsToNotBrowse | |||
) | [inline, slot] |
Updates the list of events to not use while browsing.
providerName | name use to identified the event provider containing the modified event. | |
eventsToNotBrowse | new list of events to not use while browsing. |
void TraceWidget::updateNoneBrowsingClusterList | ( | QString | providerName, | |
const QValueList< int > & | clustersToNotBrowse | |||
) | [inline, slot] |
Updates the list of clusters to not use while browsing.
providerName | name use to identified the event provider containing the modified event. | |
clustersToNotBrowse | new list of clusters to not use while browsing. |
virtual void TraceWidget::dockBeingClosed | ( | ) | [inline, virtual, slot] |
If the frame is contained in a dockWidget, this slot can be used when the enclosing dockwidget is being closed.
Emits the parentDockBeingClosed signal.
void TraceWidget::updateClusters | ( | QString | name, | |
QValueList< int > & | clustersToShow, | |||
ItemColors * | clusterColors, | |||
bool | active | |||
) | [inline, slot] |
Updates the display due to modification of clusters provided by the cluster provider identified by name
.
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 TraceWidget::updateSkipStatus | ( | const QValueList< int > & | skippedChannels | ) | [inline, slot] |
Updates the list of skipped channels.
skippedChannels | list of skipped channels. |
int TraceWidget::getRasterHeight | ( | ) | [inline, slot] |
Returns the height of the rasters.
void TraceWidget::slotEventsAvailable | ( | QDict< EventData > & | eventsData, | |
QMap< QString, QValueList< int > > & | selectedEvents, | |||
QDict< ItemColors > & | providerItemColors, | |||
QObject * | initiator, | |||
double | samplingRate | |||
) | [inline, slot] |
Informs that data of the selected events providers corresponding to current time frame are available.
eventsData | dictionary between the event provider names and the event data and status. | |
selectedEvents | map between the event provider names and the list of currently selected events. | |
providerItemColors | dictionary between the provider names and the item color lists. | |
initiator | instance requesting the data. | |
samplingRate | sampling rate of the current open data file in Hz. |
void TraceWidget::getCurrentEventInformation | ( | long | startTime, | |
long | endTime, | |||
QObject * | initiator | |||
) | [inline, slot] |
Gets the event information for all the available eventProviders.
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 TraceWidget::traceBackgroundImageUpdate | ( | QImage | traceBackgroundImage, | |
bool | active | |||
) | [inline, slot] |
Updates the background image.
traceBackgroundImage | image to be used as background. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::updateStartAndDuration | ( | long | startTime, | |
long | timeWindow | |||
) | [signal] |
Informs that the starting time and/or the timeWindow have changed.
startTime | starting time. | |
timeWindow | time window. |
void TraceWidget::eventModified | ( | QString | providerName, | |
int | selectedEventId, | |||
double | time, | |||
double | newTime | |||
) | [signal] |
Informs that an event has been modified.
providerName | name use to identified the event provider containing the modified event. | |
selectedEventId | id of the modified event. | |
time | initial time of the modified event. | |
newTime | new time of the modified event. |
void TraceWidget::eventRemoved | ( | QString | providerName, | |
int | selectedEventId, | |||
double | time | |||
) | [signal] |
Informs that an event has been removed.
providerName | name use to identified the event provider containing the removed event. | |
selectedEventId | id of the removed event. | |
time | initial time of the removed event. |
void TraceWidget::eventAdded | ( | QString | providerName, | |
QString | addedEventDescription, | |||
double | time | |||
) | [signal] |
Informs that an event has been added.
providerName | name use to identified the event provider containing the added event. | |
addedEventDescription | description of the added event. | |
time | time of the added event. |
void TraceWidget::parentDockBeingClosed | ( | QWidget * | viewWidget | ) | [signal] |
Signals that the enclosing dockwidget is being closed.
viewWidget | pointer on the the current object. |
void TraceWidget::eventsAvailable | ( | QDict< EventData > & | eventsData, | |
QMap< QString, QValueList< int > > & | selectedEvents, | |||
QDict< ItemColors > & | providerItemColors, | |||
QObject * | initiator, | |||
double | samplingRate | |||
) | [signal] |
Informs that data of the selected events providers corresponding to current time frame are available.
eventsData | dictionary between the event provider names and the event data and status. | |
selectedEvents | map between the event provider names and the list of currently selected events. | |
providerItemColors | dictionary between the provider names and the item color lists. | |
initiator | instance requesting the data. | |
samplingRate | sampling rate of the current open data file in Hz. |
void TraceWidget::keyPressEvent | ( | QKeyEvent * | event | ) | [protected] |
The view responds to a key press event.
event | key press event. |
void TraceWidget::setGreyScale | ( | bool | grey | ) | [slot] |
All the channels are now display either in a gradation of grey or in color.
grey | true if the channels have to be displayed in grey false otherwise. |
void TraceWidget::moveToTime | ( | long | time | ) | [slot] |
Display the traces starting at the given time in miliseconds.
The selection widgets are updated accordingly.
time | starting time to display the traces. |
void TraceWidget::setMultiColumns | ( | bool | multiple | ) | [inline, slot] |
Sets the mode of presentation to single or multiple columns.
multiple | true if the traces are presented on multiple columns, false if they are presented on a single column. |
void TraceWidget::setClusterVerticalLines | ( | bool | lines | ) | [inline, slot] |
Displays or hides vertical lines to show the clusters.
lines | true if the vertical lines are drawn for each cluster, false otherwise. |
void TraceWidget::setClusterRaster | ( | bool | raster | ) | [inline, slot] |
Displays or hides a raster to show the clusters.
raster | true if a raster is drawn, false otherwise. |
void TraceWidget::setClusterWaveforms | ( | bool | waveforms | ) | [inline, slot] |
Displays or hides the cluster waveforms on top of the traces.
waveforms | true if the waveforms are drawn, false otherwise. |
void TraceWidget::slotChannelsSelected | ( | const QValueList< int > & | selectedIds | ) | [inline, slot] |
Informs listener that the channels selectedIds
have been selected.
selectedIds | the list of channels selected by the user in a view. |
virtual void TraceWidget::setMode | ( | BaseFrame::Mode | selectedMode, | |
bool | active | |||
) | [inline, virtual, slot] |
Change the current mode, call by a selection of a tool.
selectedMode | new mode of drawing. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::showChannels | ( | const QValueList< int > & | channelsToShow | ) | [inline, slot] |
Updates the list of channels shown with channelsToShow
.
channelsToShow | new list of channels to be shown. |
void TraceWidget::showClusters | ( | QString | name, | |
QValueList< int > & | clustersToShow | |||
) | [inline, slot] |
Updates the list of clusters shown with clustersToShow
for the cluster provider identified by name
.
name | name use to identified the cluster provider containing the clusters to show. | |
clustersToShow | new list of clusters to be shown. |
void TraceWidget::showEvents | ( | QString | name, | |
QValueList< int > & | eventsToShow | |||
) | [inline, slot] |
Updates the list of events shown with eventsToShow
for the event provider identified by name
.
name | name use to identified the event provider containing the events to show. | |
eventsToShow | new list of events to be shown. |
void TraceWidget::channelColorUpdate | ( | int | channelId, | |
bool | active | |||
) | [inline, slot] |
Changes the color of a channel.
channelId | id of the channel to redraw. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::clusterColorUpdate | ( | QString | name, | |
int | clusterId, | |||
bool | active | |||
) | [inline, slot] |
Changes the color of a cluster.
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 TraceWidget::eventColorUpdate | ( | QString | name, | |
int | eventId, | |||
bool | active | |||
) | [inline, slot] |
Changes the color of a event.
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 TraceWidget::groupColorUpdate | ( | int | groupId, | |
bool | active | |||
) | [inline, slot] |
Changes the color of a group of channels.
groupId | id of the group for which the color have been changed. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::increaseSelectedChannelsAmplitude | ( | const QValueList< int > & | channelIds | ) | [inline, slot] |
Triggers the increase of the amplitude of the selected channels.
channelIds | ids of the channels for which the amplitude has to be increased. |
void TraceWidget::decreaseSelectedChannelsAmplitude | ( | const QValueList< int > & | channelIds | ) | [inline, slot] |
Triggers the decrease of the amplitude of the selected channels.
channelIds | ids of the channels for which the amplitude has to be decreased. |
void TraceWidget::setGains | ( | int | gain, | |
int | acquisitionGain | |||
) | [inline, slot] |
Sets the unit gain and the acquisition system gain.
gain | initial gain use to draw the traces in the TraceView. | |
acquisitionGain | acquisition gain. |
void TraceWidget::groupsModified | ( | bool | active | ) | [inline, slot] |
Triggers the update of the display due to a change in the display groups.
active | true if the view is the active one, false otherwise. |
void TraceWidget::selectChannels | ( | const QValueList< int > & | selectedIds | ) | [inline, slot] |
void TraceWidget::resetOffsets | ( | const QMap< int, int > & | selectedChannelDefaultOffsets | ) | [inline, slot] |
Resets the offset of the selected channels to the default values.
selectedChannelDefaultOffsets | map given the default offsets for the selected channels. |
void TraceWidget::resetGains | ( | const QValueList< int > & | selectedChannels | ) | [inline, slot] |
Resets the gain of the selected channels.
selectedChannels | ids of the selected channels. |
void TraceWidget::showLabels | ( | bool | show | ) | [inline, slot] |
Informs the view to show or hide the labels display next to the traces.
show | true if the labels have to be shown, false otherwise. |
void TraceWidget::slotSetStartAndDuration | ( | long | time, | |
long | duration | |||
) | [slot] |
Displays the traces starting at the given time time
in miliseconds and for the given duration duration
.
The selection widgets are updated accordingly.
time | starting time to display the traces. | |
duration | amount of time for which to display the traces. |
void TraceWidget::showCalibration | ( | bool | show, | |
bool | active | |||
) | [inline, slot] |
Shows or hides the calibration bar.
This bar is meaningful only when all the channels have the same amplification.
show | true if the bar has to be shown false otherwise. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::samplingRateModified | ( | long long | length | ) | [slot] |
Updates the different time selection widgets due to a modification of the sampling rate for the document.
Informs the view to update the traces.
length | the newly computed length of the document. |
void TraceWidget::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 | |||
) | [inline, slot] |
Adds a new provider of cluster data.
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 before the sample of the peak are contained in the waveform of a spike. | |
nbSamplesAfter | number of samples after the sample of the peak are contained in the waveform of a spike. | |
clustersToSkip | list of clusters to not use while browsing. |
void TraceWidget::removeClusterProvider | ( | QString | name, | |
bool | active | |||
) | [inline, slot] |
Removes a provider of cluster data.
name | name use to identified the cluster provider. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::addEventProvider | ( | EventsProvider * | eventsProvider, | |
QString | name, | |||
ItemColors * | eventColors, | |||
bool | active, | |||
QValueList< int > & | eventsToShow, | |||
const QValueList< int > & | eventsToNotBrowse | |||
) | [inline, slot] |
Adds a new provider of event data.
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 clusters to be shown. | |
eventsToNotBrowse | list of events to not use while browsing. |
void TraceWidget::removeEventProvider | ( | QString | name, | |
bool | active | |||
) | [inline, slot] |
Removes a provider of event data.
name | name use to identified the event provider. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::print | ( | QPainter & | printPainter, | |
QPaintDeviceMetrics & | metrics, | |||
QString | filePath, | |||
bool | whiteBackground | |||
) | [inline, slot] |
Prints the current information drawn in the traceView.
printPainter | painter on a printer. | |
metrics | object providing information about the printer. | |
filePath | path of the opened document. | |
whiteBackground | true if the printed background has to be white, false otherwise. |
void TraceWidget::slotEventModified | ( | QString | providerName, | |
int | selectedEventId, | |||
double | time, | |||
double | newTime | |||
) | [inline, slot] |
Informs that an event has been modified.
providerName | name use to identified the event provider containing the modified event. | |
selectedEventId | id of the modified event. | |
time | initial time of the modified event. | |
newTime | new time of the modified event. |
void TraceWidget::slotEventRemoved | ( | QString | providerName, | |
int | selectedEventId, | |||
double | time | |||
) | [inline, slot] |
Informs that an event has been removed.
providerName | name use to identified the event provider containing the removed event. | |
selectedEventId | id of the removed event. | |
time | initial time of the removed event. |
void TraceWidget::updateEvents | ( | bool | active, | |
QString | providerName, | |||
double | time, | |||
double | newTime | |||
) | [inline, slot] |
Updates the traceView if concerned by the modification of the event.
providerName | name use to identified the event provider containing the modified event. | |
time | initial time of the modified event. | |
newTime | new time of the modified event. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::updateEvents | ( | bool | active, | |
QString | providerName, | |||
double | time | |||
) | [inline, slot] |
Updates the traceView if concerned by the modification of the event.
providerName | name use to identified the event provider containing the removed event. | |
time | initial time of the removed event. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::eventToAddProperties | ( | QString | providerName, | |
QString | eventDescription | |||
) | [inline, slot] |
Informs the traceView of the properties for the next event to be added.
providerName | name use to identified the event provider which will contain the added event. | |
eventDescription | description of the next event to be created. |
void TraceWidget::slotEventAdded | ( | QString | providerName, | |
QString | addedEventDescription, | |||
double | time | |||
) | [inline, slot] |
Informs that an event has been added.
providerName | name use to identified the event provider containing the added event. | |
addedEventDescription | description of the added event. | |
time | time of the added event. |
void TraceWidget::updateEvents | ( | QString | providerName, | |
QValueList< int > & | eventsToShow, | |||
bool | active | |||
) | [inline, slot] |
Updates the event data provided by providerName
due to the addition of an event.
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 TraceWidget::updateWaveformInformation | ( | int | nbSamplesBefore, | |
int | nbSamplesAfter, | |||
bool | active | |||
) | [inline, slot] |
Updates the description of a spike waveform.
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 TraceWidget::updateClusterData | ( | bool | active | ) | [inline, slot] |
Updates the cluster information presented on the display.
active | true if the view is the active one, false otherwise. |
void TraceWidget::updateNoneBrowsingEventList | ( | QString | providerName, | |
const QValueList< int > & | eventsToNotBrowse | |||
) | [inline, slot] |
Updates the list of events to not use while browsing.
providerName | name use to identified the event provider containing the modified event. | |
eventsToNotBrowse | new list of events to not use while browsing. |
void TraceWidget::updateNoneBrowsingClusterList | ( | QString | providerName, | |
const QValueList< int > & | clustersToNotBrowse | |||
) | [inline, slot] |
Updates the list of clusters to not use while browsing.
providerName | name use to identified the event provider containing the modified event. | |
clustersToNotBrowse | new list of clusters to not use while browsing. |
virtual void TraceWidget::dockBeingClosed | ( | ) | [inline, virtual, slot] |
If the frame is contained in a dockWidget, this slot can be used when the enclosing dockwidget is being closed.
Emits the parentDockBeingClosed signal.
void TraceWidget::updateClusters | ( | QString | name, | |
QValueList< int > & | clustersToShow, | |||
ItemColors * | clusterColors, | |||
bool | active | |||
) | [inline, slot] |
Updates the display due to modification of clusters provided by the cluster provider identified by name
.
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 TraceWidget::updateSkipStatus | ( | const QValueList< int > & | skippedChannels | ) | [inline, slot] |
Updates the list of skipped channels.
skippedChannels | list of skipped channels. |
int TraceWidget::getRasterHeight | ( | ) | [inline, slot] |
Returns the height of the rasters.
void TraceWidget::slotEventsAvailable | ( | QDict< EventData > & | eventsData, | |
QMap< QString, QValueList< int > > & | selectedEvents, | |||
QDict< ItemColors > & | providerItemColors, | |||
QObject * | initiator, | |||
double | samplingRate | |||
) | [inline, slot] |
Informs that data of the selected events providers corresponding to current time frame are available.
eventsData | dictionary between the event provider names and the event data and status. | |
selectedEvents | map between the event provider names and the list of currently selected events. | |
providerItemColors | dictionary between the provider names and the item color lists. | |
initiator | instance requesting the data. | |
samplingRate | sampling rate of the current open data file in Hz. |
void TraceWidget::getCurrentEventInformation | ( | long | startTime, | |
long | endTime, | |||
QObject * | initiator | |||
) | [inline, slot] |
Gets the event information for all the available eventProviders.
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 TraceWidget::traceBackgroundImageUpdate | ( | QImage | traceBackgroundImage, | |
bool | active | |||
) | [inline, slot] |
Updates the background image.
traceBackgroundImage | image to be used as background. | |
active | true if the view is the active one, false otherwise. |
void TraceWidget::updateStartAndDuration | ( | long | startTime, | |
long | timeWindow | |||
) | [signal] |
Informs that the starting time and/or the timeWindow have changed.
startTime | starting time. | |
timeWindow | time window. |
void TraceWidget::eventModified | ( | QString | providerName, | |
int | selectedEventId, | |||
double | time, | |||
double | newTime | |||
) | [signal] |
Informs that an event has been modified.
providerName | name use to identified the event provider containing the modified event. | |
selectedEventId | id of the modified event. | |
time | initial time of the modified event. | |
newTime | new time of the modified event. |
void TraceWidget::eventRemoved | ( | QString | providerName, | |
int | selectedEventId, | |||
double | time | |||
) | [signal] |
Informs that an event has been removed.
providerName | name use to identified the event provider containing the removed event. | |
selectedEventId | id of the removed event. | |
time | initial time of the removed event. |
void TraceWidget::eventAdded | ( | QString | providerName, | |
QString | addedEventDescription, | |||
double | time | |||
) | [signal] |
Informs that an event has been added.
providerName | name use to identified the event provider containing the added event. | |
addedEventDescription | description of the added event. | |
time | time of the added event. |
void TraceWidget::parentDockBeingClosed | ( | QWidget * | viewWidget | ) | [signal] |
Signals that the enclosing dockwidget is being closed.
viewWidget | pointer on the the current object. |
void TraceWidget::eventsAvailable | ( | QDict< EventData > & | eventsData, | |
QMap< QString, QValueList< int > > & | selectedEvents, | |||
QDict< ItemColors > & | providerItemColors, | |||
QObject * | initiator, | |||
double | samplingRate | |||
) | [signal] |
Informs that data of the selected events providers corresponding to current time frame are available.
eventsData | dictionary between the event provider names and the event data and status. | |
selectedEvents | map between the event provider names and the list of currently selected events. | |
providerItemColors | dictionary between the provider names and the item color lists. | |
initiator | instance requesting the data. | |
samplingRate | sampling rate of the current open data file in Hz. |
void TraceWidget::keyPressEvent | ( | QKeyEvent * | event | ) | [protected] |
The view responds to a key press event.
event | key press event. |