|
Public Member Functions |
| | TGraphDisplay (wxWindow *parent, int id=-1) |
| | Constructor.
|
| | ~TGraphDisplay () |
| | Destructor.
|
| void | init () |
| | Initialization.
|
| stringField | readTextfile (wxString filename) |
| | Converts a CSV file into s stringField.
|
| unsigned char * | readRawData (wxString filename, long &l) |
| | Reads raw binary data.
|
| void | setupPhotometerGraph (const stringField &sf) |
| | Reads CSV-based photometer data.
|
| void | setupFluorimeterGraph (const stringField &sf) |
| | Reads CSV-based fluorimeter data.
|
| void | setupXYpair (const stringField &sf) |
| | Reads plain XY-pair CSV data.
|
| void | setupIPCfile (wxString filename) |
| | Reads IPC data.
|
| void | setupRawFPLC (wxString filenamebase) |
| | EXPERIMENTAL Reads raw BioRad FPLC data.
|
| void | setupBioFormat (wxString filenamebase) |
| | EXPERIMENTAL Reads BIO FPLC format.
|
| void | setupBioCSVFormat (const stringField &sf) |
| | EXPERIMENTAL Reads BIO CSV FPLC format.
|
| void | setupDUF (wxString filenamebase) |
| | Reads Beckman DUF format.
|
| void | addNewGraph (const stringField &sf, wxString title, TGraphScale *sx, TGraphScale *sy, int startrow=0) |
| | Adds a TGraphData.
|
| void | addRawData (unsigned char *d, long l, wxString title) |
| void | addRawData2 (unsigned char *d, long l, wxString title) |
| wxString | tryall (wxString filename) |
| | Tries all formats, pre-selects the "best fit".
|
| void | SetupDummy () |
| | For testing only.
|
| bool | SetupFromFile (wxString filename) |
| | Calls tryall, display dialog, eventually opens file.
|
| void | SetZoom (int _zx, int _zy) |
| | Sets the zoom factor.
|
| void | UpdateDisplay () |
| | Refresh.
|
| void | AutoScale () |
| | Adjusts the scales to fit the graphs.
|
| void | drawit (wxDC &dc, int mode=GRAPH_DRAW_ALL) |
| | Draws the graphs and scales in the device context.
|
| void | showLegend (wxDC &dc) |
| | Draws the legend.
|
| void | showMiniature (wxDC &dc) |
| | Draws the miniature preview (in zoomed mode).
|
| void | showDraggingRect (wxDC &dc) |
| virtual void | OnCharHook (wxKeyEvent &event) |
| | Key event handler.
|
| virtual void | OnPaint (wxPaintEvent &event) |
| | Paint event handler.
|
| virtual void | OnEvent (wxMouseEvent &event) |
| | Mouse event handler.
|
| virtual void | OnSwapSides (wxCommandEvent &event) |
| | "Switch scales left/right or top/bottom" event handler
|
| virtual void | OnCopyAsImage (wxCommandEvent &event) |
| | "Copy as image" event handler
|
| virtual void | OnSaveAsImage (wxCommandEvent &event) |
| | "Save as image" event handler
|
Public Attributes |
| vector< TGraphScale * > | scales |
| | The scales.
|
| vector< TGraphData * > | data |
| | The graphs (data).
|
| TGraph * | g |
| | The calling TGraph.
|
| wxArrayString | scaleTypes |
| wxArrayString | colors |
| wxArrayString | styles |
Static Public Attributes |
| static wxColour | prettyColor = wxColour ( 0x99 , 0xCC , 0xFF ) |
| | A pretty blue.
|
Private Member Functions |
| bool | IsSetupComplete () |
| | Don't draw before setup is complete (divsion by zero and other ugliness).
|
| void | DrawIntoBitmap (wxBitmap &bmp) |
| | Draws the current display into a wxBitmap instead of the display (for copying and saving).
|
Private Attributes |
| bool | setupCompleted |
| | Is setup complete?
|
| TGraphScale * | old_scale |
| | The last scale.
|
| TGraphData * | old_data |
| | The last graph.
|
| wxRect | inner |
| | The place where the data is drawn.
|
| wxRect | lr |
| | The legend rectangle.
|
| int | zx |
| int | zy |
| wxPoint | mouse_pos |
| wxRect | draggingRect |