#include <TGraph.h>
Public Member Functions | |
TGraphData (TGraphDisplay *d=NULL) | |
Constructor. | |
void | Add (float x, float y) |
Add a XY pair. | |
void | SetScales (TGraphScale *_sx, TGraphScale *_sy) |
Assign scales to this gprah. | |
void | AutoScale () |
Size scales to (at least) fit the data in this graph. | |
unsigned long | GetCount () |
Returns the number of XY pairs. | |
int | Distance (const wxPoint &pt) |
Returns the minimum distance of the given point to the graph curve. | |
void | drawit (wxDC &dc) |
Draws the graph in the given drawing context. | |
void | DrawSymbol (wxDC &dc, wxString symbol, int x, int y, int size=4) |
Draws a point symbol (if any). | |
Public Attributes | |
wxString | name |
Name of the graph. | |
wxString | pointStyle |
Style of the point (used in DrawSymbol). | |
floatArray | dx |
floatArray | dy |
TGraphDisplay * | display |
TGraphScale * | sx |
TGraphScale * | sy |
wxColour | col |
The color of this graph. | |
vector< wxPoint > | drawn |
Cache of last drawn points in pixels. | |
bool | selected |
Is this graph selected (by mouse)? |
|
Constructor.
|
|
Add a XY pair.
|
|
Size scales to (at least) fit the data in this graph.
|
|
Returns the minimum distance of the given point to the graph curve.
|
|
Draws the graph in the given drawing context.
|
|
Draws a point symbol (if any).
|
|
Returns the number of XY pairs.
|
|
Assign scales to this gprah.
|
|
The color of this graph.
|
|
|
|
Cache of last drawn points in pixels.
|
|
|
|
|
|
Name of the graph.
|
|
Style of the point (used in DrawSymbol).
|
|
Is this graph selected (by mouse)?
|
|
|
|
|