diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2017-01-25 19:45:45 -0200 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2017-01-25 19:45:45 -0200 |
commit | 9f17be8af02011f04d188ce991921f6eb0ecf792 (patch) | |
tree | 16ee4a2ef24b55af7dfb02a50d57acc384c48526 /Project/TransferFunction.h | |
parent | bdb0625280d827ba7333b6fc9d6c6534e0720100 (diff) | |
download | PSP.git-9f17be8af02011f04d188ce991921f6eb0ecf792.tar.gz PSP.git-9f17be8af02011f04d188ce991921f6eb0ecf792.tar.xz PSP.git-9f17be8af02011f04d188ce991921f6eb0ecf792.zip |
Several graphic tools implemented, tf start
Diffstat (limited to 'Project/TransferFunction.h')
-rw-r--r-- | Project/TransferFunction.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Project/TransferFunction.h b/Project/TransferFunction.h index 2a5acbb..fa48354 100644 --- a/Project/TransferFunction.h +++ b/Project/TransferFunction.h @@ -3,12 +3,27 @@ #include "ControlElement.h" +#include <wx/dcscreen.h> +#include "wxGLString.h" + class TransferFunction : public ControlElement { public: TransferFunction(); ~TransferFunction(); + 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 AddParent(Element* parent, wxPoint2DDouble position) { return false; } + virtual void SetText(wxString numerator, wxString denominator); + +protected: + wchar_t m_supNumber[10]; + + wxGLString* m_glStringNum = NULL; + wxGLString* m_glStringDen = NULL; + int m_fontSize = 10; }; #endif // TRANSFERFUNCTION_H |