|
Public Member Functions |
| WXMultiGraph (wxFrame *frame) |
virtual | ~WXMultiGraph () |
void | OnPaint (wxPaintEvent &event) |
void | OnMouse (wxMouseEvent &event) |
void | OnMouseWheel (wxMouseEvent &event) |
void | OnKeyDown (wxKeyEvent &event) |
unsigned long | AddGraph (const std::string &name) |
| Add a graph.
|
void | SetGraphData (const unsigned long id, const std::valarray< float > &vx, const std::valarray< float > &vy) |
| Set data for a given graph.
|
virtual void | DeleteGraph (const unsigned long id) |
| Remove graph.
|
void | AutoScale (const long id=-1, const bool xmin=true, const bool xmax=true, const bool ymin=true, const bool ymax=true) |
| Auto-scale graph, i.e.
|
void | OnUpdateUI (wxUpdateUIEvent &event) |
void | OnSize (wxSizeEvent &event) |
virtual void | UpdateDisplay () |
Private Member Functions |
void | Data2Screen (float &x, float &y) |
| Convert data to screen (pixel) coordinates.
|
void | Screen2Data (float &x, float &y) |
| Convert screen (pixel) to data coordinates.
|
Private Attributes |
std::map< unsigned long, GraphData > | mvData |
float | mMinX |
| The current min & max values along x and y.
|
float | mMaxX |
| The current min & max values along x and y.
|
float | mMinY |
| The current min & max values along x and y.
|
float | mMaxY |
| The current min & max values along x and y.
|
long | mLeft |
| The margins in pixels around the graph.
|
long | mRight |
| The margins in pixels around the graph.
|
long | mTop |
| The margins in pixels around the graph.
|
long | mBottom |
| The margins in pixels around the graph.
|
wxMenu * | mpPopUpMenu |
| Pop-up menu.
|
bool | mIsDragging |
| Are we within a dragging event ?
|
float | mDragX0 |
| dragging origin (in reduced coordinates)
|
float | mDragY0 |
| dragging origin (in reduced coordinates)
|
CrystMutex | mMutexData |
| Mutex for the data.
|
wxFrame * | mpParentFrame |
| parent frame
|