Beispiel #1
0
void SpikeDisplayCanvas::renderOpenGL()
{
	//if(!plotsInitialized)
	//	initializeSpikePlots();

	glClearColor (0.667, 0.698, 0.718, 1.0);
	glClear(GL_COLOR_BUFFER_BIT); // clear buffers to preset values

	// Get Spikes from the processor
	// Iterate through each spike, passing them individually to the appropriate plots and calling redraw before moving on to the next spike
	 processSpikeEvents();

	 for (int i = 0; i < plots.size(); i++)
	 {
	 	plots[i]->redraw();
	 	drawPlotTitle(i);
	 }

	drawScrollBars();
 	
}
Beispiel #2
0
void SpikeDisplayCanvas::refresh()
{
    processSpikeEvents();

    repaint();
}