Numworks Epsilon  1.4.1
Graphing Calculator Operating System
graph_view.h
Go to the documentation of this file.
1 #ifndef GRAPH_GRAPH_VIEW_H
2 #define GRAPH_GRAPH_VIEW_H
3 
4 #include "../../shared/function_graph_view.h"
5 #include "../cartesian_function_store.h"
6 
7 namespace Graph {
8 
10 public:
11 
13  Shared::CurveViewCursor * cursor, Shared::BannerView * bannerView, View * cursorView);
14  void reload() override;
15  void drawRect(KDContext * ctx, KDRect rect) const override;
16  void drawTangent(bool tangent) { m_tangent = tangent; }
17  /* We override setAreaHighlightColor to make it reload nothing as the
18  * highlightColor and the non-highlightColor are identical in the graph view
19  * of the application graph. We thereby avoid to uselessly reload some part
20  * of the graph where the area under the curve is colored. */
21  void setAreaHighlightColor(bool highlightColor) override {};
22 private:
23  CartesianFunctionStore * m_functionStore;
24  bool m_tangent;
25 };
26 
27 }
28 
29 #endif
void drawRect(KDContext *ctx, KDRect rect) const override
Definition: graph_view.cpp:24
void reload() override
Definition: graph_view.cpp:16
Definition: app.cpp:9
void drawTangent(bool tangent)
Definition: graph_view.h:16
Definition: rect.h:26
Definition: view.h:23
void setAreaHighlightColor(bool highlightColor) override
Definition: graph_view.h:21
GraphView(CartesianFunctionStore *functionStore, Shared::InteractiveCurveViewRange *graphRange, Shared::CurveViewCursor *cursor, Shared::BannerView *bannerView, View *cursorView)