|
Public Slots |
|
int | setAScale (double d) |
|
int | setRScale (double d) |
|
void | setGrid (bool) |
|
void | setAxis (bool) |
|
void | setGridNum (bool) |
|
void | setScale (bool) |
|
void | setXZoomFactor (int) |
|
void | setYZoomFactor (int) |
|
void | setAxisColor (const QColor &) |
|
void | setGridColor (const QColor &) |
|
void | setBackgroundColor (const QColor &) |
|
void | setScaleColor (const QColor &) |
|
void | zoomIn () |
|
void | zoomOut () |
|
void | setAxisWidth (int) |
|
void | zoomStd () |
|
void | zoomBox () |
Signals |
|
void | dimensionsChanged (const GraphEvent &) |
|
void | activeCoordinateChanged (const QString &, const QString &=QString(), const QString &=QString()) |
|
void | infoMessageReady (const QString &) |
Public Methods |
|
| BasicGraph (QWidget *parent=0, const char *name=0) |
|
virtual | ~BasicGraph () |
|
virtual void | load_key (const char *key, const char *value) |
| QColor | axisColor () const |
| QColor | gridColor () const |
| QColor | backgroundColor () const |
| QColor | scaleColor () const |
| virtual void | print (QPrinter *) |
| | Prints graph as is.
|
|
int | setXMin (double xMin) |
| | Sets the minimum x bounds.
|
|
int | setXMax (double xMax) |
| | Sets the maximum x bounds.
|
| int | setXScale (double xScale) |
| | Sets the scale on the x direction.
|
|
int | setYMin (double yMin) |
| | Sets the minimum y bounds.
|
|
int | setYMax (double yMax) |
| | Sets the maximum y bounds.
|
| int | setYScale (double yScale) |
| | Sets the scale on the x direction.
|
| double | getXMin () const |
| double | getXMax () const |
| double | getYMin () const |
| double | getYMax () const |
| double | getXScale () const |
| double | getYScale () const |
| double | getRScale () const |
| double | getAScale () const |
| bool | getAxisState () const |
| bool | getGridState () const |
| bool | getScaleState () const |
| int | getXZoomFactor () const |
| int | getYZoomFactor () const |
| double | getMouseX () const |
| double | getMouseY () const |
|
QPoint | getMousePoint () const |
| int | setRange (double xMin, double xMax, double yMin, double yMax) |
| | Sets the x and y minimum and maximum bounds all in one call.
|
|
virtual void | setSnapToGrid (bool b) |
|
virtual bool | isSnapToGrid () const |
| virtual void | installMathFunctions () |
| | Implement this function to install any MathFunction's to a specific class.
|
|
virtual int | execMathFunction (const char *id) |
| void | offscreenResize (int width, int height) |
| | Resizes the on- and off-screen buffer of the graph.
|
Protected Methods |
| void | setMouseX (double x_coordiniate, bool snapToGrid=true) |
| | Sets the x-coordinate at which you wish the graph to think the mouse is at to the value in "x_coordinate".
|
| void | setMouseY (double y_coordiniate, bool snapToGrid=true) |
| | Sets the y-coordinate at which you wish the graph to think the mouse is at to the value in "y_coordinate".
|
|
virtual void | drawAfterAxis (QPainter *) |
|
virtual double | snapIntervalX () const |
|
virtual double | snapIntervalY () const |
|
virtual double | startSnap () const |
|
virtual void | updateCoords () |
|
void | paint (QPainter *) |
|
void | setCoordinateStyle (int i) |
|
double | toGraphXCoord (double) const |
|
double | toGraphYCoord (double) const |
|
int | toPixelXCoord (double) const |
|
int | toPixelYCoord (double) const |
|
void | updateGraph () |
|
void | emitDimensionsChanged () |
|
void | paintEvent (QPaintEvent *) |
|
void | resizeEvent (QResizeEvent *) |
|
void | mouseDoubleClickEvent (QMouseEvent *) |
|
void | mouseMoveEvent (QMouseEvent *) |
|
void | mousePressEvent (QMouseEvent *) |
|
void | mouseReleaseEvent (QMouseEvent *) |
Protected Attributes |
|
double | xMin |
|
double | xMax |
|
double | xScale2 |
|
double | yMin |
|
double | yMax |
|
double | yScale2 |
|
double | xScale |
|
double | yScale |
|
double | mouseX |
|
double | mouseY |
|
int | xZoom |
|
int | yZoom |
|
int | axisWidth |
|
QFont | graphFont |
|
QFont | scaleFont |
|
QPainter * | p |
|
QPixmap * | buffer |
Friends |
|
class | MathFunction |