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/
Ellipse.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 ELLIPSE_H |
adelino | 1:a74e42cf52b2 | 2 | #define ELLIPSE_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 Ellipse:public Sprite |
adelino | 1:a74e42cf52b2 | 8 | { |
adelino | 1:a74e42cf52b2 | 9 | public: |
adelino | 1:a74e42cf52b2 | 10 | /** Construct a filled Ellipse |
adelino | 1:a74e42cf52b2 | 11 | * |
adelino | 1:a74e42cf52b2 | 12 | * @param mScreen the pointer screen |
adelino | 1:a74e42cf52b2 | 13 | * @params _xc the center x |
adelino | 1:a74e42cf52b2 | 14 | * @params _yc the center y |
adelino | 1:a74e42cf52b2 | 15 | * @params _radiusX |
adelino | 1:a74e42cf52b2 | 16 | * @radius _radiusY |
adelino | 1:a74e42cf52b2 | 17 | * @param _color the background color |
adelino | 1:a74e42cf52b2 | 18 | */ |
adelino | 1:a74e42cf52b2 | 19 | Ellipse(Screen* mScreen,UINT16 _xc,UINT16 _yc,UINT16 _radiusX,UINT16 _radiusY,Color _color); |
adelino | 1:a74e42cf52b2 | 20 | // |
adelino | 1:a74e42cf52b2 | 21 | virtual void draw(void); |
adelino | 1:a74e42cf52b2 | 22 | // |
adelino | 1:a74e42cf52b2 | 23 | virtual ~Ellipse(void); |
adelino | 1:a74e42cf52b2 | 24 | // |
adelino | 1:a74e42cf52b2 | 25 | void update(float delta); |
adelino | 1:a74e42cf52b2 | 26 | |
adelino | 1:a74e42cf52b2 | 27 | // getter |
adelino | 1:a74e42cf52b2 | 28 | UINT16 getCenterX(void) const; |
adelino | 1:a74e42cf52b2 | 29 | // |
adelino | 1:a74e42cf52b2 | 30 | UINT16 getCenterY(void) const; |
adelino | 1:a74e42cf52b2 | 31 | |
adelino | 1:a74e42cf52b2 | 32 | //setter |
adelino | 1:a74e42cf52b2 | 33 | void setInvisible(bool _state); |
adelino | 1:a74e42cf52b2 | 34 | // |
adelino | 1:a74e42cf52b2 | 35 | void setNewPosition(INT16 _xcnew,INT16 _ycnew); |
adelino | 1:a74e42cf52b2 | 36 | // |
adelino | 1:a74e42cf52b2 | 37 | void setNewPosition(INT16 _xcnew,INT16 _ycnew,bool isScreenLimits); |
adelino | 1:a74e42cf52b2 | 38 | // |
adelino | 1:a74e42cf52b2 | 39 | void setCenterX(UINT16 _xcenter); |
adelino | 1:a74e42cf52b2 | 40 | // |
adelino | 1:a74e42cf52b2 | 41 | void setCenterY(UINT16 _ycenter); |
adelino | 1:a74e42cf52b2 | 42 | |
adelino | 1:a74e42cf52b2 | 43 | |
adelino | 1:a74e42cf52b2 | 44 | protected: |
adelino | 1:a74e42cf52b2 | 45 | UINT16 myCenterX; |
adelino | 1:a74e42cf52b2 | 46 | UINT16 myCenterY; |
adelino | 1:a74e42cf52b2 | 47 | UINT16 myRadiusX; |
adelino | 1:a74e42cf52b2 | 48 | UINT16 myRadiusY; |
adelino | 1:a74e42cf52b2 | 49 | }; |
adelino | 1:a74e42cf52b2 | 50 | |
adelino | 1:a74e42cf52b2 | 51 | #endif |