#include <seqgraphic_widget.hpp>
Inheritance diagram for CSeqGraphicWidget:


Definition at line 122 of file seqgraphic_widget.hpp.
Event Handling | |
| typedef CViewEvent | TEvent |
| typedef CVisibleRangeEvent | TVisibleRangeEvent |
| typedef CSelectionEvent | TSelectionEvent |
| void | OnSize (wxSizeEvent &event) |
| void | OnContextMenu (wxContextMenuEvent &event) |
| void | OnZoomObject (wxCommandEvent &event) |
| void | OnPrevSplice (wxCommandEvent &event) |
| void | OnNextSplice (wxCommandEvent &event) |
| void | OnCollapseAllTracks (wxCommandEvent &event) |
| void | OnExpandAllTracks (wxCommandEvent &event) |
| void | OnShowAllTracks (wxCommandEvent &event) |
| void | OnHideAllTracks (wxCommandEvent &event) |
| void | OnCollapseAllSubtracks (wxCommandEvent &event) |
| void | OnExpandAllSubtracks (wxCommandEvent &event) |
| void | OnMoveTrackToTop (wxCommandEvent &event) |
| void | OnMoveTrackToBottom (wxCommandEvent &event) |
| void | OnCloneTrack (wxCommandEvent &event) |
| void | OnRemoveTrack (wxCommandEvent &event) |
| void | OnAddTrack (wxCommandEvent &event) |
| void | OnZoomSelection (wxCommandEvent &event) |
| void | OnZoomSequence (wxCommandEvent &event) |
| void | OnUpdateZoomSelection (wxUpdateUIEvent &event) |
| void | OnUpdateZoomObject (wxUpdateUIEvent &event) |
| void | OnSetMarker (wxCommandEvent &event) |
| void | OnSetSeqMarkerDlg (wxCommandEvent &event) |
| void | OnResetMarker (wxCommandEvent &event) |
| void | OnResetSeqMarker (wxCommandEvent &event) |
| void | OnSetSwitchPoint (wxCommandEvent &event) |
| wuliangs | |
| void | OnSetSeqStart (wxCommandEvent &event) |
| void | OnSetSeqStartMarker (wxCommandEvent &event) |
| void | OnResetSeqStart (wxCommandEvent &event) |
| void | OnHairlineOptions (wxCommandEvent &event) |
| void | OnSeqGotoCmd (wxCommandEvent &event) |
| void | OnUpdateGoBack (wxUpdateUIEvent &event) |
| void | OnUpdateGoForward (wxUpdateUIEvent &event) |
| void | OnGoBack (wxCommandEvent &event) |
| void | OnGoForward (wxCommandEvent &event) |
| void | OnVertical (wxCommandEvent &event) |
| void | OnUpdateVertical (wxUpdateUIEvent &event) |
| void | OnUpdateSetSwitchPoint (wxUpdateUIEvent &event) |
| void | OnFlipStrands (wxCommandEvent &event) |
| void | OnUpdateFlipStrands (wxUpdateUIEvent &event) |
| void | OnEditCut (wxCommandEvent &event) |
| editing interfaces | |
| void | OnEditCopy (wxCommandEvent &event) |
| void | OnEditPaste (wxCommandEvent &event) |
| void | OnEditSelection () |
| void | OnDeleteSelection () |
| void | OnDeleteSelectionAndOrphaned () |
| void | OnObjToRangeSelection () |
| void | OnRangeToObjSelection () |
| void | OnSeqGoto (CSequenceGotoEvent &event) |
| void | OnSeqGotoClose (CSequenceGotoEvent &event) |
Public Types | |
| typedef CRangeCollection< TSeqPos > | TRangeColl |
Public Member Functions | |
| CSeqGraphicWidget (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) | |
| virtual | ~CSeqGraphicWidget () |
| virtual CGlPane & | GetPort () |
| implement these 2 functions in derived classes | |
| virtual const CGlPane & | GetPort () const |
| void | OnDataChanged () |
| void | SetInputObject (SConstScopedObject &obj) |
| access the data source | |
| CSGSequenceDS * | GetDataSource (void) const |
| void | SetExternalGlyphs (const CSeqGlyph::TObjects &objs) |
| void | ZoomOnRange (TSeqRange range, bool margins=true) |
| void | SetHorizontal (bool b_horz, bool b_flip) |
| bool | IsHorizontal () const |
| bool | IsFlipped () const |
| TModelRange | GetVisibleRange (void) const |
| returns the visible sequence range | |
| TSeqRange | GetVisibleSeqRange () const |
| bool | VisibleRangeChanged () const |
| indicates visible sequence range has changes | |
| void | ResetVisibleRangeChanged () |
| void | SelectObject (const CObject *obj) |
| set/clear selections | |
| void | SelectSeqLoc (const objects::CSeq_loc *loc) |
| void | ResetSelection () |
| void | ResetRangeSelection () |
| void | ResetObjectSelection () |
| void | Print (const CPrintOptions &opts) |
| print hook | |
| void | GetObjectSelection (TConstObjects &objs) const |
| retrieve selected objects from this widget | |
| const TRangeColl & | GetRangeSelection (void) const |
| retrieve set of intervals selected on the sequence | |
| void | SetRangeSelection (const TRangeColl &ranges) |
| void | GetRangeOrObjectSelection (TRangeColl &ranges) const |
| CRef< CSeqGraphicConfig > | GetConfig () |
| Here is the config object you are going to use to configure yourself. | |
| void | UpdateConfig () |
| The config object has changed. Do what is necessary. | |
| void | SetScaleX (TModelUnit scale, const TModelPoint &point) |
| void | UpdateHeight (TModelUnit height) |
Static Public Member Functions | |
| static void | RegisterCommands (CUICommandRegistry &cmd_reg, wxFileArtProvider &provider) |
Protected Member Functions | |
CGlWidgetBase overridables | |
| virtual void | x_CreatePane () |
| factory method creating master pane, called form x_CreateControls() | |
| virtual CGlWidgetPane * | x_GetPane () |
| virtual void | x_Update () |
| Update handlers. | |
| virtual void | x_UpdatePane () |
| virtual void | x_SetPortLimits () |
| updates model limits of the Master CGlPane | |
| virtual void | x_SaveStates () |
Protected Attributes | |
| CGlPane | m_Port |
Private Types | |
| typedef map< int, string > | TCmdToName |
Private Member Functions | |
| CLayoutTrack * | x_GetCurrentHitTrack () |
| void | x_SaveDefaultScoringMethod (string name) |
| wxMenu * | x_CreatePopupMenu (int area) |
| forbidden | |
Private Attributes | |
| auto_ptr< CSeqGraphicPane > | m_SeqGraphicPane |
| TCmdToName | m_CmdToName |
| CSequenceGotoData | m_SequenceGotoData |
| CSequenceGotoDlg * | m_SequenceGotoDlg |
|
|
Definition at line 318 of file seqgraphic_widget.hpp. |
|
|
Definition at line 208 of file seqgraphic_widget.hpp. |
|
|
Definition at line 130 of file seqgraphic_widget.hpp. |
|
|
Definition at line 210 of file seqgraphic_widget.hpp. |
|
|
Definition at line 209 of file seqgraphic_widget.hpp. |
|
||||||||||||||||||||||||
|
Definition at line 1128 of file seqgraphic_widget.cpp. References CGlPane::EnableZoom(), CGlPane::eOriginLeft, CGlPane::eOriginTop, CGlPane::fAdjustAll, kMaxPixelsBase, m_Port, CGlPane::SetAdjustmentPolicy(), CGlPane::SetMinScaleX(), and CGlPane::SetOriginType(). |
|
|
Definition at line 1143 of file seqgraphic_widget.cpp. References m_SequenceGotoDlg. |
|
|
Here is the config object you are going to use to configure yourself. make sure all your children who need it have references to it. Definition at line 1245 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. Referenced by OnHairlineOptions(). |
|
|
Definition at line 1213 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. Referenced by OnSeqGoto(), x_SetPortLimits(), and ZoomOnRange(). |
|
|
retrieve selected objects from this widget
Definition at line 1289 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. Referenced by CViewGraphic::GetSelection(), and OnUpdateZoomObject(). |
|
|
Implements CGlWidgetBase. Definition at line 396 of file seqgraphic_widget.cpp. References m_Port. |
|
|
implement these 2 functions in derived classes
Implements CGlWidgetBase. Definition at line 390 of file seqgraphic_widget.cpp. References m_Port. Referenced by CSeqGraphicPane::MZHH_GetScale(). |
|
|
Definition at line 1307 of file seqgraphic_widget.cpp. References m_SeqGraphicPane, and CRangeCollection< Position >::size(). |
|
|
retrieve set of intervals selected on the sequence
Definition at line 1296 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. Referenced by CViewGraphic::GetSearchLoc(), and CViewGraphic::GetSelection(). |
|
|
returns the visible sequence range
Definition at line 349 of file seqgraphic_widget.hpp. References CGlPane::GetVisibleRect(), CGlRect< T >::Left(), m_Port, and CGlRect< T >::Right(). Referenced by CSeqGraphicPane::x_Render(). |
|
|
Definition at line 356 of file seqgraphic_widget.hpp. References CGlPane::GetVisibleRect(), CGlRect< T >::Left(), m_Port, and CGlRect< T >::Right(). Referenced by CViewGraphic::GetVisibleRanges(), CSeqGraphicPane::NextPrevSplice(), CViewGraphic::OnVisibleRangeChanged(), and CSeqGraphicPane::SaveCurrentRange(). |
|
|
Definition at line 1251 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. Referenced by OnFlipStrands(), OnUpdateFlipStrands(), and OnVertical(). |
|
|
Definition at line 1233 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. Referenced by OnFlipStrands(), OnUpdateVertical(), OnVertical(), and OnZoomSequence(). |
|
|
Definition at line 909 of file seqgraphic_widget.cpp. References _ASSERT, _T, CwxTrackSettingsDlg::GetTrackName(), CTrackContainer::IsTrackNameUsed(), m_SeqGraphicPane, CwxTrackSettingsDlg::SetFeatPanel(), CwxTrackSettingsDlg::SetMsg(), ToStdString(), NStr::TruncateSpacesInPlace(), and x_GetCurrentHitTrack(). |
|
|
|
Definition at line 838 of file seqgraphic_widget.cpp. References CTrackContainer::ExpandAll(), and x_GetCurrentHitTrack(). |
|
|
Definition at line 815 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
Definition at line 1115 of file seqgraphic_widget.cpp. References eHorz, eVert, CGlWidgetBase::m_PopupPoint, m_SeqGraphicPane, CGlPoint< T >::m_X, CGlPoint< T >::m_Y, pos, x_CreatePopupMenu(), and CGlWidgetBase::x_ShowDecoratedPopupMenu(). |
|
|
Definition at line 402 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. Referenced by CViewGraphic::OnProjectChanged(). |
|
|
|
|
|
|
|
|
Definition at line 945 of file seqgraphic_widget.cpp. |
|
|
editing interfaces
Definition at line 939 of file seqgraphic_widget.cpp. |
|
|
Definition at line 951 of file seqgraphic_widget.cpp. |
|
|
|
|
|
Definition at line 846 of file seqgraphic_widget.cpp. References CTrackContainer::ExpandAll(), and x_GetCurrentHitTrack(). |
|
|
Definition at line 821 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
Definition at line 657 of file seqgraphic_widget.cpp. References eCmdStrandFlipped, CEventHandler::eDispatch_Default, CEventHandler::ePool_Parent, IsFlipped(), IsHorizontal(), CEventHandler::Send(), and SetHorizontal(). |
|
|
Definition at line 639 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
Definition at line 645 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
Definition at line 679 of file seqgraphic_widget.cpp. References GetConfig(), CwxHairlineDlg::SetConfig(), and CGlWidgetBase::x_RedrawControls(). |
|
|
Definition at line 832 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
Definition at line 865 of file seqgraphic_widget.cpp. References CLayoutTrack::GetId(), CLayoutTrack::GetParentTrack(), CTrackContainer::MoveTrackToBottom(), and x_GetCurrentHitTrack(). |
|
|
Definition at line 854 of file seqgraphic_widget.cpp. References CLayoutTrack::GetId(), CLayoutTrack::GetParentTrack(), CTrackContainer::MoveTrackToTop(), and x_GetCurrentHitTrack(). |
|
|
Definition at line 808 of file seqgraphic_widget.cpp. References CSeqGraphicPane::eDir_Next, and m_SeqGraphicPane. |
|
|
Definition at line 957 of file seqgraphic_widget.cpp. |
|
|
Definition at line 801 of file seqgraphic_widget.cpp. References CSeqGraphicPane::eDir_Prev, and m_SeqGraphicPane. |
|
|
Definition at line 962 of file seqgraphic_widget.cpp. |
|
|
Definition at line 898 of file seqgraphic_widget.cpp. References _ASSERT, CLayoutTrack::GetId(), CLayoutTrack::GetParentTrack(), CTrackContainer::RemoveTrack(), and x_GetCurrentHitTrack(). |
|
|
Definition at line 719 of file seqgraphic_widget.cpp. References m_SeqGraphicPane, and CGlWidgetBase::x_RedrawControls(). |
|
|
Definition at line 726 of file seqgraphic_widget.cpp. References m_SeqGraphicPane, and CGlWidgetBase::x_RedrawControls(). |
|
|
Definition at line 767 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
Definition at line 619 of file seqgraphic_widget.cpp. References GetDataSource(), CSequenceGotoData::GetRange(), CSGSequenceDS::GetSequenceLength(), len, m_SeqGraphicPane, m_SequenceGotoData, and ZoomOnRange(). |
|
|
Definition at line 632 of file seqgraphic_widget.cpp. References m_SequenceGotoDlg. |
|
|
Definition at line 604 of file seqgraphic_widget.cpp. References m_SequenceGotoData, and m_SequenceGotoDlg. |
|
|
Definition at line 712 of file seqgraphic_widget.cpp. References CGlWidgetBase::m_PopupPoint, m_SeqGraphicPane, and CGlWidgetBase::x_RedrawControls(). |
|
|
Definition at line 702 of file seqgraphic_widget.cpp. References m_SeqGraphicPane, and CGlWidgetBase::x_RedrawControls(). |
|
|
Definition at line 761 of file seqgraphic_widget.cpp. References CGlWidgetBase::m_PopupPoint, and m_SeqGraphicPane. |
|
|
Definition at line 754 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
wuliangs
Definition at line 746 of file seqgraphic_widget.cpp. References m_SeqGraphicPane, and CGlWidgetBase::x_RedrawControls(). |
|
|
Definition at line 827 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
Reimplemented from CGlWidgetBase. Definition at line 967 of file seqgraphic_widget.cpp. References m_SeqGraphicPane, and CGlWidgetBase::OnSize(). |
|
|
Definition at line 571 of file seqgraphic_widget.cpp. References IsFlipped(). |
|
|
Definition at line 591 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
Definition at line 597 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
Definition at line 462 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
Definition at line 565 of file seqgraphic_widget.cpp. References IsHorizontal(). |
|
|
Definition at line 583 of file seqgraphic_widget.cpp. References GetObjectSelection(). |
|
|
Definition at line 577 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
Definition at line 651 of file seqgraphic_widget.cpp. References IsFlipped(), IsHorizontal(), and SetHorizontal(). |
|
|
Definition at line 794 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
Definition at line 784 of file seqgraphic_widget.cpp. References CRangeCollection< Position >::GetFrom(), CRangeCollection< Position >::GetTo(), m_SeqGraphicPane, and ZoomOnRange(). |
|
|
Definition at line 774 of file seqgraphic_widget.cpp. References CGlRect< T >::CenterPoint(), CGlPane::GetMinScaleX(), CGlPane::GetMinScaleY(), CGlPane::GetVisibleRect(), IsHorizontal(), m_Port, CGlPane::SetScale(), x_SaveStates(), and CGlWidgetBase::x_UpdateOnZoom(). |
|
|
print hook
Definition at line 1219 of file seqgraphic_widget.cpp. |
|
||||||||||||
|
|
Definition at line 1282 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
Definition at line 1276 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. Referenced by CViewGraphic::x_OnSetSelection(). |
|
|
Definition at line 1270 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
Definition at line 1200 of file seqgraphic_widget.cpp. |
|
|
set/clear selections
Definition at line 1258 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
|
|
|
|
Definition at line 1157 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
||||||||||||
|
Definition at line 1226 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. Referenced by CSeqGraphicDemoDlg::OnFlipStrand(), OnFlipStrands(), and OnVertical(). |
|
|
access the data source
Definition at line 1206 of file seqgraphic_widget.cpp. References m_SeqGraphicPane, and x_Update(). Referenced by CViewGraphic::InitView(), and CSeqGraphicDemoDlg::OnAccClick(). |
|
|
Definition at line 1302 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. Referenced by CViewGraphic::x_OnSetSelection(). |
|
||||||||||||
|
Definition at line 999 of file seqgraphic_widget.cpp. References CGlPane::GetScaleY(), m_Port, CGlPane::SetScaleRefPoint(), and CGlWidgetBase::x_UpdateOnZoom(). Referenced by CSeqGraphicPane::MZHH_SetScale(). |
|
|
The config object has changed. Do what is necessary.
Definition at line 1326 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. Referenced by CViewGraphic::InitView(), and CSeqGraphicDemoDlg::OnAccClick(). |
|
|
Definition at line 976 of file seqgraphic_widget.cpp. References CGlPane::GetModelLimitsRect(), CGlPane::GetViewport(), CGlPane::GetVisibleRect(), CGlRect< T >::Height(), m_Port, CGlRect< T >::SetBottom(), CGlPane::SetModelLimitsRect(), CGlPane::SetVisibleRect(), CGlRect< T >::Top(), and CGlWidgetBase::x_UpdateScrollbars(). Referenced by CSeqGraphicPane::x_Render(). |
|
|
indicates visible sequence range has changes
Definition at line 1194 of file seqgraphic_widget.cpp. |
|
|
factory method creating master pane, called form x_CreateControls()
Implements CGlWidgetBase. Definition at line 332 of file seqgraphic_widget.cpp. |
|
|
|
Definition at line 1336 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. Referenced by OnAddTrack(), OnCloneTrack(), OnCollapseAllSubtracks(), OnExpandAllSubtracks(), OnMoveTrackToBottom(), OnMoveTrackToTop(), and OnRemoveTrack(). |
|
|
Reimplemented from CGlWidgetBase. Definition at line 338 of file seqgraphic_widget.cpp. References auto_ptr< X >::get(), and m_SeqGraphicPane. |
|
|
|
|
|
Reimplemented from CGlWidgetBase. Definition at line 360 of file seqgraphic_widget.cpp. References auto_ptr< X >::get(), and m_SeqGraphicPane. Referenced by OnZoomSequence(). |
|
|
updates model limits of the Master CGlPane
Implements CGlWidgetBase. Definition at line 344 of file seqgraphic_widget.cpp. References GetDataSource(), CSGSequenceDS::GetSequenceLength(), CGlPane::GetViewport(), CGlRect< T >::Height(), m_Port, CGlRect< T >::SetHorz(), CGlPane::SetModelLimitsRect(), CGlRect< T >::SetVert(), and CGlPane::SetVisibleRect(). Referenced by x_Update(). |
|
|
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 374 of file seqgraphic_widget.cpp. References CGlWidgetBase::x_RedrawControls(), x_SetPortLimits(), and CGlWidgetBase::x_UpdateScrollbars(). Referenced by SetInputObject(). |
|
|
Definition at line 369 of file seqgraphic_widget.cpp. References m_SeqGraphicPane. |
|
||||||||||||
|
|
Definition at line 330 of file seqgraphic_widget.hpp. |
|
|
Definition at line 315 of file seqgraphic_widget.hpp. Referenced by CSeqGraphicWidget(), GetPort(), GetVisibleRange(), GetVisibleSeqRange(), OnZoomSequence(), SetScaleX(), UpdateHeight(), x_SetPortLimits(), and ZoomOnRange(). |
|
|
|
Definition at line 341 of file seqgraphic_widget.hpp. Referenced by OnSeqGoto(), and OnSeqGotoCmd(). |
|
|
Definition at line 342 of file seqgraphic_widget.hpp. Referenced by OnSeqGotoClose(), OnSeqGotoCmd(), and ~CSeqGraphicWidget(). |
1.4.6
Modified on Mon Dec 07 16:24:02 2009 by modify_doxy.py rev. 173732