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

Search Toolkit Book for CRulerDemoPanel

#include "ruler_demo_panel.hpp"
(Private to src/gui/widgets/gl/demo_wx.)

+ Inheritance diagram for CRulerDemoPanel:
+ Collaboration diagram for CRulerDemoPanel:

Public Member Functions

 CRulerDemoPanel (wxWindow *parent, wxWindowID id)
 
void OnSize (wxSizeEvent &event)
 
- Public Member Functions inherited from CGLCanvas
 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 ()
 
- Protected Member Functions inherited from CGLCanvas
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
 
- Protected Attributes inherited from CGLCanvas
bool m_DoNotUpdate
 
float m_ClearColor [4]
 

Private Member Functions

 DECLARE_EVENT_TABLE ()
 

Detailed Description

Definition at line 42 of file ruler_demo_panel.hpp.

Constructor & Destructor Documentation

◆ CRulerDemoPanel()

CRulerDemoPanel::CRulerDemoPanel ( wxWindow *  parent,
wxWindowID  id 
)

Definition at line 41 of file ruler_demo_panel.cpp.

References CRuler::eRuler, CRuler::fShowOrigin, and m_Port.

Member Function Documentation

◆ DECLARE_EVENT_TABLE()

CRulerDemoPanel::DECLARE_EVENT_TABLE ( )
private

◆ OnSize()

void CRulerDemoPanel::OnSize ( wxSizeEvent &  event)

◆ x_Render()

void CRulerDemoPanel::x_Render ( void  )
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().

Member Data Documentation

◆ m_Port

CGlPane CRulerDemoPanel::m_Port
protected

Definition at line 51 of file ruler_demo_panel.hpp.

Referenced by OnSize(), and x_Render().

◆ m_Ruler

CRuler CRulerDemoPanel::m_Ruler
protected

Definition at line 52 of file ruler_demo_panel.hpp.

Referenced by x_Render().


The documentation for this class was generated from the following files:
Modified on Tue Apr 16 20:09:16 2024 by modify_doxy.py rev. 669887