|
Public Slots |
void | nextExpression () |
void | prevExpression () |
void | setDrawConnected (bool b) |
void | setShowCurrentExpression (bool state) |
void | setTrace (bool) |
void | slotNextFrame () |
Signals |
void | animationValueChanged (double) |
Public Methods |
| ExpressionGraph (QWidget *parent=0, const char *name=0) |
| ~ExpressionGraph () |
void | load_key (const char *key, const char *value) |
void | addExpression (const Expression &) |
| Adds and thus graphs the expression.
|
void | removeExpression (unsigned int index) |
| Removes the expression at the given index.
|
unsigned int | getCurrentExpressionIndex () |
void | setCurrentExpressionIndex (int i) |
Expression | getExpression (unsigned int i) const |
unsigned int | expressionCount () |
virtual void | print (QPrinter *) |
| Prints graph as is.
|
void | setAngle (int m) |
int | getAngle () const |
bool | isTracing () const |
bool | isDrawConnected () const |
void | exportAsImage (const QString &file, const QString &fileType) |
| Saves the graph as an image.
|
void | getPixmap (QPixmap &pm) |
void | onlyShowActive (bool b) |
void | setDisplayExpressionText (bool b) |
Protected Methods |
virtual int | setXYForTrace (const double, const double, double *, double *, Expression &) |
virtual void | drawExpression (QPainter *, Expression &expression)=0 |
void | drawExpressionAt (QPainter *painter, int i) |
virtual void | putUndefinedMessage (double x, double y) |
virtual unsigned int | var_count () |
virtual void | drawAfterAxis (QPainter *) |
virtual const char * | independent_vars ()=0 |
| Returns a list of independent variables for the expression which, when there are more than one, are seperated by commas.
|
virtual const char * | dependent_var (int i=0)=0 |
| Returns the dependent variable.
|
virtual double | traceDepX (double d) |
virtual double | traceDepY (double d) |
void | reparseAll () |
FungParser * | getParsedCurrentExpression (int i=0) |
| Returns a pointer to a FungParser object which has the current expression parsed.
|
int | parseExpression (std::string &expression, FungParser *fp, int i=0) |
| Returns a pointer to a FungParser object which has the expression at the given index parsed.
|
bool | isValidExpression (const Expression &, std::string *errorMsg=0) |
void | paintEvent (QPaintEvent *) |
void | mouseMoveEvent (QMouseEvent *) |
virtual void | nextFrameReady () |
| Classes that implement this class need to implement this function.
|
Friends |
class | MathFunction |