2014-11-15 23:41:41 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "PrimaryGLContext.h"
|
|
|
|
|
#include "Gradient.h"
|
|
|
|
|
|
|
|
|
|
#define NUM_WATERFALL_LINES 512
|
|
|
|
|
|
|
|
|
|
class SpectrumCanvas;
|
|
|
|
|
|
|
|
|
|
class SpectrumContext: public PrimaryGLContext {
|
|
|
|
|
public:
|
|
|
|
|
SpectrumContext(SpectrumCanvas *canvas, wxGLContext *sharedContext);
|
|
|
|
|
|
2015-01-04 17:11:20 -05:00
|
|
|
void Draw(std::vector<float> &points, long long freq, int bandwidth);
|
2014-11-15 23:41:41 -05:00
|
|
|
|
2015-03-01 13:07:09 -05:00
|
|
|
float getFloorValue() const;
|
|
|
|
|
void setFloorValue(float floorValue);
|
|
|
|
|
float getCeilValue() const;
|
|
|
|
|
void setCeilValue(float ceilValue);
|
|
|
|
|
|
2014-11-15 23:41:41 -05:00
|
|
|
private:
|
2014-12-28 05:13:46 -05:00
|
|
|
int fft_size;
|
2015-03-01 13:07:09 -05:00
|
|
|
float floorValue, ceilValue;
|
2014-11-15 23:41:41 -05:00
|
|
|
};
|