CCrossAlnWidget Class Reference

Search Toolkit Book for CCrossAlnWidget

#include <cross_aln_widget.hpp>

Inheritance diagram for CCrossAlnWidget:

Inheritance graph
[legend]
Collaboration diagram for CCrossAlnWidget:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 84 of file cross_aln_widget.hpp.

Public Types

typedef CRangeCollection<
TSeqPos
TRangeColl

Public Member Functions

 CCrossAlnWidget (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
virtual ~CCrossAlnWidget ()
virtual CGlPaneGetPort ()
 implement these 2 functions in derived classes
virtual const CGlPaneGetPort () const
void SetDataSource (ICrossAlnDataSource *ds)
void OnChooseSeq (wxCommandEvent &event)
void OnColorByScore (wxCommandEvent &event)
void OnColorBySegments (wxCommandEvent &event)
void Update ()
void OnSize (wxSizeEvent &event)
void OnScrollQ (wxScrollEvent &event)
void OnScrollS (wxScrollEvent &event)
void OnContextMenu (wxContextMenuEvent &event)
void OnZoomAll (wxCommandEvent &event)
void OnZoomIn (wxCommandEvent &event)
void OnZoomOut (wxCommandEvent &event)
void OnZoomToSeq (wxCommandEvent &event)
void OnZoomAll_Q (wxCommandEvent &event)
void OnZoomIn_Q (wxCommandEvent &event)
void OnZoomOut_Q (wxCommandEvent &event)
void OnZoomToSeq_Q (wxCommandEvent &event)
void OnZoomAll_S (wxCommandEvent &event)
void OnZoomIn_S (wxCommandEvent &event)
void OnZoomOut_S (wxCommandEvent &event)
void OnZoomToSeq_S (wxCommandEvent &event)
void OnZoomSelection (wxCommandEvent &event)
void OnUpdateZoomSelection (wxUpdateUIEvent &event)
void UpdateScrollbars ()
Visible Range API
TSeqRange GetSubjectVisibleRange () const
void SetSubjectVisibleRange (const TSeqRange &range)
TSeqRange GetQueryVisibleRange () const
void SetQueryVisibleRange (const TSeqRange &range)
Selection API
const TRangeCollGetSubjectRangeSelection () const
const TRangeCollGetQueryRangeSelection () const
void SetSubjectRangeSelection (const TRangeColl &coll)
void SetQueryRangeSelection (const TRangeColl &coll)
void ResetObjectSelection ()
void GetObjectSelection (TConstObjects &objs) const
void SetObjectSelection (const vector< const objects::CSeq_align * > sel_aligns)

Static Public Member Functions

static void RegisterCommands (CUICommandRegistry &cmd_reg, wxFileArtProvider &provider)

Protected Member Functions

virtual void x_CreateControls ()
 creates Pane, Scrollbars and other child widgets, called from Create()
virtual void x_CreatePane ()
 factory method creating master pane, called form x_CreateControls()
virtual CGlWidgetPanex_GetPane ()
virtual void x_Update ()
 Update handlers.
virtual void x_UpdatePane ()
virtual void x_SetPortLimits ()
 updates model limits of the Master CGlPane

Protected Attributes

auto_ptr< CCrossAlnPanem_CrossPane
CGlPane m_Port


Member Typedef Documentation

typedef CRangeCollection<TSeqPos> CCrossAlnWidget::TRangeColl
 

Definition at line 90 of file cross_aln_widget.hpp.


Constructor & Destructor Documentation

static CCrossAlnWidget::CCrossAlnWidget wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL
 

Definition at line 126 of file cross_aln_widget.cpp.

CCrossAlnWidget::~CCrossAlnWidget  )  [virtual]
 

Definition at line 134 of file cross_aln_widget.cpp.


Member Function Documentation

void CCrossAlnWidget::GetObjectSelection TConstObjects objs  )  const
 

Definition at line 559 of file cross_aln_widget.cpp.

References m_CrossPane.

Referenced by CCrossAlignView::GetSelection().

const CGlPane & CCrossAlnWidget::GetPort  )  const [virtual]
 

Implements CGlWidgetBase.

Definition at line 191 of file cross_aln_widget.cpp.

References m_Port.

