SpikeStream Application Library
0.2
|
#include <AbstractGraphWidget.h>
Public Member Functions | |
AbstractGraphWidget (QWidget *parent=0) | |
virtual | ~AbstractGraphWidget () |
int | getMaxY () |
int | getMinY () |
void | setYRange (int minY, int maxY) |
Protected Member Functions | |
void | buildBufferImage () |
void | increaseTimeStep (int currentTimeStep) |
void | mouseDoubleClickEvent (QMouseEvent *event) |
void | paintEvent (QPaintEvent *event) |
void | resizeEvent (QResizeEvent *event) |
virtual void | paintAxes (QPainter &) |
virtual void | paintData (QPainter &)=0 |
virtual void | paintLabels (QPainter &)=0 |
Protected Attributes | |
QImage * | bufferImage |
int | numTimeSteps |
int | minTimeStep |
int | widgetWidth |
int | widgetHeight |
int | imageWidth |
int | imageHeight |
bool | updateAxes |
int | xAxisTickLength |
int | xAxisPadding |
int | yAxisPadding |
int | yAxisTickLength |
int | axesLabelFontSize |
int | labelFontSize |
QRgb | backgroundColor |
QRgb | axesColor |
QRgb | labelsColor |
Plots raster of firing data.
Definition at line 14 of file AbstractGraphWidget.h.
AbstractGraphWidget::AbstractGraphWidget | ( | QWidget * | parent = 0 | ) |
Constructor
Definition at line 17 of file AbstractGraphWidget.cpp.
AbstractGraphWidget::~AbstractGraphWidget | ( | ) | [virtual] |
Destructor
Definition at line 40 of file AbstractGraphWidget.cpp.
void AbstractGraphWidget::buildBufferImage | ( | ) | [protected] |
Builds the buffer image. Should be called after changing the parameters.
Definition at line 66 of file AbstractGraphWidget.cpp.
int spikestream::AbstractGraphWidget::getMaxY | ( | ) | [inline] |
Definition at line 20 of file AbstractGraphWidget.h.
int spikestream::AbstractGraphWidget::getMinY | ( | ) | [inline] |
Definition at line 21 of file AbstractGraphWidget.h.
void AbstractGraphWidget::increaseTimeStep | ( | int | currentTimeStep | ) | [protected] |
Advances the time step and redraws axes if necessary
Definition at line 160 of file AbstractGraphWidget.cpp.
void AbstractGraphWidget::mouseDoubleClickEvent | ( | QMouseEvent * | event | ) | [protected] |
Prompts user to save image as a file.
Definition at line 94 of file AbstractGraphWidget.cpp.
void AbstractGraphWidget::paintAxes | ( | QPainter & | painter | ) | [protected, virtual] |
Paints the X and Y axes
Definition at line 171 of file AbstractGraphWidget.cpp.
virtual void spikestream::AbstractGraphWidget::paintData | ( | QPainter & | ) | [protected, pure virtual] |
Implemented in spikestream::MembranePotentialGraphWidget.
void AbstractGraphWidget::paintEvent | ( | QPaintEvent * | event | ) | [protected] |
Definition at line 115 of file AbstractGraphWidget.cpp.
virtual void spikestream::AbstractGraphWidget::paintLabels | ( | QPainter & | ) | [protected, pure virtual] |
Implemented in spikestream::MembranePotentialGraphWidget.
void AbstractGraphWidget::resizeEvent | ( | QResizeEvent * | event | ) | [protected] |
Definition at line 131 of file AbstractGraphWidget.cpp.
void AbstractGraphWidget::setYRange | ( | int | minY, |
int | maxY | ||
) |
Checks and sets y range
Definition at line 51 of file AbstractGraphWidget.cpp.
QRgb spikestream::AbstractGraphWidget::axesColor [protected] |
Color of axes
Definition at line 72 of file AbstractGraphWidget.h.
int spikestream::AbstractGraphWidget::axesLabelFontSize [protected] |
Size of the axes font in pixels
Definition at line 63 of file AbstractGraphWidget.h.
QRgb spikestream::AbstractGraphWidget::backgroundColor [protected] |
Color of background
Definition at line 69 of file AbstractGraphWidget.h.
QImage* spikestream::AbstractGraphWidget::bufferImage [protected] |
Image onto which spikes and buffer are painted
Definition at line 27 of file AbstractGraphWidget.h.
int spikestream::AbstractGraphWidget::imageHeight [protected] |
Height of the image
Definition at line 45 of file AbstractGraphWidget.h.
int spikestream::AbstractGraphWidget::imageWidth [protected] |
Width of the image
Definition at line 42 of file AbstractGraphWidget.h.
int spikestream::AbstractGraphWidget::labelFontSize [protected] |
Size of the label names in pixels
Definition at line 66 of file AbstractGraphWidget.h.
QRgb spikestream::AbstractGraphWidget::labelsColor [protected] |
Color of labels
Definition at line 75 of file AbstractGraphWidget.h.
int spikestream::AbstractGraphWidget::minTimeStep [protected] |
Minimum time step on the X axis
Definition at line 33 of file AbstractGraphWidget.h.
int spikestream::AbstractGraphWidget::numTimeSteps [protected] |
Number of time steps on the horizontal axis
Definition at line 30 of file AbstractGraphWidget.h.
bool spikestream::AbstractGraphWidget::updateAxes [protected] |
Flag to indicate whether painter should redraw axes
Definition at line 48 of file AbstractGraphWidget.h.
int spikestream::AbstractGraphWidget::widgetHeight [protected] |
Height of the widget
Definition at line 39 of file AbstractGraphWidget.h.
int spikestream::AbstractGraphWidget::widgetWidth [protected] |
Width of the widget
Definition at line 36 of file AbstractGraphWidget.h.
int spikestream::AbstractGraphWidget::xAxisPadding [protected] |
Indent of X axis when minY is small or > 0
Definition at line 54 of file AbstractGraphWidget.h.
int spikestream::AbstractGraphWidget::xAxisTickLength [protected] |
X axis tick length
Definition at line 51 of file AbstractGraphWidget.h.
int spikestream::AbstractGraphWidget::yAxisPadding [protected] |
Indent of Y axis
Definition at line 57 of file AbstractGraphWidget.h.
int spikestream::AbstractGraphWidget::yAxisTickLength [protected] |
Y axis tick length
Definition at line 60 of file AbstractGraphWidget.h.