Open Ephys GUI
 All Classes Functions Variables Pages
LfpViewer.h
1 /*
2  ------------------------------------------------------------------
3 
4  This file is part of the Open Ephys GUI
5  Copyright (C) 2012 Open Ephys
6 
7  ------------------------------------------------------------------
8 
9  This program is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  (at your option) any later version.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program. If not, see <http://www.gnu.org/licenses/>.
21 
22 */
23 #ifndef __LFPVIEWER_H_7FEACF46__
24 #define __LFPVIEWER_H_7FEACF46__
25 
26 #include "../../../JuceLibraryCode/JuceHeader.h"
27 #include "../Editors/Visualizer.h"
28 
29 #ifdef _WIN32
30 #include <windows.h>
31 #endif
32 
33 #if JUCE_WINDOWS
34 #include <gl/gl.h>
35 #include <gl/glu.h>
36 #elif JUCE_LINUX
37 #include <GL/gl.h>
38 #include <GL/glut.h>
39 #undef KeyPress
40 #elif JUCE_IPHONE
41 #include <OpenGLES/ES1/gl.h>
42 #include <OpenGLES/ES1/glext.h>
43 #elif JUCE_MAC
44 #include <GLUT/glut.h>
45 #endif
46 
47 #ifndef GL_BGRA_EXT
48 #define GL_BGRA_EXT 0x80e1
49 #endif
50 
51 /**
52  \deprecated
53 
54  --THIS FILE IS OBSOLETE, BUT REMAINS FOR REFERENCE PURPOSES--
55 
56 */
57 
58 class LfpViewer : public Renderer
59 {
60 public:
61  LfpViewer(AudioSampleBuffer* streamBuffer, MidiBuffer* eventBuffer, UIComponent* ui);
62  ~LfpViewer();
63  void renderOpenGL();
64  void newOpenGLContextCreated();
65  void mouseDown(const MouseEvent &e);
66 };
67 
68 
69 #endif // __LFPVIEWER_H_7FEACF46__