NCBI C++ ToolKit
|
Search Toolkit Book for CGLCanvas
#include <gui/widgets/wx/glcanvas.hpp>
Public Member Functions | |
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 | |
void | x_SetupGLContext () |
void | x_CheckGlVersion () |
virtual void | x_Render () |
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 | |
bool | m_DoNotUpdate |
float | m_ClearColor [4] |
Private Member Functions | |
DECLARE_EVENT_TABLE () | |
Definition at line 53 of file glcanvas.hpp.
CGLCanvas::CGLCanvas | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 |
||
) |
Definition at line 172 of file glcanvas.cpp.
References CGLContextCache::AddRef(), CGLContextCache::GetInstance(), and m_ClearColor.
|
virtual |
Definition at line 207 of file glcanvas.cpp.
References CGLContextCache::GetInstance(), and CGLContextCache::Release().
|
private |
|
inline |
Definition at line 67 of file glcanvas.hpp.
References m_DoNotUpdate.
Referenced by CGlInfoWindow::CGlInfoWindow().
void CGLCanvas::OnPaint | ( | wxPaintEvent & | event | ) |
Definition at line 276 of file glcanvas.cpp.
References m_ClearColor, m_DoNotUpdate, x_Render(), and x_SetupGLContext().
void CGLCanvas::SetClearColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Definition at line 199 of file glcanvas.cpp.
References a, b, g(), m_ClearColor, and r().
|
protected |
Definition at line 212 of file glcanvas.cpp.
References arr, NcbiWarningBox(), NStr::Split(), NStr::StringToInt(), dtl::version, and x_SetupGLContext().
|
protected |
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).
X2Go X-Server doesn't allow to specify number of bitplanes of alpha/stencil To make gbench work with X2Go the following code
Definition at line 159 of file glcanvas.cpp.
|
protectedvirtual |
Reimplemented in CHitMatrixPane, CSeqTextPane, CPhyloTreePane, CSeqGraphicPane, CAlnMultiPane, CRulerDemoPanel, CGlPaneWidgetChildDemo, CGlInfoWindow, CMetalWindow, CGl3dWindow, CFontWindow, CGlInfoWindow, CCrossAlnPane, CGLTestWMClient, and CGlPreviewSetupWidget.
Definition at line 316 of file glcanvas.cpp.
Referenced by OnPaint(), CGlPaneWidgetChildDemo::x_Render(), and CRulerDemoPanel::x_Render().
|
protected |
Definition at line 264 of file glcanvas.cpp.
References context, CGLContextCache::GetContext(), and CGLContextCache::GetInstance().
Referenced by CGlInfoWindow::CGlInfoWindow(), CGlWidgetPane::CGlWidgetPane(), CPhyloTreePane::HMGH_OnChanged(), OnPaint(), CPhyloTreePane::SetContext(), CGlPreviewSetupWidget::SetGLContext(), CGlPreviewSetupWidget::SetPreviewSubImage(), CGlPreviewSetupWidget::SetReferenceImage(), CPhyloTreePane::Update(), x_CheckGlVersion(), CGl3dWindow::x_Pan(), and CGlPreviewSetupWidget::~CGlPreviewSetupWidget().
|
protected |
Definition at line 77 of file glcanvas.hpp.
Referenced by CGLCanvas(), OnPaint(), and SetClearColor().
|
protected |
Definition at line 75 of file glcanvas.hpp.
Referenced by DoNotUpdate(), and OnPaint().