Open Ephys GUI
 All Classes Functions Variables Pages
ElectrodePlot.h
1 #ifndef ELECTRODE_PLOT_H
2 #define ELECTRODE_PLOT_H
3 
4 #if defined(__linux__)
5  #include <GL/glut.h>
6 #else
7  #include <GLUT/glut.h>
8 #endif
9 #include <list>
10 #include <math.h>
11 
12 #include "WaveAxes.h"
13 #include "BaseUIElement.h"
14 #include "PlotUtils.h"
15 #include "SimpleKeyEvent.h"
16 
17 
19 {
20 
21  bool enabled;
22 
23  bool limitsChanged;
24  double limits[1][2];
25 
26  WaveAxes axes;
27 
28 
29 
30  // void zoomAxes(int n, bool xdim, int zoomval);
31  // void zoomProjection (int n, bool xdim, int zoomval);
32  // void zoomWaveform (int n, bool xdim, int zoomval);
33 
34  // void panAxes(int n, bool xdim, int panval);
35  // void panProjection (int n, bool xdim, int panval);
36  // void panWaveform(int n, bool xdim, int panval);
37 
38  void initLimits();
39 
40 public:
41  ElectrodePlot();
42  ElectrodePlot(int x, int y,int w,int h);
43  ~ElectrodePlot();
44 
45  void initAxes();
46  void redraw();
47  void setEnabled(bool enabled);
48  bool getEnabled();
49  void setPosition(int,int,double,double);
50 
51  void getPreferredDimensions(double*, double*);
52 
53  int getNumberOfAxes();
54 
55  void mouseDown(int x, int y);
56 
57  void mouseDragX(int dx, bool shift, bool ctr);
58  void mouseDragY(int dy, bool shift, bool ctr);
59 
60  bool processKeyEvent(SimpleKeyEvent k);
61 
62  void processSpikeObject(SpikeObject s);
63 };
64 
65 
66 
67 #endif