Home

Download

Features

Screenshots

Handbook

Browse Source

Authors

SourceForge.net Logo
Hosted by SourceForge.net

OSI Certified


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages   Search  

ParametricGraph Class Reference

A class for plotting/graphing implicit parametric expressions. Graphs how the independent variable "t" affects the independent variables "x" and "y". More...

#include <parametricgraph.h>

Inheritance diagram for ParametricGraph:

Inheritance graph
[legend]
Collaboration diagram for ParametricGraph:

Collaboration graph
[legend]
List of all members.

Public Methods

 ParametricGraph (QWidget *parent=0, const char *name=0)
 ~ParametricGraph ()
virtual void load_key (const char *key, const char *value)
int setTMin (double)
int setTMax (double)
int setTStep (double)
double getTStep () const
double getTMin () const
double getTMax () const
virtual void installMathFunctions ()
 Implement this function to install any MathFunction's to a specific class.

virtual int execMathFunction (const char *)
virtual int getGraphType () const

Protected Methods

virtual void updateCoords ()
virtual const char * independent_vars ()
 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)
 Returns the dependent variable.

virtual int setXYForTrace (const double, const double, double *, double *, Expression &)
virtual void putUndefinedMessage (double x, double y)
virtual void drawExpression (QPainter *, Expression &)
virtual unsigned int var_count ()
virtual double snapIntervalX ()
virtual double startSnap ()
virtual double traceDepX (double x)
virtual void sendCustomClick (QMouseEvent *, MathFunction *, double, double)
 Implement this if a certain math function needs more arguments other than mouse coodinates.


Detailed Description

A class for plotting/graphing implicit parametric expressions. Graphs how the independent variable "t" affects the independent variables "x" and "y".

Author:
Fungmeista

Definition at line 28 of file parametricgraph.h.


Member Function Documentation

virtual const char* ParametricGraph::dependent_var int    i [inline, protected, virtual]
 

Returns the dependent variable.

The argument 'i' is used to get each dependent variable if there are more than one ( i.e. parametric graph ).

Implements ExpressionGraph.

Definition at line 53 of file parametricgraph.h.

void ParametricGraph::installMathFunctions   [virtual]
 

Implement this function to install any MathFunction's to a specific class.

A math function should be added by calling addMathFunction( MathFunction*, const char * id ) Example: addMathFunction(new DistanceMathFunction(this), "Distance");

Reimplemented from BasicGraph.

Definition at line 85 of file parametricgraph.cpp.

References MathFunctionImplementor::addMathFunction(), and BasicGraph::installMathFunctions().


The documentation for this class was generated from the following files: