SpikeStream Application Library  0.2
spikestream::AbstractGraphWidget Class Reference

#include <AbstractGraphWidget.h>

Inheritance diagram for spikestream::AbstractGraphWidget:
spikestream::MembranePotentialGraphWidget

List of all members.

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

Detailed Description

Plots raster of firing data.

Definition at line 14 of file AbstractGraphWidget.h.


Constructor & Destructor Documentation

AbstractGraphWidget::AbstractGraphWidget ( QWidget *  parent = 0)

Constructor

Definition at line 17 of file AbstractGraphWidget.cpp.

Destructor

Definition at line 40 of file AbstractGraphWidget.cpp.


Member Function Documentation

Builds the buffer image. Should be called after changing the parameters.

Definition at line 66 of file AbstractGraphWidget.cpp.

Definition at line 20 of file AbstractGraphWidget.h.

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]
void AbstractGraphWidget::paintEvent ( QPaintEvent *  event) [protected]

Definition at line 115 of file AbstractGraphWidget.cpp.

virtual void spikestream::AbstractGraphWidget::paintLabels ( QPainter &  ) [protected, pure virtual]
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.


Member Data Documentation

Color of axes

Definition at line 72 of file AbstractGraphWidget.h.

Size of the axes font in pixels

Definition at line 63 of file AbstractGraphWidget.h.

Color of background

Definition at line 69 of file AbstractGraphWidget.h.

Image onto which spikes and buffer are painted

Definition at line 27 of file AbstractGraphWidget.h.

Height of the image

Definition at line 45 of file AbstractGraphWidget.h.

Width of the image

Definition at line 42 of file AbstractGraphWidget.h.

Size of the label names in pixels

Definition at line 66 of file AbstractGraphWidget.h.

Color of labels

Definition at line 75 of file AbstractGraphWidget.h.

Minimum time step on the X axis

Definition at line 33 of file AbstractGraphWidget.h.

Number of time steps on the horizontal axis

Definition at line 30 of file AbstractGraphWidget.h.

Flag to indicate whether painter should redraw axes

Definition at line 48 of file AbstractGraphWidget.h.

Height of the widget

Definition at line 39 of file AbstractGraphWidget.h.

Width of the widget

Definition at line 36 of file AbstractGraphWidget.h.

Indent of X axis when minY is small or > 0

Definition at line 54 of file AbstractGraphWidget.h.

X axis tick length

Definition at line 51 of file AbstractGraphWidget.h.

Indent of Y axis

Definition at line 57 of file AbstractGraphWidget.h.

Y axis tick length

Definition at line 60 of file AbstractGraphWidget.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Friends Defines