Numworks Epsilon  1.4.1
Graphing Calculator Operating System
histogram_view.h
Go to the documentation of this file.
1 #ifndef STATISTICS_HISTOGRAM_VIEW_H
2 #define STATISTICS_HISTOGRAM_VIEW_H
3 
4 #include <escher.h>
5 #include "store.h"
6 #include "../constant.h"
7 #include "../shared/curve_view.h"
8 
9 namespace Statistics {
10 
12 public:
13  HistogramView(Store * store, Shared::BannerView * bannerView);
14  void reload() override;
15  void drawRect(KDContext * ctx, KDRect rect) const override;
16  void setHighlight(float start, float end);
17 private:
18  char * label(Axis axis, int index) const override;
19  Store * m_store;
20  char m_labels[k_maxNumberOfXLabels][Poincare::PrintFloat::bufferSizeForFloatsWithPrecision(Constant::ShortNumberOfSignificantDigits)];
21  static float EvaluateHistogramAtAbscissa(float abscissa, void * model, void * context);
22  float m_highlightedBarStart;
23  float m_highlightedBarEnd;
24 };
25 
26 }
27 
28 
29 #endif
const SettingsMessageTree model
void drawRect(KDContext *ctx, KDRect rect) const override
static constexpr int ShortNumberOfSignificantDigits
Definition: constant.h:8
HistogramView(Store *store, Shared::BannerView *bannerView)
void start()
Definition: rt0.cpp:31
static constexpr int k_maxNumberOfXLabels
Definition: curve_view.h:37
Definition: rect.h:26
void setHighlight(float start, float end)