Open Ephys GUI
 All Classes Functions Variables Pages
Visualizer.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 
24 #ifndef __VISUALIZER_H_C5943EC1__
25 #define __VISUALIZER_H_C5943EC1__
26 
27 #include "../../../JuceLibraryCode/JuceHeader.h"
28 #include "OpenGLCanvas.h"
29 
30 class Visualizer : public OpenGLCanvas
31 
32 {
33 public:
34  Visualizer() {}
35  ~Visualizer() {}
36 
37  virtual void newOpenGLContextCreated() = 0;
38  virtual void renderOpenGL() = 0;
39 
40  virtual void refreshState() = 0;
41 
42  virtual void update() = 0;
43  virtual int getTotalHeight() = 0;
44 
45  virtual void beginAnimation() = 0;
46  virtual void endAnimation() = 0;
47 
48  virtual void setParameter(int, float) = 0;
49  virtual void setParameter(int, int, int, float) = 0;
50 
51 };
52 
53 
54 #endif // __VISUALIZER_H_C5943EC1__