|
Public Types |
typedef std::vector< std::vector<
Cartesian3DCoord > > | Cartesian3DCoord2DVector |
Public Slots |
void | setResolution (int percent) |
| Sets the resolution of the graph to the specified percent of possible resolution.
|
int | getResolution () const |
void | nextExpression () |
| Makes the next expression active.
|
void | prevExpression () |
| Makes the previous expression active.
|
void | setShowCurrentExpression (bool state) |
void | slotNextFrame () |
Signals |
void | animationValueChanged (double) |
Public Methods |
| GLExpressionGraph (QWidget *parent=0, const char *name=0) |
| ~GLExpressionGraph () |
virtual void | load_key (const char *key, const char *value) |
void | setAngle (int m) |
int | getAngle () const |
void | addExpression (const Expression &) |
void | removeExpression (unsigned int) |
Expression | getExpression (unsigned int i) const |
int | getCurrentExpressionIndex () const |
void | setCurrentExpressionIndex (int i) |
void | setDrawConnected (bool b) |
bool | isDrawConnected () const |
void | setGrid (bool b) |
bool | getGridState () const |
void | setGridColor (const QColor &c) |
QColor | gridColor () const |
bool | isTracing () const |
void | setTrace (bool b) |
int | expressionCount () const |
| Returns the number of expressions the graph is holding.
|
void | setXRes (GLfloat f) |
| Sets the resolution in the x direction.
|
void | setYRes (GLfloat f) |
| Sets the resolution in the y direction.
|
GLfloat | getXRes () const |
GLfloat | getYRes () const |
void | exportToDXF (const char *) |
Protected Methods |
void | paintGL () |
void | initializeGL () |
virtual double | snapIntervalX () const |
virtual double | snapIntervalY () const |
virtual void | nextFrameReady () |
| Classes that implement this class need to implement this function.
|
virtual const char * | independent_vars () const=0 |
virtual const char * | dependent_var () const=0 |
virtual void | trace (GLfloat mouseX, GLfloat mouseY, FungParser &parsed_expression, GLfloat *x, GLfloat *y, GLfloat *z)=0 |
virtual GLfloat | traceDepX (GLfloat x) const |
virtual GLfloat | traceDepY (GLfloat y) const |
void | recompileLists () |
void | orthoChanged () |
void | doColorBlend (GLfloat, const QColor &, GLfloat, GLfloat) |
| Blends the given color with black according to the elevation given by the GLfloat.
|
virtual Cartesian3DCoord2DVector | getValues (FungParser &, GLfloat *=0, GLfloat *=0)=0 |
| This class uses the 2-dimensional vector returned from this function to draw the expression and export it do DXF.
|
void | mouseMoveEvent (QMouseEvent *) |
void | resizeGL (int w, int h) |
Protected Attributes |
GLfloat | xScale |
GLfloat | yScale |