CGlPane & CCrossAlnWidget::GetPort  )  [virtual]
 

implement these 2 functions in derived classes

Implements CGlWidgetBase.

Definition at line 185 of file cross_aln_widget.cpp.

References m_Port.

Referenced by CCrossAlignView::GetVisibleRanges(), and CCrossAlignView::OnVisibleRangeChanged().

const CCrossAlnWidget::TRangeColl & CCrossAlnWidget::GetQueryRangeSelection  )  const
 

Definition at line 535 of file cross_aln_widget.cpp.

References m_CrossPane.

Referenced by CCrossAlignView::GetSelection().

TSeqRange CCrossAlnWidget::GetQueryVisibleRange  )  const
 

Definition at line 511 of file cross_aln_widget.cpp.

References CGlPane::GetVisibleRect(), CGlRect< T >::Left(), m_CrossPane, CGlRect< T >::Right(), COpenRange< Position >::SetFrom(), and COpenRange< Position >::SetTo().

const CCrossAlnWidget::TRangeColl & CCrossAlnWidget::GetSubjectRangeSelection  )  const
 

Definition at line 528 of file cross_aln_widget.cpp.

References m_CrossPane.

Referenced by CCrossAlignView::GetSelection().

TSeqRange CCrossAlnWidget::GetSubjectVisibleRange  )  const
 

Definition at line 495 of file cross_aln_widget.cpp.

References CGlPane::GetVisibleRect(), CGlRect< T >::Left(), m_CrossPane, CGlRect< T >::Right(), COpenRange< Position >::SetFrom(), and COpenRange< Position >::SetTo().

void CCrossAlnWidget::OnChooseSeq wxCommandEvent &  event  ) 
 

Definition at line 240 of file cross_aln_widget.cpp.

References _T, IHitSeqId::Equals(), CwxChooseSeqDlg::GetParams(), CwxChooseSeqDlg::GetQueryId(), CwxChooseSeqDlg::GetSubjectId(), m_CrossPane, CwxChooseSeqDlg::SetSeqs(), and Update().

void CCrossAlnWidget::OnColorByScore wxCommandEvent &  event  ) 
 

Definition at line 284 of file cross_aln_widget.cpp.

void CCrossAlnWidget::OnColorBySegments wxCommandEvent &  event  ) 
 

Definition at line 278 of file cross_aln_widget.cpp.

References m_CrossPane.

void CCrossAlnWidget::OnContextMenu wxContextMenuEvent &  event  ) 
 

Definition at line 580 of file cross_aln_widget.cpp.

References CUICommandRegistry::CreateMenu(), and CUICommandRegistry::GetInstance().

void CCrossAlnWidget::OnScrollQ wxScrollEvent &  event  ) 
 

Definition at line 447 of file cross_aln_widget.cpp.

References m_CrossPane, and UpdateScrollbars().

void CCrossAlnWidget::OnScrollS wxScrollEvent &  event  ) 
 

Definition at line 457 of file cross_aln_widget.cpp.

References m_CrossPane, and UpdateScrollbars().

void CCrossAlnWidget::OnSize wxSizeEvent &  event  ) 
 

Reimplemented from CGlWidgetBase.

Definition at line 381 of file cross_aln_widget.cpp.

References m_CrossPane, CGlWidgetBase::OnSize(), and x_GetPane().

void CCrossAlnWidget::OnUpdateZoomSelection wxUpdateUIEvent &  event  ) 
 

Definition at line 216 of file cross_aln_widget.cpp.

References m_CrossPane, and CRangeCollection< Position >::size().

void CCrossAlnWidget::OnZoomAll wxCommandEvent &  event  ) 
 

Reimplemented from CGlWidgetBase.

Definition at line 323 of file cross_aln_widget.cpp.

References m_CrossPane.

void CCrossAlnWidget::OnZoomAll_Q wxCommandEvent &  event  ) 
 

Definition at line 342 of file cross_aln_widget.cpp.

References m_CrossPane.

void CCrossAlnWidget::OnZoomAll_S wxCommandEvent &  event  ) 
 

Definition at line 361 of file cross_aln_widget.cpp.

References m_CrossPane.

void CCrossAlnWidget::OnZoomIn wxCommandEvent &  event  ) 
 

