NCBI C++ ToolKit
|
Search Toolkit Book for CGlPaneWidgetChildDemo
#include "glpanewidget_child_demo.hpp"
(Private to src/gui/widgets/gl/demo_wx
.)
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... | |
![]() | |
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) |
![]() | |
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) |
![]() | |
virtual | ~IGenericHandlerHost () |
![]() | |
virtual | ~ITooltipHandlerHost () |
![]() | |
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< TipLocation > | GetDisplayedTips () |
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... | |
![]() | |
virtual | ~ISelHandlerHost () |
![]() | |
virtual | ~IMouseZoomHandlerHost () |
Protected Member Functions | |
virtual void | x_Render () |
CGlWidgetPane overridables. More... | |
virtual void | x_RenderSelHandler () |
CGlWidgetDemo * | x_GetParent () |
![]() | |
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) |
![]() | |
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... | |
![]() | |
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 |
![]() | |
THandlerRecList | m_lsHandlerRecs |
list of records for registered handlers More... | |
SHandlerRec * | m_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... | |
![]() | |
bool | m_DoNotUpdate |
float | m_ClearColor [4] |
![]() | |
IServiceLocator * | m_ServiceLocator |
Needed to find other views. More... | |
std::vector< TipLocation > | m_CurrentTips |
Private Member Functions | |
DECLARE_EVENT_TABLE () | |
Additional Inherited Members | |
![]() | |
enum | EScaleType { eMin , eCurrent , eMax } |
![]() | |
typedef list< SHandlerRec > | THandlerRecList |
Definition at line 50 of file glpanewidget_child_demo.hpp.
CGlPaneWidgetChildDemo::CGlPaneWidgetChildDemo | ( | CGlWidgetDemo * | parent, |
wxWindowID | id = wxID_ANY |
||
) |
Constructors.
Definition at line 45 of file glpanewidget_child_demo.cpp.
|
virtual |
Definition at line 59 of file glpanewidget_child_demo.cpp.
|
private |
|
virtual |
CGlWidgetPane overridables.
Implements CGlWidgetPane.
Definition at line 64 of file glpanewidget_child_demo.cpp.
|
virtual |
Implements IMouseZoomHandlerHost.
Definition at line 208 of file glpanewidget_child_demo.cpp.
References CGlWidgetBase::NotifyVisibleRangeChanged(), and x_GetParent().
|
virtual |
IMouseZoomHandlerHost implementation.
Implements IMouseZoomHandlerHost.
Definition at line 167 of file glpanewidget_child_demo.cpp.
References _ASSERT, IMouseZoomHandlerHost::eCurrent, IMouseZoomHandlerHost::eMax, IMouseZoomHandlerHost::eMin, CGlPane::GetMinScaleX(), CGlWidgetDemo::GetPort(), CGlPane::GetScaleX(), CGlPane::GetZoomAllScaleX(), and x_GetParent().
converts window coord to Viewport coord
Implements IMouseZoomHandlerHost.
Definition at line 224 of file glpanewidget_child_demo.cpp.
|
virtual |
Implements IMouseZoomHandlerHost.
Definition at line 215 of file glpanewidget_child_demo.cpp.
References CGlWidgetBase::NotifyVisibleRangeChanged(), CGlWidgetBase::Scroll(), and x_GetParent().
|
virtual |
Implements IMouseZoomHandlerHost.
Definition at line 184 of file glpanewidget_child_demo.cpp.
References CGlWidgetDemo::SetScale(), and x_GetParent().
|
virtual |
Implements IMouseZoomHandlerHost.
Definition at line 199 of file glpanewidget_child_demo.cpp.
References CGlWidgetBase::NotifyVisibleRangeChanged(), x_GetParent(), and CGlWidgetBase::ZoomPoint().
|
virtual |
Implements IMouseZoomHandlerHost.
Definition at line 190 of file glpanewidget_child_demo.cpp.
References CGlWidgetBase::NotifyVisibleRangeChanged(), x_GetParent(), and CGlWidgetBase::ZoomRect().
void CGlPaneWidgetChildDemo::OnSize | ( | wxSizeEvent & | event | ) |
Definition at line 122 of file glpanewidget_child_demo.cpp.
References CGlWidgetDemo::GetPort(), m_Pane, and x_GetParent().
|
virtual |
Implements ISelHandlerHost.
Definition at line 138 of file glpanewidget_child_demo.cpp.
References _ASSERT, eHorz, eVert, m_Pane, CGlPane::UnProjectX(), and CGlPane::UnProjectY().
|
virtual |
Implements ISelHandlerHost.
Definition at line 151 of file glpanewidget_child_demo.cpp.
References _ASSERT, eHorz, eVert, m_Pane, CGlPane::ProjectX(), and CGlPane::ProjectY().
|
virtual |
ISelHandlerHost implementation.
Implements ISelHandlerHost.
Definition at line 130 of file glpanewidget_child_demo.cpp.
|
protected |
Definition at line 116 of file glpanewidget_child_demo.cpp.
Referenced by MZHH_EndOp(), MZHH_GetScale(), MZHH_Scroll(), MZHH_SetScale(), MZHH_ZoomPoint(), MZHH_ZoomRect(), and OnSize().
|
protectedvirtual |
CGlWidgetPane overridables.
Reimplemented from CGLCanvas.
Definition at line 70 of file glpanewidget_child_demo.cpp.
References CGlPane::Close(), IRender::Color3d(), GetGl(), CGlWidgetDemo::GetPort(), m_Pane, CGlPane::OpenOrtho(), IRender::Rectd(), ncbi::grid::netcache::search::fields::size, IRender::Viewport(), CGLCanvas::x_Render(), and x_RenderSelHandler().
|
protectedvirtual |
Definition at line 104 of file glpanewidget_child_demo.cpp.
References m_HorzSelHandler, m_MouseZoomHandler, m_Pane, CMouseZoomHandler::Render(), and CLinearSelHandler::Render().
Referenced by x_Render().
|
protected |
Definition at line 95 of file glpanewidget_child_demo.hpp.
Referenced by x_RenderSelHandler().
|
protected |
Definition at line 94 of file glpanewidget_child_demo.hpp.
Referenced by x_RenderSelHandler().
|
protected |
Definition at line 92 of file glpanewidget_child_demo.hpp.
Referenced by OnSize(), SHH_GetModelByWindow(), SHH_GetWindowByModel(), x_Render(), and x_RenderSelHandler().