Numworks Epsilon
1.4.1
Graphing Calculator Operating System
|
#include <box_view.h>
Public Types | |
enum | Quantile : int { Quantile::None = -1, Quantile::Min = 0, Quantile::FirstQuartile = 1, Quantile::Median = 2, Quantile::ThirdQuartile = 3, Quantile::Max = 4 } |
Public Types inherited from Shared::CurveView | |
enum | Axis { Axis::Horizontal = 0, Axis::Vertical = 1 } |
typedef float(* | EvaluateModelWithParameter) (float t, void *model, void *context) |
Public Member Functions | |
BoxView (Store *store, Shared::BannerView *bannerView, Quantile *selectedQuantile) | |
void | reload () override |
Quantile | selectedQuantile () |
bool | selectQuantile (int selectedQuantile) |
void | drawRect (KDContext *ctx, KDRect rect) const override |
Public Member Functions inherited from Shared::CurveView | |
CurveView (CurveViewRange *curveViewRange=nullptr, CurveViewCursor *curveViewCursor=nullptr, BannerView *bannerView=nullptr, View *cursorView=nullptr, View *okView=nullptr) | |
bool | isMainViewSelected () const |
void | selectMainView (bool mainViewSelected) |
void | setCursorView (View *cursorView) |
void | setBannerView (View *bannerView) |
void | setOkView (View *okView) |
float | resolution () const |
Public Member Functions inherited from View | |
View () | |
virtual | ~View () |
View (const View &other)=delete | |
View (View &&other)=delete | |
View & | operator= (const View &other)=delete |
View & | operator= (View &&other)=delete |
void | resetSuperview () |
void | setSize (KDSize size) |
void | setFrame (KDRect frame) |
KDPoint | pointFromPointInView (View *view, KDPoint point) |
KDRect | bounds () const |
View * | subview (int index) |
virtual KDSize | minimalSizeForOptimalDisplay () const |
Additional Inherited Members | |
Protected Member Functions inherited from Shared::CurveView | |
void | setCurveViewRange (CurveViewRange *curveViewRange) |
virtual float | samplingRatio () const |
float | pixelToFloat (Axis axis, KDCoordinate p) const |
float | floatToPixel (Axis axis, float f) const |
void | drawLine (KDContext *ctx, KDRect rect, Axis axis, float coordinate, KDColor color, KDCoordinate thickness=1) const |
void | drawSegment (KDContext *ctx, KDRect rect, Axis axis, float coordinate, float lowerBound, float upperBound, KDColor color, KDCoordinate thickness=1) const |
void | drawDot (KDContext *ctx, KDRect rect, float x, float y, KDColor color, bool oversize=false) const |
void | drawGridLines (KDContext *ctx, KDRect rect, Axis axis, float step, KDColor color) const |
void | drawGrid (KDContext *ctx, KDRect rect) const |
void | drawAxes (KDContext *ctx, KDRect rect, Axis axis) const |
void | drawCurve (KDContext *ctx, KDRect rect, EvaluateModelWithParameter evaluation, void *model, void *context, KDColor color, bool colorUnderCurve=false, float colorLowerBound=0.0f, float colorUpperBound=0.0f, bool continuously=false) const |
void | drawHistogram (KDContext *ctx, KDRect rect, EvaluateModelWithParameter evaluation, void *model, void *context, float firstBarAbscissa, float barWidth, bool fillBar, KDColor defaultColor, KDColor highlightColor, float highlightLowerBound=INFINITY, float highlightUpperBound=-INFINITY) const |
void | computeLabels (Axis axis) |
void | drawLabels (KDContext *ctx, KDRect rect, Axis axis, bool shiftOrigin) const |
Protected Member Functions inherited from View | |
void | markRectAsDirty (KDRect rect) |
Protected Attributes inherited from Shared::CurveView | |
View * | m_bannerView |
CurveViewCursor * | m_curveViewCursor |
Protected Attributes inherited from View | |
KDRect | m_frame |
Static Protected Attributes inherited from Shared::CurveView | |
static constexpr KDCoordinate | k_labelMargin = 4 |
static constexpr KDCoordinate | k_okMargin = 10 |
static constexpr KDCoordinate | k_labelGraduationLength = 6 |
static constexpr int | k_maxNumberOfXLabels = CurveViewRange::k_maxNumberOfXGridUnits |
static constexpr int | k_maxNumberOfYLabels = CurveViewRange::k_maxNumberOfYGridUnits |
static constexpr int | k_externRectMargin = 2 |
Definition at line 12 of file box_view.h.
|
strong |
Enumerator | |
---|---|
None | |
Min | |
FirstQuartile | |
Median | |
ThirdQuartile | |
Max |
Definition at line 14 of file box_view.h.
Statistics::BoxView::BoxView | ( | Store * | store, |
Shared::BannerView * | bannerView, | ||
Quantile * | selectedQuantile | ||
) |
Definition at line 9 of file box_view.cpp.
Reimplemented from View.
Definition at line 46 of file box_view.cpp.
|
overridevirtual |
Reimplemented from Shared::CurveView.
Definition at line 18 of file box_view.cpp.
BoxView::Quantile Statistics::BoxView::selectedQuantile | ( | ) |
Definition at line 30 of file box_view.cpp.
bool Statistics::BoxView::selectQuantile | ( | int | selectedQuantile | ) |
Definition at line 34 of file box_view.cpp.