diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-13 00:01:53 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-13 00:01:53 -0300 |
commit | 6c0e98a2727d07e1fbb38b78c27d68e98ad09465 (patch) | |
tree | 12764ca986c9a1943bc2012b0cc751471773f6ee /Project/TransferFunction.h | |
parent | 196389a70ef3a03aa8764b9532812a17dd55014b (diff) | |
download | PSP.git-6c0e98a2727d07e1fbb38b78c27d68e98ad09465.tar.gz PSP.git-6c0e98a2727d07e1fbb38b78c27d68e98ad09465.tar.xz PSP.git-6c0e98a2727d07e1fbb38b78c27d68e98ad09465.zip |
Device context implemented
Diffstat (limited to 'Project/TransferFunction.h')
-rw-r--r-- | Project/TransferFunction.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Project/TransferFunction.h b/Project/TransferFunction.h index f4ba344..e51de5a 100644 --- a/Project/TransferFunction.h +++ b/Project/TransferFunction.h @@ -46,6 +46,7 @@ class TransferFunction : public ControlElement ~TransferFunction(); virtual void Draw(wxPoint2DDouble translation, double scale) const; + virtual void DrawDC(wxPoint2DDouble translation, double scale, wxGraphicsContext* gc) 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); @@ -87,8 +88,8 @@ class TransferFunction : public ControlElement wchar_t m_supNumber[10]; - OpenGLText* m_glTextNum = NULL; - OpenGLText* m_glTextDen = NULL; + OpenGLText* m_glTextNum = nullptr; + OpenGLText* m_glTextDen = nullptr; int m_fontSize = 10; std::vector<double> m_numerator; |