diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-03-30 11:10:06 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-03-30 11:10:06 -0300 |
commit | 045037ce8f2b106acbe5425245746a2dbed65c26 (patch) | |
tree | f81b4003f1ec6f835681c768c945065b1976da42 /Project/RateLimiter.h | |
parent | 3985018cdb8508b9970646ae4b9886ba4df6dd78 (diff) | |
download | PSP.git-045037ce8f2b106acbe5425245746a2dbed65c26.tar.gz PSP.git-045037ce8f2b106acbe5425245746a2dbed65c26.tar.xz PSP.git-045037ce8f2b106acbe5425245746a2dbed65c26.zip |
Exponencial under implementation
Diffstat (limited to 'Project/RateLimiter.h')
-rw-r--r-- | Project/RateLimiter.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Project/RateLimiter.h b/Project/RateLimiter.h new file mode 100644 index 0000000..1d6d72e --- /dev/null +++ b/Project/RateLimiter.h @@ -0,0 +1,32 @@ +#ifndef RATELIMITER_H +#define RATELIMITER_H + +#include "ControlElement.h" + +class RateLimiterForm; + +class RateLimiter : public ControlElement +{ + public: + RateLimiter(); + ~RateLimiter(); + + virtual void Draw(wxPoint2DDouble translation, double scale) const; + virtual bool Contains(wxPoint2DDouble position) const { return m_rect.Contains(position); } + virtual bool Intersects(wxRect2DDouble rect) const { return m_rect.Intersects(rect); } + virtual bool ShowForm(wxWindow* parent, Element* element); + virtual void Rotate(bool clockwise = true); + + virtual void UpdatePoints(); + + double GetUpLimit() const { return m_upLimit; } + double GetLowLimit() const { return m_lowLimit; } + void SetUpLimit(double upLimit) { m_upLimit = upLimit; } + void SetLowLimit(double lowLimit) { m_lowLimit = lowLimit; } + + protected: + double m_upLimit = 5.0; + double m_lowLimit = -5.0; +}; + +#endif // RATELIMITER_H |