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

Search Toolkit Book for CGlPaneWidgetChildDemo

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

+ Inheritance diagram for CGlPaneWidgetChildDemo:
+ Collaboration diagram for CGlPaneWidgetChildDemo:

Public Member Functions

 CGlPaneWidgetChildDemo (CGlWidgetDemo *parent, wxWindowID id=wxID_ANY)
 Constructors. More...
 
virtual ~CGlPaneWidgetChildDemo ()
 
virtual TVPPoint GetPortSize ()
 CGlWidgetPane overridables. More...
 
void OnSize (wxSizeEvent &event)
 
ISelHandlerHost implementation
virtual void SHH_OnChanged ()
 ISelHandlerHost implementation. More...
 
virtual TModelUnit SHH_GetModelByWindow (int z, EOrientation orient)
 
virtual TVPUnit SHH_GetWindowByModel (TModelUnit z, EOrientation orient)
 
IMouseZoomHandlerHost implementation
virtual TModelUnit MZHH_GetScale (EScaleType type)
 IMouseZoomHandlerHost implementation. More...
 
virtual void MZHH_SetScale (TModelUnit scale, const TModelPoint &point)
 
virtual void MZHH_ZoomRect (const TModelRect &rc)
 
virtual void MZHH_ZoomPoint (const TModelPoint &point, TModelUnit factor)
 
virtual void MZHH_Scroll (TModelUnit d_x, TModelUnit d_y)
 
virtual void MZHH_EndOp ()
 
virtual TVPUnit MZHH_GetVPPosByY (int y) const
 converts window coord to Viewport coord More...
 
- Public Member Functions inherited from CGlWidgetPane
 CGlWidgetPane (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0)
 
virtual ~CGlWidgetPane ()
 
void SetPopupMenuDisplayed (bool b)
 
bool GetPopupMenuDisplayed () const
 
void DlgOverlayFix ()
 
void CheckOverlayTimer ()
 
virtual void GHH_Redraw ()
 redraws the Host and the handler More...
 
virtual void GHH_SetCursor (const wxCursor &cursor)
 changes the cursor in the hosting window More...
 
virtual void GHH_CaptureMouse ()
 captures mouse events in the hosting window for D&D More...
 
virtual void GHH_ReleaseMouse ()
 releases captured mouse More...
 
virtual bool TC_NeedTooltip (const wxPoint &pt)
 Returns "true" if client wants to dispaly a tooltip. More...
 
virtual string TC_GetTooltip (const wxRect &rect)
 Returns tooltip string and coordinates for area tootlip associated with. More...
 
virtual wxWindow * TC_GetWindow ()
 Returns pointer to the widget hosting ITooltipClient. More...
 
virtual wxWindow * TTHH_GetWindow ()
 Return the pointer to the underlying window. More...
 
virtual bool TTHH_PopupMenuDisplayed ()
 Return true if underlying window is currently displaying a popup menu. More...
 
void OnEnterWindow (wxMouseEvent &event)
 
void OnTimer (wxTimerEvent &event)
 
void OnMouseDown (wxMouseEvent &event)
 
void OnMouseUp (wxMouseEvent &event)
 
void OnMotion (wxMouseEvent &event)
 
void OnMouseWheel (wxMouseEvent &event)
 
void OnMouseCaptureLost (wxMouseCaptureLostEvent &event)
 
void OnLeaveWindow (wxMouseEvent &event)
 
void OnKeyEvent (wxKeyEvent &event)
 
void OnSetFocus (wxFocusEvent &event)
 
void OnKillFocus (wxFocusEvent &event)
 
void OnSize (wxSizeEvent &event)
 
void OnCmdEvent (wxCommandEvent &event)
 
void OnTipRemoved (wxCommandEvent &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)
 
- Public Member Functions inherited from IGenericHandlerHost
virtual ~IGenericHandlerHost ()
 
- Public Member Functions inherited from ITooltipHandlerHost
virtual ~ITooltipHandlerHost ()
 
- Public Member Functions inherited from IStickyTooltipHandlerHost
 IStickyTooltipHandlerHost ()
 
virtual ~IStickyTooltipHandlerHost ()
 
void TTHH_Init ()
 Init calls virtual functions so can't be called from ctor. More...
 
virtual string TTHH_NeedTooltip (const wxPoint &)
 Return id of the underlying element to dispaly a tooltip, otherwise "". More...
 
