NCBI C++ ToolKit
|
Search Toolkit Book for CRulerDemoPanel
#include "ruler_demo_panel.hpp"
(Private to src/gui/widgets/gl/demo_wx
.)
Public Member Functions | |
CRulerDemoPanel (wxWindow *parent, wxWindowID id) | |
void | OnSize (wxSizeEvent &event) |
![]() | |
CGLCanvas (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0) | |
virtual | ~CGLCanvas () |
void | OnPaint (wxPaintEvent &event) |
void | DoNotUpdate () |
void | SetClearColor (float r, float g, float b, float a) |
Protected Member Functions | |
virtual void | x_Render () |
![]() | |
void | x_SetupGLContext () |
void | x_CheckGlVersion () |
const wxGLAttributes & | x_GetAttribList () const |
Not having all programs share the same window attributes has caused crashing on Linux, so each window will use these attributes (this should be the superset of attributes needed by program windows). More... | |
Protected Attributes | |
CGlPane | m_Port |
CRuler | m_Ruler |
![]() | |
bool | m_DoNotUpdate |
float | m_ClearColor [4] |
Private Member Functions | |
DECLARE_EVENT_TABLE () | |
Definition at line 42 of file ruler_demo_panel.hpp.
CRulerDemoPanel::CRulerDemoPanel | ( | wxWindow * | parent, |
wxWindowID | id | ||
) |
Definition at line 41 of file ruler_demo_panel.cpp.
References CRuler::eRuler, CRuler::fShowOrigin, and m_Port.
|
private |
void CRulerDemoPanel::OnSize | ( | wxSizeEvent & | event | ) |
Definition at line 63 of file ruler_demo_panel.cpp.
References m_Port, CGlPane::SetViewport(), and ncbi::grid::netcache::search::fields::size.
|
protectedvirtual |
Reimplemented from CGLCanvas.
Definition at line 71 of file ruler_demo_panel.cpp.
References m_Port, m_Ruler, CRuler::Render(), and CGLCanvas::x_Render().
|
protected |
Definition at line 51 of file ruler_demo_panel.hpp.
Referenced by OnSize(), and x_Render().
|
protected |
Definition at line 52 of file ruler_demo_panel.hpp.
Referenced by x_Render().