|
Stimfit @PACKAGE_VERSION@
|
Handles drawing of traces and keyboard or mouse input. More...
#include <graph.h>


Public Member Functions | |
| wxStfGraph (wxView *v, wxStfChildFrame *frame, const wxPoint &pos, const wxSize &size, long style) | |
| Constructor. | |
| virtual void | OnDraw (wxDC &dc) |
| The central drawing function. Used for drawing to any output device, such as a printer or a screen. | |
| void | Snapshotwmf () |
| Copies the drawing to the clipboard as a windows metafile. | |
| void | OnMouseEvent (wxMouseEvent &event) |
| Handles mouse events. | |
| void | OnKeyDown (wxKeyEvent &event) |
| Handles keyboard input. | |
| void | ChangeTrace (std::size_t trace) |
| Change trace. | |
| void | OnNext () |
| Show and analyse next trace. | |
| void | OnPrevious () |
| Show and analyse previous trace. | |
| void | OnLast () |
| Show and analyse last trace. | |
| void | OnFirst () |
| Show and analyse first trace. | |
| void | OnUp () |
| Moves the traces up by 20 px. | |
| void | OnDown () |
| Moves the traces down by 20 px. | |
| void | OnRight () |
| Moves the traces right by 20 px. | |
| void | OnLeft () |
| Moves the traces left by 20 px. | |
| void | OnXenlhi () |
| Enlarges the x-scale by a factor of 2. | |
| void | OnXenllo () |
| Enlarges the x-scale by a factor of 1.1. | |
| void | OnXshrinklo () |
| Shrinks the x-scale by a factor of 1.1. | |
| void | OnXshrinkhi () |
| Shrinks the x-scale by a factor of 2. | |
| void | OnYenlhi () |
| Enlarges the y-scale by a factor of 2. | |
| void | OnYenllo () |
| Enlarges the y-scale by a factor of 1.1. | |
| void | OnYshrinklo () |
| Shrinks the y-scale by a factor of 1.1. | |
| void | OnYshrinkhi () |
| Shrinks the y-scale by a factor of 2. | |
| void | Ch2base () |
| Adjust y-positioning so that the baselines of channel 1 and 2 are at the same y-position. | |
| void | Ch2pos () |
| Adjust y-positioning so that channel 1 and 2 are at the same absolute y-position. | |
| void | Ch2zoom () |
| Adjust y-scale so that channel 1 and 2 have the same y-scale. | |
| void | Ch2basezoom () |
| Combines Ch2zoom() and Ch2base(). | |
| void | ChanScroll (int direction) |
| advance / decrement the active channel by one | |
| void | Fittowindow (bool refresh) |
| Fits the graph to the window. | |
| void | ClearEvents () |
| Destroys all event check boxes. | |
| void | set_isPrinted (bool value) |
| Set to true if the graph is drawn on a printer. | |
| void | set_printScale (double value) |
| Sets the printing scale to the specified value. | |
| void | set_printRect (wxRect value) |
| Sets the size of the printout to the epcified rectangle. | |
| void | set_noGimmicks (bool value) |
| Set to true if the results table and the cursors should be printed. | |
| void | set_downsampling (int value) |
| Prints every n-th point. | |
| bool | get_noGimmicks () const |
| Indicates whether everything (cursors, results table, etc.) is printed out. | |
| int | get_eventPos () const |
| Returns the y-position of a right click when in event-detection mode. | |
| double | get_plot_xmin () const |
| Returns x value of the left screen border. | |
| double | get_plot_xmax () const |
| Returns x value of the right screen border. | |
| double | get_plot_ymin () const |
| Returns y value of the bottom screen border. | |
| double | get_plot_ymax () const |
| Returns y value of the top screen border. | |
| double | get_plot_y2min () const |
| Returns y value of the bottom screen border for the reference channel. | |
| double | get_plot_y2max () const |
| Returns y value of the top screen border for the reference channel. | |
Public Attributes | |
| wxStfView * | view |
| Returns the current zoom struct. | |
Handles drawing of traces and keyboard or mouse input.
Derived from wxScrolledWindow, although no scrolling is implemented at this time. All the trace scaling and drawing happens here. Mouse and keyboard input is handled here as well.