virtual CTooltipInfo TTHH_GetTooltip (const wxRect &)
 Return the contents to be displayed in the tool tip. More...
 
virtual bool TTHH_ProcessURL (const wxString &)
 Return true if the specified URL has been processed. Used for custom commands. More...
 
std::vector< TipLocationGetDisplayedTips ()
 Return id and position information for currently displayed tips. More...
 
void SetServiceLocator (IServiceLocator *s)
 Set service locator so we can find other views and adjust z order. More...
 
- Public Member Functions inherited from ISelHandlerHost
virtual ~ISelHandlerHost ()
 
- Public Member Functions inherited from IMouseZoomHandlerHost
virtual ~IMouseZoomHandlerHost ()
 

Protected Member Functions

virtual void x_Render ()
 CGlWidgetPane overridables. More...
 
virtual void x_RenderSelHandler ()
 
CGlWidgetDemox_GetParent ()
 
- Protected Member Functions inherited from CGlWidgetPane
virtual int x_GetAreaByWindowPos (const wxPoint &pos)
 
virtual int x_GetAreaByVPPos (TVPUnit vp_x, TVPUnit vp_y)
 
virtual bool x_GrabFocus ()
 
bool x_RegisterHandler (IGlEventHandler *handler, int area, CGlPane *pane, int index=-1)
 
bool x_UnregisterHandler (IGlEventHandler *handler)
 
void x_SetCurrHandler (SHandlerRec *rec)
 
bool x_Handlers_handle (wxEvent &event, int area, bool ignore_curr=true)
 
bool x_DispatchEventToHandler (wxEvent &event, SHandlerRec *rec)
 
void x_HandleAccels (wxKeyEvent &event)
 
- 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 Member Functions inherited from IStickyTooltipHandlerHost
void x_SetCurrentTips (std::vector< TipLocation > &tips)
 Sets information on current tips that can be queried by the user. More...
 
wxFrame * GetUnderlyingFrame ()
 Return the undering wxFrame parent for a wxWindow object. More...
 
bool IsFloatingWindow ()
 Return true if the hosting window is ultimately enclosed in a CFloatingFrame class (meaning its in a floating window) More...
 
void RaiseOverlappingWindows (wxRect r)
 If the tip window is docked in the main window (not a CFloatingFrame) this raises all the CFloatingFrame windows to make sure none of them are overlapped by tooltips. More...
 
bool IsDragging ()
 Retruns true if Any window is currently being dragged. More...
 
void InitWindowGroup (int dock_count=0)
 Mac only - create or return window group for this window. More...
 

Protected Attributes

CGlPane m_Pane
 
CMouseZoomHandler m_MouseZoomHandler
 
CLinearSelHandler m_HorzSelHandler
 
- Protected Attributes inherited from CGlWidgetPane
THandlerRecList m_lsHandlerRecs
 list of records for registered handlers More...
 
SHandlerRecm_pCurrHandlerRec
 pointer to record for last active handler More...
 
bool m_PopupMenuDisplayed
 Some handlers may need to know if popup (right click) menu is active. More...
 
CStopWatch m_EnterTimer
 Windows vista bug screws up opengl after dlgs/popups displayed over window. More...
 
wxTimer m_GLOverlapFixTimer
 Need associated timer since some popups take a little time to clear. More...
 
bool m_PseudoSized
 For windows (e.g. tree) that do not want to layout/update for the fake size event. More...
 
- Protected Attributes inherited from CGLCanvas
bool m_DoNotUpdate
 
float m_ClearColor [4]
 
- Protected Attributes inherited from IStickyTooltipHandlerHost
IServiceLocatorm_ServiceLocator
 Needed to find other views. More...
 
std::vector< TipLocationm_CurrentTips
 

Private Member Functions

 DECLARE_EVENT_TABLE ()
 

Additional Inherited Members

- Public Types inherited from IMouseZoomHandlerHost
enum  EScaleType { eMin , eCurrent , eMax }
 
- Protected Types inherited from CGlWidgetPane
typedef list< SHandlerRecTHandlerRecList
 

Detailed Description

Definition at line 50 of file glpanewidget_child_demo.hpp.

Constructor & Destructor Documentation

◆ CGlPaneWidgetChildDemo()

CGlPaneWidgetChildDemo::CGlPaneWidgetChildDemo ( CGlWidgetDemo parent,
wxWindowID  id = wxID_ANY 
)

