Open Ephys GUI
 All Classes Functions Variables Pages
WaveAxes.h
1 #ifndef WAVE_AXES_H
2 #define WAVE_AXES_H
3 
4 #if defined(__linux__)
5  #include <GL/glut.h>
6 #else
7  #include <GLUT/glut.h>
8 #endif
9 #include <stdlib.h>
10 #include "BaseUIElement.h"
11 #include "../SpikeObject.h"
12 #include "PlotUtils.h"
13 #include "GenericAxes.h"
14 
15 
16 class WaveAxes: public GenericAxes{
17 
18  GLfloat waveColor[3];
19  GLfloat thresholdColor[3];
20  GLfloat gridColor[3];
21 
22 
23  void drawWaveformGrid(int thold, int gain);
24 
25 protected:
26  void plot();
27 
28 
29 public:
30  WaveAxes();
31  WaveAxes(int x, int y, double w, double h, int t);
32 
33  void updateSpikeData(SpikeObject s);
34 
35  void setWaveformColor(GLfloat r, GLfloat g, GLfloat b);
36  void setThresholdColor(GLfloat r, GLfloat g, GLfloat b);
37  void setGridColor(GLfloat, GLfloat, GLfloat);
38 
39  void redraw();
40 
41  bool drawWaveformLine;
42  bool drawWaveformPoints;
43  bool overlay;
44  bool drawGrid;
45  bool convertLabelUnits;
46 
47 };
48 
49 
50 
51 #endif