
This class is used for plane drawings of graphs which are not Fary drawings. Fary drawings uses the editor to be displayed.
For each drawing algorithm, one has to write a function taking as arguments a pointer on a QPainter and a pointer on this class. pigalePaint uses a pointer to such a function to display the drawing..
It works using a copy of the graph.
| pigalePaint | ( | QWidget * | parent = 0, |
|
| pigaleWindow * | father = 0 | |||
| ) |
| ~pigalePaint | ( | ) |
| int to_x | ( | double | x | ) |
| int to_y | ( | double | y | ) |
| void DrawRect | ( | QPainter * | p, | |
| Tpoint & | a, | |||
| double | nx, | |||
| double | ny, | |||
| int | col | |||
| ) |
| void DrawText | ( | QPainter * | p, | |
| double | x, | |||
| double | y, | |||
| QString | txt | |||
| ) |
| void DrawText | ( | QPainter * | p, | |
| double | x, | |||
| double | y, | |||
| double | nx, | |||
| double | ny, | |||
| tvertex | v, | |||
| int | color | |||
| ) |
| void update | ( | int | index, | |
| bool | NewDrawing = true | |||
| ) |
| void update | ( | ) |
| void print | ( | QPrinter * | printer | ) |
| void image | ( | QPrinter * | printer, | |
| QString | suffix | |||
| ) |
| void drawIt | ( | QPainter * | p | ) | [private] |
| void paintEvent | ( | QPaintEvent * | e | ) | [private] |
| void showEvent | ( | QShowEvent * | ) | [private] |
| void hideEvent | ( | QHideEvent * | ) | [private] |
| void resizeEvent | ( | QResizeEvent * | e | ) | [private] |
| void mousePressEvent | ( | QMouseEvent * | e | ) | [private] |
| void mouseMoveEvent | ( | QMouseEvent * | e | ) | [private] |
| void wheelEvent | ( | QWheelEvent * | e | ) | [private] |
| void keyPressEvent | ( | QKeyEvent * | k | ) | [private] |
pigaleWindow* mw [private] |
bool isHidden [private] |
QPrinter* printer [private] |
int index [private] |
double zoom [private] |
QPoint posClick [private] |
| double Wx_min |
| double Wx_max |
| double Wy_min |
| double Wy_max |
| double xscale |
| double xtr |
| double yscale |
| double ytr |
| double xtr0 |
| double ytr0 |
| double xscale0 |
| double yscale0 |
| double xmin |
| double xmax |
| double ymin |
| double ymax |
1.5.4