Numworks Epsilon  1.4.1
Graphing Calculator Operating System
graph_view.h
Go to the documentation of this file.
1 #ifndef REGRESSION_GRAPH_VIEW_H
2 #define REGRESSION_GRAPH_VIEW_H
3 
4 #include <escher.h>
5 #include "store.h"
6 #include "../constant.h"
7 #include "../shared/curve_view.h"
8 
9 namespace Regression {
10 
11 class GraphView : public Shared::CurveView {
12 public:
13  GraphView(Store * store, Shared::CurveViewCursor * cursor, Shared::BannerView * bannerView, View * cursorView);
14  void drawRect(KDContext * ctx, KDRect rect) const override;
15 private:
16  char * label(Axis axis, int index) const override;
17  Store * m_store;
18  char m_xLabels[k_maxNumberOfXLabels][Poincare::PrintFloat::bufferSizeForFloatsWithPrecision(Constant::ShortNumberOfSignificantDigits)];
19  char m_yLabels[k_maxNumberOfYLabels][Poincare::PrintFloat::bufferSizeForFloatsWithPrecision(Constant::ShortNumberOfSignificantDigits)];
20 };
21 
22 }
23 
24 
25 #endif
static constexpr int ShortNumberOfSignificantDigits
Definition: constant.h:8
static constexpr int k_maxNumberOfXLabels
Definition: curve_view.h:37
Definition: rect.h:26
Definition: view.h:23
GraphView(Store *store, Shared::CurveViewCursor *cursor, Shared::BannerView *bannerView, View *cursorView)
void drawRect(KDContext *ctx, KDRect rect) const override
Definition: graph_view.cpp:16
static constexpr int k_maxNumberOfYLabels
Definition: curve_view.h:38