|
|
This file contains the drawing area of our k2dgrflow application. We have a scrollview, wich shows the user a widget with the drawing.
enum DrawContents {Blank, Domain , DomainMesh, Mesh, Result } | DrawContents |
enumeratior with the possible contents of a drawview
PlotFieldView (K2dGrFlowView* owner, QWidget *parent=0, const char *name=0)
| PlotFieldView |
~PlotFieldView ()
| ~PlotFieldView |
const K2dGrFlowView* getOwner ()
| getOwner |
[const]
static const int fieldWidth | fieldWidth |
static const int fieldHeight | fieldHeight |
void updateIt (DrawContents )
| updateIt |
[slot]
updateDomain will repaint the widget so that a contents is drawn on it.
void print ()
|
[slot]
functions to paint the drawing on a printer
void printIt (DrawContents )
| printIt |
[slot]
void zoomOut ()
| zoomOut |
[slot]
void zoomIn ()
| zoomIn |
[slot]
void drawIt ( QPainter * )
| drawIt |
[protected]
draw whatever was asked to be drawn
void paintEvent ( QPaintEvent * )
| paintEvent |
[protected]
Reimplemented from QWidget.
void setPlotValues ()
| setPlotValues |
[private]
private function that sets optimal drawing values
QPrinter * printer | printer |
[private]
DrawContents drawindex | drawindex |
[private]
const K2dGrFlowView* drawViewOwner | drawViewOwner |
[private]
double scaleHor | scaleHor |
[private]
double scaleVer | scaleVer |
[private]
values for nice plotting of present figure
double transHor | transHor |
[private]
values for nice plotting of present figure
double transVer | transVer |
[private]
values for nice plotting of present figure
double zoomFactor | zoomFactor |
[private]
static const int nrCont | nrCont |
[private]
sid (struct) | sid |
[private]
the number of contours that is plotted in a contourdiagramm
nod (struct) | nod |
[private]
void contoursBetween (const double &value1, const double &value2, double *contValues, vector<int> &ContNrVect)
| contoursBetween |
[private]
internally used function to see if there is a contour between two values
bool posCont (const double &contValue, const double &x1, const double &y1 , const double &value1,
const double &x2, const double &y2, const double &value2, double &returnx , double &returny)
| posCont |
[private]
internally used function to calculate the position of a contour on a line between two points of which the value is given