diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2017-03-07 19:19:57 -0300 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2017-03-07 19:19:57 -0300 |
commit | 009849e49967af659354a94a16c51cab5eb8b5a4 (patch) | |
tree | 7fe0a53626b6afa503e7f5905310e477ac0fa9b4 /Project/Sum.h | |
parent | b3be8e8ef6338bce2106d9c161bf3c7f7f7f9244 (diff) | |
download | PSP.git-009849e49967af659354a94a16c51cab5eb8b5a4.tar.gz PSP.git-009849e49967af659354a94a16c51cab5eb8b5a4.tar.xz PSP.git-009849e49967af659354a94a16c51cab5eb8b5a4.zip |
Sum implementation start
Diffstat (limited to 'Project/Sum.h')
-rw-r--r-- | Project/Sum.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Project/Sum.h b/Project/Sum.h new file mode 100644 index 0000000..682effb --- /dev/null +++ b/Project/Sum.h @@ -0,0 +1,24 @@ +#ifndef SUM_H +#define SUM_H + +#include "ControlElement.h" + +class SumForm; + +class Sum : public ControlElement +{ +public: + enum Signal { SIGNAL_POSITIVE = 0, SIGNAL_NEGATIVE }; + Sum(); + ~Sum(); + + 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); + +protected: + std::vector<Signal> m_signalList; +}; + +#endif // SUM_H |