Constructors.

Definition at line 45 of file glpanewidget_child_demo.cpp.

◆ ~CGlPaneWidgetChildDemo()

CGlPaneWidgetChildDemo::~CGlPaneWidgetChildDemo ( )
virtual

Definition at line 59 of file glpanewidget_child_demo.cpp.

Member Function Documentation

◆ DECLARE_EVENT_TABLE()

CGlPaneWidgetChildDemo::DECLARE_EVENT_TABLE ( )
private

◆ GetPortSize()

TVPPoint CGlPaneWidgetChildDemo::GetPortSize ( void  )
virtual

CGlWidgetPane overridables.

Implements CGlWidgetPane.

Definition at line 64 of file glpanewidget_child_demo.cpp.

◆ MZHH_EndOp()

void CGlPaneWidgetChildDemo::MZHH_EndOp ( )
virtual

◆ MZHH_GetScale()

TModelUnit CGlPaneWidgetChildDemo::MZHH_GetScale ( EScaleType  type)
virtual

◆ MZHH_GetVPPosByY()

TVPUnit CGlPaneWidgetChildDemo::MZHH_GetVPPosByY ( int  y) const
virtual

converts window coord to Viewport coord

Implements IMouseZoomHandlerHost.

Definition at line 224 of file glpanewidget_child_demo.cpp.

◆ MZHH_Scroll()

void CGlPaneWidgetChildDemo::MZHH_Scroll ( TModelUnit  d_x,
TModelUnit  d_y 
)
virtual

◆ MZHH_SetScale()

void CGlPaneWidgetChildDemo::MZHH_SetScale ( TModelUnit  scale,
const TModelPoint point 
)
virtual

Implements IMouseZoomHandlerHost.

Definition at line 184 of file glpanewidget_child_demo.cpp.

References CGlWidgetDemo::SetScale(), and x_GetParent().

◆ MZHH_ZoomPoint()

void CGlPaneWidgetChildDemo::MZHH_ZoomPoint ( const TModelPoint point,
TModelUnit  factor 
)
virtual

◆ MZHH_ZoomRect()

void CGlPaneWidgetChildDemo::MZHH_ZoomRect ( const TModelRect rc)
virtual

◆ OnSize()

void CGlPaneWidgetChildDemo::OnSize ( wxSizeEvent &  event)

Definition at line 122 of file glpanewidget_child_demo.cpp.

References CGlWidgetDemo::GetPort(), m_Pane, and x_GetParent().

◆ SHH_GetModelByWindow()

TModelUnit CGlPaneWidgetChildDemo::SHH_GetModelByWindow ( int  z,
EOrientation  orient 
)
virtual

◆ SHH_GetWindowByModel()

TVPUnit CGlPaneWidgetChildDemo::SHH_GetWindowByModel ( TModelUnit  z,
EOrientation  orient 
)
virtual

Implements ISelHandlerHost.

Definition at line 151 of file glpanewidget_child_demo.cpp.

References _ASSERT, eHorz, eVert, m_Pane, CGlPane::ProjectX(), and CGlPane::ProjectY().

◆ SHH_OnChanged()

void CGlPaneWidgetChildDemo::SHH_OnChanged ( )
virtual

ISelHandlerHost implementation.

Implements ISelHandlerHost.

Definition at line 130 of file glpanewidget_child_demo.cpp.

◆ x_GetParent()

CGlWidgetDemo * CGlPaneWidgetChildDemo::x_GetParent ( )
protected

◆ x_Render()

void CGlPaneWidgetChildDemo::x_Render ( void  )
protectedvirtual

◆ x_RenderSelHandler()

void CGlPaneWidgetChildDemo::x_RenderSelHandler ( )
protectedvirtual

Member Data Documentation

◆ m_HorzSelHandler

CLinearSelHandler CGlPaneWidgetChildDemo::m_HorzSelHandler
protected

Definition at line 95 of file glpanewidget_child_demo.hpp.

Referenced by x_RenderSelHandler().

◆ m_MouseZoomHandler

CMouseZoomHandler CGlPaneWidgetChildDemo::m_MouseZoomHandler
protected

Definition at line 94 of file glpanewidget_child_demo.hpp.

Referenced by x_RenderSelHandler().

◆ m_Pane

CGlPane CGlPaneWidgetChildDemo::m_Pane
protected

The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:29 2024 by modify_doxy.py rev. 669887