2 % automatically generated by HelpGen from
3 % plot.h at 11/Feb/00 18:00:57
6 \section{\class{wxPlotWindow
}}\label{wxplotwindow
}
8 wxPlotWindow is a specialized window designed to display data that typically has
9 been measured by machines, i.e. that may have thousands of values. One example of
10 such data would be the well known ECG measuring the electrical activity of your
11 heart: the measuring device will produce thousands of values per minute, several
12 measurements are done simultanously and you might want to have a look at parts
13 of the curves, enlarging them or scrolling from one position to another. Note
14 that this window is not useful for real-time measuring or for displaying charts
17 The wxPlotWindow interacts with program using events, for example when clicking
18 or double clicking on a curve or when selecting one by clicking on it (which
19 can be vetoed). Future versions will hopefully feature selecting values or
20 sections of the displayed curves etc.
22 \wxheading{Derived from
}
24 \helpref{wxScrolledWindow
}{wxscrolledwindow
}\\
25 \helpref{wxPanel
}{wxpanel
}\\
26 \helpref{wxWindow
}{wxwindow
}\\
27 \helpref{wxEvtHandler
}{wxevthandler
}\\
28 \helpref{wxObject
}{wxobject
}
30 \wxheading{Window styles
}
32 \begin{twocollist
}\itemsep=
0pt
33 \twocolitem{\windowstyle{wxPLOT
\_BUTTON\_MOVE}}{Display buttons to allao moving individual curves up or down.
}
34 \twocolitem{\windowstyle{wxPLOT
\_BUTTON\_ENLARGE}}{Display buttons to allow enlarging individual curves vertically.
}
35 \twocolitem{\windowstyle{wxPLOT
\_BUTTON\_ZOOM}}{Display all buttons.
}
36 \twocolitem{\windowstyle{wxPLOT
\_BUTTON\_ZOOM}}{Display buttons to allow zooming all curves horizontally.
}
37 \twocolitem{\windowstyle{wxPLOT
\_Y\_AXIS}}{Display an Y axis to the left of the drawing area.
}
38 \twocolitem{\windowstyle{wxPLOT
\_X\_AXIS}}{Display a X axis at the bottom of the drawing area.
}
39 \twocolitem{\windowstyle{wxPLOT
\_DEFAULT}}{All of the above options.
}
42 \latexignore{\rtfignore{\wxheading{Members
}}}
44 \membersection{wxPlotWindow::wxPlotWindow
}\label{wxplotwindowwxplotwindow
}
46 \func{}{wxPlotWindow
}{\void}
48 \func{}{wxPlotWindow
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxPoint\&
}{pos
},
\param{const wxSize\&
}{size
},
\param{int
}{flags = wxPLOT
\_DEFAULT}}
52 \membersection{wxPlotWindow::
\destruct{wxPlotWindow
}}\label{wxplotwindowdtor
}
54 \func{}{\destruct{wxPlotWindow
}}{\void}
56 The destructor will not delete the curves associated to the window.
58 \membersection{wxPlotWindow::Add
}\label{wxplotwindowadd
}
60 \func{void
}{Add
}{\param{wxPlotCurve*
}{curve
}}
62 Add a curve to the window.
64 \membersection{wxPlotWindow::GetCount
}\label{wxplotwindowgetcount
}
66 \func{size
\_t}{GetCount
}{\void}
68 Returns number of curves.
70 \membersection{wxPlotWindow::GetAt
}\label{wxplotwindowgetat
}
72 \func{wxPlotCurve*
}{GetAt
}{\param{size
\_t }{n
}}
76 \membersection{wxPlotWindow::SetCurrent
}\label{wxplotwindowsetcurrent
}
78 \func{void
}{SetCurrent
}{\param{wxPlotCurve*
}{current
}}
80 Make one curve the current curve. This will emit a wxPlotEvent.
82 \membersection{wxPlotWindow::GetCurrent
}\label{wxplotwindowgetcurrent
}
84 \func{wxPlotCurve*
}{GetCurrent
}{\void}
86 Returns a pointer to the current curve, or NULL.
88 \membersection{wxPlotWindow::Delete
}\label{wxplotwindowdelete
}
90 \func{void
}{Delete
}{\param{wxPlotCurve*
}{curve
}}
92 Removes a curve from the window and delete is on screen. This does not
93 delete the actual curve. If the curve removed was the current curve,
94 the current curve will be set to NULL.
96 \membersection{wxPlotWindow::Move
}\label{wxplotwindowmove
}
98 \func{void
}{Move
}{\param{wxPlotCurve*
}{curve
},
\param{int
}{pixels
\_up}}
100 Move the curve
{\tt curve
} up by
{\tt pixels
\_up} pixels. Down if the
103 \membersection{wxPlotWindow::Enlarge
}\label{wxplotwindowenlarge
}
105 \func{void
}{Enlarge
}{\param{wxPlotCurve*
}{curve
},
\param{double
}{factor
}}
107 Changes the representation of the given curve. A
{\tt factor
} of more than
108 one will stretch the curve vertically. The Y axis will change accordingly.
110 \membersection{wxPlotWindow::SetUnitsPerValue
}\label{wxplotwindowsetunitspervalue
}
112 \func{void
}{SetUnitsPerValue
}{\param{double
}{upv
}}
114 This sets the virtual untis per value. Normally, you will not be interested in
115 what measured value you see, but what it stands for. If you want to display seconds
116 on the X axis and the measuring device produced
50 values per second, set this
117 value to
50. This will affect all curves being displayed.
119 \membersection{wxPlotWindow::GetUnitsPerValue
}\label{wxplotwindowgetunitspervalue
}
121 \func{double
}{GetUnitsPerValue
}{\void}
123 See
\helpref{SetUnitsPerValue
}{wxplotwindowsetunitspervalue
}.
125 \membersection{wxPlotWindow::SetZoom
}\label{wxplotwindowsetzoom
}
127 \func{void
}{SetZoom
}{\param{double
}{zoom
}}
129 This functions zooms all curves in their horizontal dimension. The X axis will
130 be changed accordingly.
132 \membersection{wxPlotWindow::GetZoom
}\label{wxplotwindowgetzoom
}
134 \func{double
}{GetZoom
}{\void}
136 See
\helpref{SetZoom
}{wxplotwindowsetzoom
}.
138 \membersection{wxPlotWindow::RedrawEverything
}\label{wxplotwindowredraweverything
}
140 \func{void
}{RedrawEverything
}{\void}
142 Helper function which redraws both axes and the central area.
144 \membersection{wxPlotWindow::RedrawXAxis
}\label{wxplotwindowredrawxaxis
}
146 \func{void
}{RedrawXAxis
}{\void}
148 Helper function which redraws the X axis.
150 \membersection{wxPlotWindow::RedrawYAxis
}\label{wxplotwindowredrawyaxis
}
152 \func{void
}{RedrawYAxis
}{\void}
154 Helper function which redraws the Y axis.