diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-12-23 14:51:13 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-12-23 14:51:13 +0100 |
commit | f4b015398462fff1a64d70b632390b4f06fe3bbe (patch) | |
tree | ad6c57cfd5eded61ef31e379a8c94b309a298c44 /src/outputwindow.h | |
parent | dcecacbf52121d6f8adf076d2cebaeec1e141339 (diff) |
LoadPen, setSpeed, setScale and a bunch of cleanups...
Diffstat (limited to 'src/outputwindow.h')
-rw-r--r-- | src/outputwindow.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/outputwindow.h b/src/outputwindow.h index 5f14099..d875b36 100644 --- a/src/outputwindow.h +++ b/src/outputwindow.h @@ -45,6 +45,12 @@ public: void stopScript(); + void setSpeed(int s); + void setScale(double s); + void setColour(int r, int g, int b, int a); + + void loadPen(QString file); + public slots: void timeout(); void reset(); @@ -53,13 +59,26 @@ protected: void paintEvent(QPaintEvent * event); private: + class ColLine { + public: + QColor colour; + QLine line; + }; QImage kaiman; double x, y, r; QTimer timer; QSemaphore sem; - QVector<QPointF> points; - + QVector<ColLine> lines; + QVector<QPointF> current_points; + QColor colour; volatile bool stop; + + volatile int speed; + + volatile bool loadpen; + QString penfile; + + volatile float scale; }; #endif/*__KAIMAN_OUTPUTWINDOW_H__*/ |