m_HorzSelHandler(
eHorz),
60m_VertSelHandler(
eVert),
66AddListener(parent, ePool_Parent);
70m_HorzSelHandler.SetHost(
this);
71x_RegisterHandler(&m_HorzSelHandler,
73&m_Renderer.GetSubjectPane());
75m_VertSelHandler.SetHost(
this);
76x_RegisterHandler(&m_VertSelHandler,
78&m_Renderer.GetQueryPane());
84m_MouseZoomHandler.SetHost(
this);
88m_TooltipHandler.SetHost(
this);
90&m_Renderer.GetMatrixPane());
112wxSize sz = GetSize();
209objs.reserve(aligns.
size());
222 ITERATE(TGlyphs, it_G, glyphs) {
226 if(std::find(sel_aligns.begin(), sel_aligns.end(), align)
227!= sel_aligns.end()) {
325gl.
BlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
337gl.
BlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
356 default:
_ASSERT(
false);
return-1;
403 returnGetClientSize().y - 1 - y;
418 returnGetClientSize().y - 1 - y;
472 intvp_y = GetSize().y - pt.y;
CEvent - generic event implementation TODO TODO - Attachments.
CHitGlyph is a simple graphical object representing a Hit as a set of corresponding Hit Elements.
const IHit & GetHit() const
const TElemGlyphSet & GetSelectedGlyphs() const
void SelectGlyph(const CHitGlyph &glyph)
const THitGlyphVector & GetGlyphs() const
vector< CHitGlyph * > THitGlyphVector
void ResetGlyphSelection()
void SetHost(IHitMatrixGraphHost *host)
virtual void MZHH_EndOp() override
virtual int x_GetAreaByVPPos(TVPUnit vp_x, TVPUnit vp_y) override
void GetObjectSelection(TConstObjects &objs) const
CLinearSelHandler m_VertSelHandler
virtual TModelUnit SHH_GetModelByWindow(int z, EOrientation orient) override
CLinearSelHandler m_HorzSelHandler
virtual TVPPoint GetPortSize(void) override
returns size of the master pane in screen coordinates
void x_RenderMouseZoomHandler(CGlPane &pane)
void OnSize(wxSizeEvent &event)
CMouseZoomHandler m_MouseZoomHandler
virtual void MZHH_Scroll(TModelUnit d_x, TModelUnit d_y) override
void ResetObjectSelection()
virtual void RenderVectorGraphics(int vp_width, int vp_height) override
void SetSubjectVisibleRange(const TSeqRange &range)
virtual void AddTitle(bool b) override
CHitMatrixRenderer m_Renderer
void SetQueryVisibleRange(const TSeqRange &range)
virtual CHitMatrixRenderer & GetRenderer()
virtual string TC_GetTooltip(const wxRect &) override
Returns tooltip string and coordinates for area tootlip associated with.
virtual void MZHH_ZoomRect(const TModelRect &rc) override
void x_RenderSelHandler()
CHitMatrixWidget * x_GetParent()
virtual void UpdateVectorLayout() override
ESequence
identifies one of the two sequences in the pane
virtual const TVPRect & GetViewportRect() const override
virtual void Update(void) override
virtual void SHH_OnChanged() override
ISelHandlerHost implementation.
virtual void HMGH_OnChanged(void) override
virtual bool TC_NeedTooltip(const wxPoint &) override
ITooltip Implementation TC_NeedTooltip() and TC_GetTooltip() is everything needed to show toolitps in...
virtual TVPUnit SHH_GetWindowByModel(TModelUnit z, EOrientation orient) override
virtual TVPUnit HMGH_GetVPPosByY(int y) const override
virtual TVPUnit MZHH_GetVPPosByY(int y) const override
converts window coord to Viewport coord
virtual void x_Render(void) override
CGlWidgetPane overridables.
virtual ~CHitMatrixPane()
void x_RenderContent(void)
virtual void MZHH_SetScale(TModelUnit scale, const TModelPoint &point) override
virtual TModelUnit MZHH_GetScale(EScaleType type) override
IMouseZoomHandlerHost implementation.
virtual void MZHH_ZoomPoint(const TModelPoint &point, TModelUnit factor) override
void SetRangeSelection(const TRangeColl &coll, ESequence seq)
void SetObjectSelection(const vector< const objects::CSeq_align * > sel_aligns)
const TRangeColl & GetRangeSelection(ESequence seq) const
CHitMatrixGraph & GetGraph()
virtual bool NeedTooltip(int area, int vp_x, int vp_y)
CGlPane & GetSubjectPane()
virtual int GetAreaByVPPos(TVPUnit vp_x, TVPUnit vp_y)
CGlPane & GetMatrixPane()
virtual void Update(IHitMatrixDataSource *ds, const CGlPane &port)
TVPRect GetRect(EArea area)
virtual void Render(const CGlPane &port, bool pdf=false)
virtual string GetTooltip(int area)
virtual void Resize(int w, int h, const CGlPane &port)
Class CLinearSelHandler represents in GUI a one-dimnesional multi-segment selection.
void Render(CGlPane &Pane, ERenderingOption option=eActiveState)
void SetSelection(const TRangeColl &C, bool bRedraw)
const TRangeColl & GetSelection() const
virtual void Render(CGlPane &Pane)
@ eWidgetSelectionChanged
a view has been destroyed
virtual const IHit & GetHit() const =0
IHitMatrixDataSource - abstract Data Source for Hit Matrix Widget.
virtual const objects::CSeq_align * GetSeqAlign() const =0
iterator_bool insert(const value_type &val)
void(*)(CSeq_entry_Handle seh, IWorkbench *wb, const CSerialObject &obj) handler
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
void SetModelLimitsRect(const TModelRect &R)
static CGlResMgr & Instance()
void SetViewport(const TVPRect &R)
virtual void Enable(GLenum glstate)=0
CGlPoint< TVPUnit > TVPPoint
CGlRect & CombineWith(const CGlRect &r)
virtual void BlendFunc(GLenum sfactor, GLenum dfactor)=0
Options to be used when GL_BLEND is enabled.
TVPUnit ProjectX(TModelUnit m_x) const
IRender & GetGl()
convenience function for getting current render manager
TVPRect & GetViewport(void)
TVPUnit ProjectY(TModelUnit m_y) const
TModelUnit UnProjectX(TVPUnit m_x) const
TModelRect & GetModelLimitsRect(void)
TModelUnit UnProjectY(TVPUnit m_y) const
TModelUnit GetZoomAllScaleX(void) const
void SetCurrentRenderer(CIRef< IRender > rm)
Set current renderer (rm must already be in m_Renderers)
void SetVisibleRect(const TModelRect &R)
TModelRect & GetVisibleRect(void)
virtual void Disable(GLenum glstate)=0
glDisable()
TModelUnit GetMinScaleX(void) const
TModelUnit GetScaleX(void) const
void EnableOffset(bool b_en=true)
Offset is used as a workaround for OpenGL precision problems emerging when size of visible range is s...
virtual void RemoveListener(CEventHandler *listener)
Remove a listener.
vector< CConstRef< CObject > > TConstObjects
virtual bool Send(CEvent *evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
Sends an event synchronously.
@ eEvent_Message
message from one class to another
bool IsNull(void) const THROWS_NONE
Check if pointer is null â same effect as Empty().
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
unsigned short GetPort() const
Get the listening port number back.
TTo GetTo(void) const
Get the To member data.
TFrom GetFrom(void) const
Get the From member data.
The NCBI C++/STL use hints.
Defines: CTimeFormat - storage class for time format.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4