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
9
class
GraphView
:
public
Shared::FunctionGraphView
{
10
public
:
11
12
GraphView
(
CartesianFunctionStore
* functionStore,
Shared::InteractiveCurveViewRange
* graphRange,
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
Graph::CartesianFunctionStore
Definition:
cartesian_function_store.h:11
Graph::GraphView::drawRect
void drawRect(KDContext *ctx, KDRect rect) const override
Definition:
graph_view.cpp:24
Graph::GraphView::reload
void reload() override
Definition:
graph_view.cpp:16
Shared::FunctionGraphView
Definition:
function_graph_view.h:12
Graph::GraphView
Definition:
graph_view.h:9
Shared::BannerView
Definition:
banner_view.h:8
Graph
Definition:
app.cpp:9
Shared::CurveViewCursor
Definition:
curve_view_cursor.h:6
Graph::GraphView::drawTangent
void drawTangent(bool tangent)
Definition:
graph_view.h:16
KDContext
Definition:
context.h:8
Shared::InteractiveCurveViewRange
Definition:
interactive_curve_view_range.h:11
KDRect
Definition:
rect.h:26
View
Definition:
view.h:23
Graph::GraphView::setAreaHighlightColor
void setAreaHighlightColor(bool highlightColor) override
Definition:
graph_view.h:21
Graph::GraphView::GraphView
GraphView(CartesianFunctionStore *functionStore, Shared::InteractiveCurveViewRange *graphRange, Shared::CurveViewCursor *cursor, Shared::BannerView *bannerView, View *cursorView)
epsilon
apps
graph
graph
graph_view.h
Generated by
1.8.14