1 #ifndef PROJECTION_AXES_H_
2 #define PROJECTION_AXES_H_
4 #define GL_GLEXT_PROTOTYPES
12 #include "BaseUIElement.h"
13 #include "../SpikeObject.h"
14 #include "PlotUtils.h"
15 #include "GenericAxes.h"
18 #define AMP_BUFF_MAX_SIZE 50000
22 GLfloat pointColor[3];
25 int ampBuffer[2][AMP_BUFF_MAX_SIZE];
33 void drawProjectionGrid(
int thold,
int gain);
34 void calcWaveformPeakIdx(
int,
int,
int*,
int*);
39 void drawSpikesToTexture(
bool allSpikes);
40 void drawTexturedQuad();
41 void plotOldSpikes(
bool allSpikes);
42 void plotNewestSpike();
59 void validateTexture();
61 bool allSpikesNextRender;
71 void setPosition(
int,
int,
int,
int);
74 void setPointColor(GLfloat r, GLfloat g, GLfloat b);
75 void setGridColor(GLfloat, GLfloat, GLfloat);
78 void invalidateTexture();
84 bool convertLabelUnits;
89 #endif // PROJECTION_AXES_H_