Blame view

epsilon-master/apps/regression/graph_view.h 840 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  #ifndef REGRESSION_GRAPH_VIEW_H
  #define REGRESSION_GRAPH_VIEW_H
  
  #include <escher.h>
  #include "store.h"
  #include "../constant.h"
  #include "../shared/curve_view.h"
  
  namespace Regression {
  
  class GraphView : public Shared::CurveView {
  public:
    GraphView(Store * store, Shared::CurveViewCursor * cursor, Shared::BannerView * bannerView, View * cursorView, Responder * controller);
    void drawRect(KDContext * ctx, KDRect rect) const override;
  private:
    char * label(Axis axis, int index) const override;
    Store * m_store;
    char m_xLabels[k_maxNumberOfXLabels][Poincare::PrintFloat::bufferSizeForFloatsWithPrecision(Constant::ShortNumberOfSignificantDigits)];
    char m_yLabels[k_maxNumberOfYLabels][Poincare::PrintFloat::bufferSizeForFloatsWithPrecision(Constant::ShortNumberOfSignificantDigits)];
    Responder * m_controller;
  };
  
  }
  
  #endif