Open Ephys GUI
 All Classes Functions Variables Pages
GenericAxes.h
1 #ifndef GENERIC_AXES_H_
2 #define GENERIC_AXES_H_
3 
4 
5 #if defined(__linux__)
6  #include <GL/glut.h>
7 #else
8  #include <GLUT/glut.h>
9 #endif
10 #include <stdlib.h>
11 #include <FTGL/ftgl.h>
12 #include "../../../../JuceLibraryCode/JuceHeader.h"
13 
14 #include "../SpikeObject.h"
15 
16 #include "BaseUIElement.h"
17 #include "PlotUtils.h"
18 
19 
20 class GenericAxes: public BaseUIElement{
21 
22 protected:
23  double xlims[2];
24  double ylims[2];
25  SpikeObject s;
26 
27  bool gotFirstSpike;
28 
29  int type;
30  virtual void plot(){}
31 
32  FTPixmapFont* font;
33  void loadFont();
34 
35 
36 public:
37  GenericAxes();
38  GenericAxes(int x, int y, double w, double h, int t);
39  ~GenericAxes();
40 
41  void updateSpikeData(SpikeObject s);
42 
43  virtual void redraw(){}
44 
45  void setXLims(double xmin, double xmax);
46  void getXLims(double *xmin, double *xmax);
47  void setYLims(double ymin, double ymax);
48  void getYLims(double *ymin, double *ymax);
49 
50  void setType(int type);
51  int getType();
52 
53 
54  void setPosition(int,int,double,double);
55 
56 };
57 
58 
59 
60 #endif