Reimplemented from CGlWidgetBase.

Definition at line 329 of file cross_aln_widget.cpp.

References m_CrossPane.

void CCrossAlnWidget::OnZoomIn_Q wxCommandEvent &  event  ) 
 

Definition at line 348 of file cross_aln_widget.cpp.

References m_CrossPane.

void CCrossAlnWidget::OnZoomIn_S wxCommandEvent &  event  ) 
 

Definition at line 367 of file cross_aln_widget.cpp.

References m_CrossPane.

void CCrossAlnWidget::OnZoomOut wxCommandEvent &  event  ) 
 

Reimplemented from CGlWidgetBase.

Definition at line 335 of file cross_aln_widget.cpp.

References m_CrossPane.

void CCrossAlnWidget::OnZoomOut_Q wxCommandEvent &  event  ) 
 

Definition at line 354 of file cross_aln_widget.cpp.

References m_CrossPane.

void CCrossAlnWidget::OnZoomOut_S wxCommandEvent &  event  ) 
 

Definition at line 373 of file cross_aln_widget.cpp.

References m_CrossPane.

void CCrossAlnWidget::OnZoomSelection wxCommandEvent &  event  ) 
 

Definition at line 226 of file cross_aln_widget.cpp.

References CRangeCollection< Position >::GetFrom(), CRangeCollection< Position >::GetToOpen(), m_CrossPane, and CRangeCollection< Position >::size().

void CCrossAlnWidget::OnZoomToSeq wxCommandEvent &  event  ) 
 

Definition at line 468 of file cross_aln_widget.cpp.

References m_CrossPane.

void CCrossAlnWidget::OnZoomToSeq_Q wxCommandEvent &  event  ) 
 

Definition at line 475 of file cross_aln_widget.cpp.

References m_CrossPane.

void CCrossAlnWidget::OnZoomToSeq_S wxCommandEvent &  event  ) 
 

Definition at line 481 of file cross_aln_widget.cpp.

References m_CrossPane.

void CCrossAlnWidget::RegisterCommands CUICommandRegistry cmd_reg,
wxFileArtProvider provider
[static]
 

Definition at line 50 of file cross_aln_widget.cpp.

References eCmdChooseSeq, eCmdZoomAllQuery, eCmdZoomAllSubject, eCmdZoomInQuery, eCmdZoomInSubject, eCmdZoomOutQuery, eCmdZoomOutSubject, eCmdZoomSeqQuery, eCmdZoomSeqSubject, and CUICommandRegistry::RegisterCommand().

Referenced by CCrossAlnDemoDlg::Init(), and CCrossAlignViewFactory::RegisterCommands().

void CCrossAlnWidget::ResetObjectSelection  ) 
 

Definition at line 553 of file cross_aln_widget.cpp.

References m_CrossPane.

void CCrossAlnWidget::SetDataSource ICrossAlnDataSource ds  ) 
 

Definition at line 487 of file cross_aln_widget.cpp.

References m_CrossPane, and x_Update().

Referenced by CCrossAlnDemoDlg::OnAccClick(), CCrossAlnDemoDlg::OnFileClick(), and CCrossAlignView::x_PostAttachToProject().

void CCrossAlnWidget::SetObjectSelection const vector< const objects::CSeq_align * >  sel_aligns  ) 
 

void CCrossAlnWidget::SetQueryRangeSelection const TRangeColl coll  ) 
 

Definition at line 547 of file cross_aln_widget.cpp.

References m_CrossPane.

void CCrossAlnWidget::SetQueryVisibleRange const TSeqRange range  ) 
 

Definition at line 521 of file cross_aln_widget.cpp.

References COpenRange< Position >::GetFrom(), COpenRange< Position >::GetTo(), and m_CrossPane.

Referenced by CCrossAlignView::OnVisibleRangeChanged().

void CCrossAlnWidget::SetSubjectRangeSelection const TRangeColl coll  ) 
 

Definition at line 541 of file cross_aln_widget.cpp.

References m_CrossPane.

Referenced by CCrossAlignView::x_OnSetSelection().

void CCrossAlnWidget::SetSubjectVisibleRange const TSeqRange range  ) 
 

Definition at line 505 of file cross_aln_widget.cpp.

