mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
There was a lot of code duplication.
I removed the initialization of xLabel{} and yLabels{} because those are
scratch buffers that shouldn't be accessed before being written to
anyway.
21 lines
468 B
C++
21 lines
468 B
C++
#ifndef REGRESSION_GRAPH_VIEW_H
|
|
#define REGRESSION_GRAPH_VIEW_H
|
|
|
|
#include "store.h"
|
|
#include "../constant.h"
|
|
#include "../shared/labeled_curve_view.h"
|
|
|
|
namespace Regression {
|
|
|
|
class GraphView : public Shared::LabeledCurveView {
|
|
public:
|
|
GraphView(Store * store, Shared::CurveViewCursor * cursor, Shared::BannerView * bannerView, Shared::CursorView * cursorView);
|
|
void drawRect(KDContext * ctx, KDRect rect) const override;
|
|
private:
|
|
Store * m_store;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|