]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/plotcurve.tex
Fixes for WinCE
[wxWidgets.git] / docs / latex / wx / plotcurve.tex
... / ...
CommitLineData
1%
2% automatically generated by HelpGen from
3% plot.h at 11/Feb/00 18:00:57
4%
5
6\section{\class{wxPlotCurve}}\label{wxplotcurve}
7
8The wxPlotCurve class represents a curve displayed in a \helpref{wxPlotWindow}{wxplotwindow}. It
9is a virtual curve, i.e. is acts only as an interface, leaving it to the programmer to care for
10how the values pairs are matched. wxPlotWindow and wxPlotCurve are designed to display large
11amounts of data, i.e. most typically data measured by some sort of machine.
12
13This class is abstract, i.e. you have to derive your own class and implement the pure
14virtual functions (\helpref{GetStartX()}{wxplotcurvegetstartx}, \helpref{GetEndX()}{wxplotcurvegetendx}
15and \helpref{GetY()}{wxplotcurvegety}).
16
17\wxheading{Derived from}
18
19\helpref{wxObject}{wxobject}
20
21\latexignore{\rtfignore{\wxheading{Members}}}
22
23\membersection{wxPlotCurve::wxPlotCurve}\label{wxplotcurvewxplotcurve}
24
25\func{}{wxPlotCurve}{\param{int }{offsetY}, \param{double }{startY}, \param{double }{endY}}
26
27Constructor assigning start values. See below for interpretation.
28
29\membersection{wxPlotCurve::GetEndX}\label{wxplotcurvegetendx}
30
31\func{wxInt32}{GetEndX}{\void}
32
33Must be overridden. This function should return the index of the last value
34of this curve, typically 99 if 100 values have been measured.
35
36\membersection{wxPlotCurve::GetEndY}\label{wxplotcurvegetendy}
37
38\func{double}{GetEndY}{\void}
39
40See \helpref{SetStartY}{wxplotcurvesetendy}.
41
42\membersection{wxPlotCurve::GetOffsetY}\label{wxplotcurvegetoffsety}
43
44\func{int}{GetOffsetY}{\void}
45
46Returns the vertical offset.
47\membersection{wxPlotCurve::GetY}\label{wxplotcurvegety}
48
49\func{double}{GetY}{\param{wxInt32 }{x}}
50
51Must be overridden. This function will return the actual Y value corresponding
52to the given X value. The x value is of an integer type because it is considered
53to be an index in row of measured values.
54
55\membersection{wxPlotCurve::GetStartX}\label{wxplotcurvegetstartx}
56
57\func{wxInt32}{GetStartX}{\void}
58
59Must be overridden. This function should return the index of the first value
60of this curve, typically zero.
61
62\membersection{wxPlotCurve::GetStartY}\label{wxplotcurvegetstarty}
63
64\func{double}{GetStartY}{\void}
65
66See \helpref{SetStartY}{wxplotcurvesetstarty}.
67
68\membersection{wxPlotCurve::SetEndY}\label{wxplotcurvesetendy}
69
70\func{void}{SetEndY}{\param{double }{endY}}
71
72The value returned by this function tells the plot window what the highest values
73in the curve will be so that a suitable scale can be found for the display. If
74the Y values in this curve are in the range of -1.5 to 0.5, this function should
75return 0.5 or maybe 1.0 for nicer aesthetics.
76
77\membersection{wxPlotCurve::SetOffsetY}\label{wxplotcurvesetoffsety}
78
79\func{void}{SetOffsetY}{\param{int }{offsetY}}
80
81When displaying several curves in one window, it is often useful to assign
82different offsets to the curves. You should call \helpref{wxPlotWindow::Move}{wxplotwindowmove}
83to set this value after you have added the curve to the window.
84
85\membersection{wxPlotCurve::SetStartY}\label{wxplotcurvesetstarty}
86
87\func{void}{SetStartY}{\param{double }{startY}}
88
89The value returned by this function tells the plot window what the lowest values
90in the curve will be so that a suitable scale can be found for the display. If
91the Y values in this curve are in the range of -1.5 to 0.5, this function should
92return -1.5 or maybe -2.0 for nicer aesthetics.
93