Numworks Epsilon
1.4.1
Graphing Calculator Operating System
|
#include <graph_view.h>
Public Member Functions | |
GraphView (Store *store, Shared::CurveViewCursor *cursor, Shared::BannerView *bannerView, View *cursorView) | |
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) | |
virtual void | reload () |
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 | |
Public Types inherited from Shared::CurveView | |
enum | Axis { Axis::Horizontal = 0, Axis::Vertical = 1 } |
typedef float(* | EvaluateModelWithParameter) (float t, void *model, void *context) |
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 11 of file graph_view.h.
Regression::GraphView::GraphView | ( | Store * | store, |
Shared::CurveViewCursor * | cursor, | ||
Shared::BannerView * | bannerView, | ||
View * | cursorView | ||
) |
Reimplemented from View.
Definition at line 16 of file graph_view.cpp.