My final year project
Dependencies: BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG SDFileSystem TS_DISCO_F746NG ResistiveTouchController Map CYS8218Controller MedianFilter
Screens/SquareScreen.hpp@57:0acdf5a3171f, 2016-10-19 (annotated)
- Committer:
- Kerneels Bezuidenhout
- Date:
- Wed Oct 19 20:33:21 2016 +0200
- Revision:
- 57:0acdf5a3171f
- Parent:
- 56:c9389039ecc9
- Child:
- 58:b60ff0462330
Added Modifying Square
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: |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 16 | Label _lbTitle; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 17 | Button _btBack; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 18 | Button _btReset; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 19 | Canvas _cSquare; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 20 | Button _btStart; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 21 | Button _btStop; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 22 | |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 23 | |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 24 | float *_xSP; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 25 | float *_ySP; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 26 | int *_ballOnPlate; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 27 | bool *_started; |
Kerneels Bezuidenhout |
56:c9389039ecc9 | 28 | float *_x; |
Kerneels Bezuidenhout |
56:c9389039ecc9 | 29 | float *_y; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 30 | |
Kerneels Bezuidenhout |
57:0acdf5a3171f | 31 | int _xPoints[4]; |
Kerneels Bezuidenhout |
57:0acdf5a3171f | 32 | int _yPoints[4]; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 33 | |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 34 | Map _xMapper; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 35 | Map _yMapper; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 36 | |
Kerneels Bezuidenhout |
57:0acdf5a3171f | 37 | void DrawShape(); |
Kerneels Bezuidenhout |
57:0acdf5a3171f | 38 | |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 39 | }; |
Kerneels Bezuidenhout |
54:75dc5c3b7cfc | 40 | #endif |