Library for 3.2'' uLcd Picaso Display4D system Picaso Serial Environment Command Set web: http://www.4dsystems.com.au/product/20/67/Processors_Graphics/PICASO/
Circle.h@1:a74e42cf52b2, 2015-04-05 (annotated)
- Committer:
- adelino
- Date:
- Sun Apr 05 13:54:48 2015 +0000
- Revision:
- 1:a74e42cf52b2
PicasoLib version 2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
adelino | 1:a74e42cf52b2 | 1 | #ifndef CIRCLE_H |
adelino | 1:a74e42cf52b2 | 2 | #define CIRCLE_H |
adelino | 1:a74e42cf52b2 | 3 | |
adelino | 1:a74e42cf52b2 | 4 | #include "Screen.h" |
adelino | 1:a74e42cf52b2 | 5 | #include "Sprite.h" |
adelino | 1:a74e42cf52b2 | 6 | |
adelino | 1:a74e42cf52b2 | 7 | class Circle:public Sprite |
adelino | 1:a74e42cf52b2 | 8 | { |
adelino | 1:a74e42cf52b2 | 9 | public: |
adelino | 1:a74e42cf52b2 | 10 | /** Construct a filled Circle |
adelino | 1:a74e42cf52b2 | 11 | * |
adelino | 1:a74e42cf52b2 | 12 | * @param mScreen the pointer screen |
adelino | 1:a74e42cf52b2 | 13 | * @param _id the identifier Id |
adelino | 1:a74e42cf52b2 | 14 | * @params _xc the center x |
adelino | 1:a74e42cf52b2 | 15 | * @params _yc the center y |
adelino | 1:a74e42cf52b2 | 16 | * @params _radius |
adelino | 1:a74e42cf52b2 | 17 | * @param _color the background color |
adelino | 1:a74e42cf52b2 | 18 | * @params _isVisible |
adelino | 1:a74e42cf52b2 | 19 | */ |
adelino | 1:a74e42cf52b2 | 20 | Circle(Screen* mScreen,UINT16 _xc,UINT16 _yc,UINT16 _radius,Color _color); |
adelino | 1:a74e42cf52b2 | 21 | // |
adelino | 1:a74e42cf52b2 | 22 | virtual void draw(void); |
adelino | 1:a74e42cf52b2 | 23 | // |
adelino | 1:a74e42cf52b2 | 24 | virtual ~Circle(void); |
adelino | 1:a74e42cf52b2 | 25 | // |
adelino | 1:a74e42cf52b2 | 26 | void update(float delta); |
adelino | 1:a74e42cf52b2 | 27 | |
adelino | 1:a74e42cf52b2 | 28 | // getter |
adelino | 1:a74e42cf52b2 | 29 | UINT16 getCenterX(void) const; |
adelino | 1:a74e42cf52b2 | 30 | // |
adelino | 1:a74e42cf52b2 | 31 | UINT16 getCenterY(void)const; |
adelino | 1:a74e42cf52b2 | 32 | |
adelino | 1:a74e42cf52b2 | 33 | //setter |
adelino | 1:a74e42cf52b2 | 34 | void setInvisible(bool _state); |
adelino | 1:a74e42cf52b2 | 35 | // |
adelino | 1:a74e42cf52b2 | 36 | void setNewPosition(INT16 _xnew,INT16 _ynew); |
adelino | 1:a74e42cf52b2 | 37 | // |
adelino | 1:a74e42cf52b2 | 38 | void setNewPosition(INT16 _xnew,INT16 _ynew,bool isScreenLimits); |
adelino | 1:a74e42cf52b2 | 39 | // |
adelino | 1:a74e42cf52b2 | 40 | void setCenterX(UINT16 _xcenter); |
adelino | 1:a74e42cf52b2 | 41 | // |
adelino | 1:a74e42cf52b2 | 42 | void setCenterY(UINT16 _ycenter); |
adelino | 1:a74e42cf52b2 | 43 | |
adelino | 1:a74e42cf52b2 | 44 | protected: |
adelino | 1:a74e42cf52b2 | 45 | UINT16 myRadius; |
adelino | 1:a74e42cf52b2 | 46 | UINT16 myCenterX; |
adelino | 1:a74e42cf52b2 | 47 | UINT16 myCenterY; |
adelino | 1:a74e42cf52b2 | 48 | }; |
adelino | 1:a74e42cf52b2 | 49 | |
adelino | 1:a74e42cf52b2 | 50 | #endif |