|
Public Member Functions |
| TGraphScale (float _min=0, float _max=0, bool _horizontal=false, bool _left=true, wxString _name=_T(""), wxString _unit=_T(""), wxColour _col=*wxBLACK, wxString _type=_T("linear")) |
| Constructor.
|
int | GetWidth () |
| Returns height/width in pixels.
|
void | drawit (wxDC &dc, wxRect &r, wxRect &inner) |
| Draws the scale, adjusts the inner rectangle.
|
void | DrawMark (wxDC &dc, float p, wxRect &ir, wxString text, bool big=false) |
| Draws the red marker for cursor position.
|
int | GetRealCoord (float f, wxRect &inner) |
| Converts float value to pixel.
|
float | GetVirtualCoordinate (int i, wxRect &inner) |
| Converts pixel to float.
|
wxRect | CalcInternalRect (wxRect &r) |
| Returns the internal rectangle.
|
void | Drag (int delta) |
| Drags the scale into a direction (pixel).
|
float | GetTotalWidth () |
| Returns the height/width in arb. units.
|
float | GetVisibleWidth () |
| Returns the visible height/width in arb. units.
|
Public Attributes |
wxRect | outline |
wxRect | last_inner |
float | min |
float | max |
float | top |
float | bottom |
bool | horizontal |
bool | left |
bool | selected |
wxString | name |
wxString | unit |
wxString | type |
wxColour | col |
int | mark |
bool | show_mark |