Numworks Epsilon  1.4.1
Graphing Calculator Operating System
law_curve_view.h
Go to the documentation of this file.
1 #ifndef PROBABILITY_LAW_CURVE_VIEW_H
2 #define PROBABILITY_LAW_CURVE_VIEW_H
3 
4 #include "../shared/curve_view.h"
5 #include "../constant.h"
6 #include "law/law.h"
7 #include "calculation/calculation.h"
8 #include <escher.h>
9 #include <poincare.h>
10 
11 namespace Probability {
12 
14 public:
15  LawCurveView(Law * law, Calculation * calculation);
16  void reload() override;
17  void drawRect(KDContext * ctx, KDRect rect) const override;
18 protected:
19  char * label(Axis axis, int index) const override;
20 private:
21  char m_labels[k_maxNumberOfXLabels][Poincare::PrintFloat::bufferSizeForFloatsWithPrecision(Constant::ShortNumberOfSignificantDigits)];
22  static float EvaluateAtAbscissa(float abscissa, void * model, void * context);
23  Law * m_law;
24  Calculation * m_calculation;
25 };
26 
27 }
28 
29 #endif
const SettingsMessageTree model
static constexpr int ShortNumberOfSignificantDigits
Definition: constant.h:8
LawCurveView(Law *law, Calculation *calculation)
static constexpr int k_maxNumberOfXLabels
Definition: curve_view.h:37
Definition: rect.h:26
void drawRect(KDContext *ctx, KDRect rect) const override
char * label(Axis axis, int index) const override