46 :
CGlWidgetPane(parent,
id, wxDefaultPosition, wxDefaultSize, 0),
49 SetBackgroundColour(wxColour(230, 230, 255));
52 x_RegisterHandler(&m_MouseZoomHandler, 0xFFFF, &m_Pane);
55 x_RegisterHandler(&m_HorzSelHandler, 0xFFFF, &m_Pane);
77 wxSize
size = GetClientSize();
78 int h =
size.GetHeight();
79 int w =
size.GetWidth();
90 gl.
Rectd(0.0, 0.0, 10.0, 10.0);
93 gl.
Rectd(10.0, 10.0, 20.0, 20.0);
96 gl.
Rectd(20.0, 20.0, 30.0, 30.0);
107 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
226 return GetSize().y - 1 - y;
void Render(CGlPane &Pane, ERenderingOption option=eActiveState)
virtual void Render(CGlPane &Pane)
Interface IMouseZoomHandlerHost represents a context in which CMouseZoomHandler functions.
virtual void Viewport(GLint x, GLint y, GLsizei width, GLsizei height)=0
CGlPoint< TVPUnit > TVPPoint
TVPUnit ProjectX(TModelUnit m_x) const
void Color3d(GLdouble r, GLdouble g, GLdouble b)
IRender & GetGl()
convenience function for getting current render manager
TVPUnit ProjectY(TModelUnit m_y) const
TModelUnit UnProjectX(TVPUnit m_x) const
TModelUnit UnProjectY(TVPUnit m_y) const
TModelUnit GetZoomAllScaleX(void) const
TModelUnit GetMinScaleX(void) const
TModelUnit GetScaleX(void) const
void Rectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size