2017-01-02 21:07:43 -05:00
|
|
|
// Copyright (c) Charles J. Cliffe
|
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
|
2015-08-09 12:51:01 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "GLPanel.h"
|
|
|
|
|
|
|
|
class ScopePanel : public GLPanel {
|
|
|
|
|
|
|
|
public:
|
|
|
|
typedef enum ScopeMode { SCOPE_MODE_Y, SCOPE_MODE_2Y, SCOPE_MODE_XY } ScopeMode;
|
|
|
|
|
|
|
|
ScopePanel();
|
|
|
|
|
|
|
|
void setMode(ScopeMode scopeMode);
|
2015-11-29 13:35:12 -05:00
|
|
|
ScopeMode getMode();
|
2015-08-09 12:51:01 -04:00
|
|
|
void setPoints(std::vector<float> &points);
|
|
|
|
|
2015-08-10 00:33:31 -04:00
|
|
|
protected:
|
|
|
|
void drawPanelContents();
|
|
|
|
|
|
|
|
private:
|
2015-08-09 12:51:01 -04:00
|
|
|
std::vector<float> points;
|
|
|
|
ScopeMode scopeMode;
|
|
|
|
GLPanel bgPanel;
|
|
|
|
GLPanel bgPanelStereo[2];
|
|
|
|
};
|