References COpenRange< Position >::GetFrom(), COpenRange< Position >::GetTo(), and m_CrossPane.

Referenced by CCrossAlignView::OnVisibleRangeChanged().

void CCrossAlnWidget::Update  ) 
 

Definition at line 571 of file cross_aln_widget.cpp.

References m_CrossPane, and UpdateScrollbars().

Referenced by OnChooseSeq().

void CCrossAlnWidget::UpdateScrollbars  ) 
 

Definition at line 411 of file cross_aln_widget.cpp.

References ID_SCROLLBAR_Q, ID_SCROLLBAR_S, CGlRect< T >::Left(), m_CrossPane, CGlRect< T >::Right(), and CGlRect< T >::Width().

Referenced by OnScrollQ(), OnScrollS(), Update(), x_Update(), and CCrossAlnPane::x_UpdateOnZoom().

void CCrossAlnWidget::x_CreateControls  )  [protected, virtual]
 

creates Pane, Scrollbars and other child widgets, called from Create()

Reimplemented from CGlWidgetBase.

Definition at line 139 of file cross_aln_widget.cpp.

References _ASSERT, ID_SCROLLBAR_Q, ID_SCROLLBAR_S, x_CreatePane(), and x_GetPane().

void CCrossAlnWidget::x_CreatePane  )  [protected, virtual]
 

factory method creating master pane, called form x_CreateControls()

Implements CGlWidgetBase.

Definition at line 168 of file cross_aln_widget.cpp.

References m_CrossPane, and auto_ptr< X >::reset().

Referenced by x_CreateControls().

CGlWidgetPane * CCrossAlnWidget::x_GetPane  )  [protected, virtual]
 

Reimplemented from CGlWidgetBase.

Definition at line 174 of file cross_aln_widget.cpp.

References auto_ptr< X >::get(), and m_CrossPane.

Referenced by OnSize(), and x_CreateControls().

void CCrossAlnWidget::x_SetPortLimits  )  [protected, virtual]
 

updates model limits of the Master CGlPane

Implements CGlWidgetBase.

Definition at line 180 of file cross_aln_widget.cpp.

void CCrossAlnWidget::x_Update  )  [protected, virtual]
 

Update handlers.

Update data strutures update m_Port (x_SetPortLimits) update visible rect in m_Port x_UpdateScrollbars() if necessary x_UpdatePanes() ? x_RedrawControls()

Reimplemented from CGlWidgetBase.

Definition at line 197 of file cross_aln_widget.cpp.

References m_CrossPane, UpdateScrollbars(), and CGlWidgetBase::x_RedrawControls().

Referenced by SetDataSource().

void CCrossAlnWidget::x_UpdatePane  )  [protected, virtual]
 

Definition at line 208 of file cross_aln_widget.cpp.


Member Data Documentation

auto_ptr<CCrossAlnPane> CCrossAlnWidget::m_CrossPane [protected]
 

Definition at line 178 of file cross_aln_widget.hpp.

Referenced by GetObjectSelection(), GetQueryRangeSelection(), GetQueryVisibleRange(), GetSubjectRangeSelection(), GetSubjectVisibleRange(), OnChooseSeq(), OnColorBySegments(), OnScrollQ(), OnScrollS(), OnSize(), OnUpdateZoomSelection(), OnZoomAll(), OnZoomAll_Q(), OnZoomAll_S(), OnZoomIn(), OnZoomIn_Q(), OnZoomIn_S(), OnZoomOut(), OnZoomOut_Q(), OnZoomOut_S(), OnZoomSelection(), OnZoomToSeq(), OnZoomToSeq_Q(), OnZoomToSeq_S(), ResetObjectSelection(), SetDataSource(), SetQueryRangeSelection(), SetQueryVisibleRange(), SetSubjectRangeSelection(), SetSubjectVisibleRange(), Update(), UpdateScrollbars(), x_CreatePane(), x_GetPane(), and x_Update().

CGlPane CCrossAlnWidget::m_Port [protected]
 

Definition at line 179 of file cross_aln_widget.hpp.

Referenced by GetPort().


The documentation for this class was generated from the following files:
Generated on Mon Dec 7 10:59:03 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:22:55 2009 by modify_doxy.py rev. 173732