NCBI C++ ToolKit
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
CGLCanvas Class Reference

Search Toolkit Book for CGLCanvas

CGLCanvas. More...

#include <gui/widgets/wx/glcanvas.hpp>

+ Inheritance diagram for CGLCanvas:
+ Collaboration diagram for CGLCanvas:

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 ()
 

Detailed Description

CGLCanvas.

Definition at line 53 of file glcanvas.hpp.

Constructor & Destructor Documentation

◆ CGLCanvas()

CGLCanvas::CGLCanvas ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = 0 
)

◆ ~CGLCanvas()

CGLCanvas::~CGLCanvas ( )
virtual

Definition at line 207 of file glcanvas.cpp.

References CGLContextCache::GetInstance(), and CGLContextCache::Release().

Member Function Documentation

◆ DECLARE_EVENT_TABLE()

CGLCanvas::DECLARE_EVENT_TABLE ( )
private

◆ DoNotUpdate()

void CGLCanvas::DoNotUpdate ( )
inline

Definition at line 67 of file glcanvas.hpp.

References m_DoNotUpdate.

Referenced by CGlInfoWindow::CGlInfoWindow().

◆ OnPaint()

void CGLCanvas::OnPaint ( wxPaintEvent &  event)

Definition at line 276 of file glcanvas.cpp.

References m_ClearColor, m_DoNotUpdate, x_Render(), and x_SetupGLContext().

◆ SetClearColor()

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().

◆ x_CheckGlVersion()

void CGLCanvas::x_CheckGlVersion ( )
protected

◆ x_GetAttribList()

const wxGLAttributes & CGLCanvas::x_GetAttribList ( ) const
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.

◆ x_Render()

void CGLCanvas::x_Render ( void  )
protectedvirtual

◆ x_SetupGLContext()

void CGLCanvas::x_SetupGLContext ( )
protected

Member Data Documentation

◆ m_ClearColor

float CGLCanvas::m_ClearColor[4]
protected

Definition at line 77 of file glcanvas.hpp.

Referenced by CGLCanvas(), OnPaint(), and SetClearColor().

◆ m_DoNotUpdate

bool CGLCanvas::m_DoNotUpdate
protected

Definition at line 75 of file glcanvas.hpp.

Referenced by DoNotUpdate(), and OnPaint().


The documentation for this class was generated from the following files:
Modified on Tue Feb 27 05:55:56 2024 by modify_doxy.py rev. 669887