24 #ifndef SPIKEDISPLAYCANVAS_H_
25 #define SPIKEDISPLAYCANVAS_H_
27 #include "../../../JuceLibraryCode/JuceHeader.h"
29 #include "../SpikeDisplayNode.h"
30 #include "SpikePlotting/ElectrodePlot.h"
31 #include "SpikePlotting/StereotrodePlot.h"
32 #include "SpikePlotting/TetrodePlot.h"
33 #include "SpikeObject.h"
35 #include "Visualizer.h"
46 #define MAX_NUMBER_OF_SPIKE_SOURCES = 128;
56 void newOpenGLContextCreated();
59 void processSpikeEvents();
61 void beginAnimation();
68 void setParameter(
int,
float);
69 void setParameter(
int,
int,
int,
float);
71 void panPlot(
int,
int,
bool);
72 void zoomPlot(
int,
int,
bool);
77 MidiBuffer* spikeBuffer;
81 bool plotsInitialized;
87 Array<BaseUIElement*> plots;
93 Array<int> numChannelsPerPlot;
105 void drawPlotTitle(
int chan);
118 int getTotalHeight();
122 int nChannels[MAX_NUMBER_OF_SPIKE_CHANNELS];
124 void initializeSpikePlots();
125 void repositionSpikePlots();
127 void disablePointSmoothing();
128 void canvasWasResized();
129 void mouseDownInCanvas(
const MouseEvent& e);
132 void mouseUpInCanvas(
const MouseEvent& e);
133 void mouseWheelMoveInCanvas(
const MouseEvent&,
float,
float);
141 #endif // SPIKEDISPLAYCANVAS_H_