My final year project
Dependencies: BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG SDFileSystem TS_DISCO_F746NG ResistiveTouchController Map CYS8218Controller MedianFilter
Screens/SquareScreen.hpp@58:b60ff0462330, 2016-10-19 (annotated)
- Committer:
- Generic
- Date:
- Wed Oct 19 18:50:09 2016 +0000
- Revision:
- 58:b60ff0462330
- Parent:
- 57:0acdf5a3171f
- Child:
- 59:e60ea936d9a2
Fixed SquareScreen
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 1 | #ifndef SQUARE_SCREEN_HPP |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 2 | #define SQUARE_SCREEN_HPP |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 3 | |
Generic | 55:d1a00f344351 | 4 | #include "Screen.hpp" |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 5 | #include "Map.hpp" |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 6 | |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 7 | class SquareScreen : public Screen |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 8 | { |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 9 | public: |
Kerneels Bezuidenhout |
56:c9389039ecc9 | 10 | SquareScreen(int *nextScreen, float *xSP, float *ySP, int *ballOnPlate, bool *started, float *x, float *y); |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 11 | |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 12 | void Draw(); |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 13 | void Process(); |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 14 | |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 15 | private: |
Generic | 58:b60ff0462330 | 16 | |
Generic | 58:b60ff0462330 | 17 | void DrawShape(); |
Generic | 58:b60ff0462330 | 18 | |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 19 | Label _lbTitle; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 20 | Button _btBack; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 21 | Button _btReset; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 22 | Canvas _cSquare; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 23 | Button _btStart; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 24 | Button _btStop; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 25 | |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 26 | |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 27 | float *_xSP; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 28 | float *_ySP; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 29 | int *_ballOnPlate; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 30 | bool *_started; |
Kerneels Bezuidenhout |
56:c9389039ecc9 | 31 | float *_x; |
Kerneels Bezuidenhout |
56:c9389039ecc9 | 32 | float *_y; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 33 | |
Kerneels Bezuidenhout |
57:0acdf5a3171f | 34 | int _xPoints[4]; |
Kerneels Bezuidenhout |
57:0acdf5a3171f | 35 | int _yPoints[4]; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 36 | |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 37 | Map _xMapper; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 38 | Map _yMapper; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 39 | |
Generic | 58:b60ff0462330 | 40 | |
Kerneels Bezuidenhout |
57:0acdf5a3171f | 41 | |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 42 | }; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 43 | #endif |