#include <qtgraph.h>
Inheritance diagram for QtGraphics:
Public Slots | |
void | TimeStepWrap (void) |
Signals | |
void | SimulationDone (void) |
Public Member Functions | |
QtGraphics (int xfield, int yfield, const char *movie_file=0) | |
QtGraphics (QWidget *parent, const char *name, int xfield, int yfield, const char *movie_file=0) | |
virtual | ~QtGraphics (void) |
virtual void | BeginScene (void) |
BeginScene() must be called before calling drawing functions. | |
virtual void | EndScene (void) |
EndScene() must be called to flush the drawing buffer and display the scene. | |
virtual void | Point (int colour, int i, int j) |
Plot a point in the Graphics window. | |
virtual void | Line (int x1, int y1, int x2, int y2, int colour) |
Draws a line (obviously... :-). | |
virtual int | GetXYCoo (int *X, int *Y) |
Probes the Window for user interaction, with mouse or keyboard. | |
virtual int | XField (void) const |
Returns the width of the Graphics window, in pixels. | |
virtual int | YField (void) const |
Returns the height of the Graphics window, in pixels. | |
virtual void | Write (char *fname, int quality=-1) |
Writes the Image to a file. | |
void | ClearImage (void) |
virtual void | TimeStep (void) |
Implement this member function in your simulation code. |
|
|
|
|
|
|
|
BeginScene() must be called before calling drawing functions.
Reimplemented from Graphics. |
|
|
|
EndScene() must be called to flush the drawing buffer and display the scene.
Reimplemented from Graphics. |
|
Probes the Window for user interaction, with mouse or keyboard. This function should return immediately, and return 0 if there was no user interaction.
Implements Graphics. |
|
Draws a line (obviously... :-).
Implements Graphics. |
|
Plot a point in the Graphics window.
Implements Graphics. |
|
|
|
Implement this member function in your simulation code. Include all actions that should be carried out during a simulation step, including PDE and CPM simulation steps. See the included examples (vessel.cpp, sorting.cpp) for more information. Reimplemented from Graphics. |
|
|
|
Writes the Image to a file. File format is inferred from file extension. Currently only PNG is supported by the X-Windows implementation; the Qt-implentation supports all formats supported by Qt.
Implements Graphics. |
|
Returns the width of the Graphics window, in pixels.
Reimplemented from Graphics. |
|
Returns the height of the Graphics window, in pixels.
Reimplemented from Graphics. |