CSeqGraphicWidget Class Reference

Search Toolkit Book for CSeqGraphicWidget

#include <seqgraphic_widget.hpp>

Inheritance diagram for CSeqGraphicWidget:

Inheritance graph
[legend]
Collaboration diagram for CSeqGraphicWidget:

Collaboration graph
[legend]
List of all members.

Detailed Description

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 CGlPaneGetPort ()
 implement these 2 functions in derived classes
virtual const CGlPaneGetPort () const
void OnDataChanged ()
void SetInputObject (SConstScopedObject &obj)
 access the data source
CSGSequenceDSGetDataSource (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 TRangeCollGetRangeSelection (void) const
 retrieve set of intervals selected on the sequence
void SetRangeSelection (const TRangeColl &ranges)
void GetRangeOrObjectSelection (TRangeColl &ranges) const
CRef< CSeqGraphicConfigGetConfig ()
 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 CGlWidgetPanex_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

CLayoutTrackx_GetCurrentHitTrack ()
void x_SaveDefaultScoringMethod (string name)
wxMenu * x_CreatePopupMenu (int area)
 forbidden

Private Attributes

auto_ptr< CSeqGraphicPanem_SeqGraphicPane
TCmdToName m_CmdToName
CSequenceGotoData m_SequenceGotoData
CSequenceGotoDlgm_SequenceGotoDlg


Member Typedef Documentation

typedef map<int, string> CSeqGraphicWidget::TCmdToName [private]
 

Definition at line 318 of file seqgraphic_widget.hpp.

typedef CViewEvent CSeqGraphicWidget::TEvent
 

Definition at line 208 of file seqgraphic_widget.hpp.

typedef CRangeCollection<TSeqPos> CSeqGraphicWidget::TRangeColl
 

Definition at line 130 of file seqgraphic_widget.hpp.

typedef CSelectionEvent CSeqGraphicWidget::TSelectionEvent
 

Definition at line 210 of file seqgraphic_widget.hpp.

typedef CVisibleRangeEvent CSeqGraphicWidget::TVisibleRangeEvent
 

Definition at line 209 of file seqgraphic_widget.hpp.


Constructor & Destructor Documentation

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

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().

CSeqGraphicWidget::~CSeqGraphicWidget  )  [virtual]
 

Definition at line 1143 of file seqgraphic_widget.cpp.

References m_SequenceGotoDlg.


Member Function Documentation

CRef< CSeqGraphicConfig > CSeqGraphicWidget::GetConfig  ) 
 

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().

CSGSequenceDS * CSeqGraphicWidget::GetDataSource void   )  const
 

Definition at line 1213 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

Referenced by OnSeqGoto(), x_SetPortLimits(), and ZoomOnRange().

void CSeqGraphicWidget::GetObjectSelection TConstObjects objs  )  const
 

retrieve selected objects from this widget

Definition at line 1289 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

Referenced by CViewGraphic::GetSelection(), and OnUpdateZoomObject().

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

Implements CGlWidgetBase.

Definition at line 396 of file seqgraphic_widget.cpp.

References m_Port.

CGlPane & CSeqGraphicWidget::GetPort  )  [virtual]
 

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().

void CSeqGraphicWidget::GetRangeOrObjectSelection TRangeColl ranges  )  const
 

Definition at line 1307 of file seqgraphic_widget.cpp.

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

const CSeqGraphicWidget::TRangeColl & CSeqGraphicWidget::GetRangeSelection void   )  const
 

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().

TModelRange CSeqGraphicWidget::GetVisibleRange void   )  const [inline]
 

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().

TSeqRange CSeqGraphicWidget::GetVisibleSeqRange  )  const [inline]
 

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().

bool CSeqGraphicWidget::IsFlipped  )  const
 

Definition at line 1251 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

Referenced by OnFlipStrands(), OnUpdateFlipStrands(), and OnVertical().

bool CSeqGraphicWidget::IsHorizontal  )  const
 

Definition at line 1233 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

Referenced by OnFlipStrands(), OnUpdateVertical(), OnVertical(), and OnZoomSequence().

void CSeqGraphicWidget::OnAddTrack wxCommandEvent &  event  ) 
 

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().

void CSeqGraphicWidget::OnCloneTrack wxCommandEvent &  event  ) 
 

Definition at line 876 of file seqgraphic_widget.cpp.

References _ASSERT, CTrackContainer::CloneTrack(), CLayoutTrack::GetFullTitle(), CLayoutTrack::GetId(), CLayoutTrack::GetParentTrack(), CwxTrackNameDlg::GetTrackName(), CTrackContainer::IsTrackNameUsed(), CwxTrackNameDlg::SetTrackName(), ToStdString(), ToWxString(), NStr::TruncateSpacesInPlace(), and x_GetCurrentHitTrack().

void CSeqGraphicWidget::OnCollapseAllSubtracks wxCommandEvent &  event  ) 
 

Definition at line 838 of file seqgraphic_widget.cpp.

References CTrackContainer::ExpandAll(), and x_GetCurrentHitTrack().

void CSeqGraphicWidget::OnCollapseAllTracks wxCommandEvent &  event  ) 
 

Definition at line 815 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::OnContextMenu wxContextMenuEvent &  event  ) 
 

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().

void CSeqGraphicWidget::OnDataChanged  ) 
 

Definition at line 402 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

Referenced by CViewGraphic::OnProjectChanged().

void CSeqGraphicWidget::OnDeleteSelection  ) 
 

void CSeqGraphicWidget::OnDeleteSelectionAndOrphaned  ) 
 

void CSeqGraphicWidget::OnEditCopy wxCommandEvent &  event  ) 
 

Definition at line 945 of file seqgraphic_widget.cpp.

void CSeqGraphicWidget::OnEditCut wxCommandEvent &  event  ) 
 

editing interfaces

Definition at line 939 of file seqgraphic_widget.cpp.

void CSeqGraphicWidget::OnEditPaste wxCommandEvent &  event  ) 
 

Definition at line 951 of file seqgraphic_widget.cpp.

void CSeqGraphicWidget::OnEditSelection  ) 
 

void CSeqGraphicWidget::OnExpandAllSubtracks wxCommandEvent &  event  ) 
 

Definition at line 846 of file seqgraphic_widget.cpp.

References CTrackContainer::ExpandAll(), and x_GetCurrentHitTrack().

void CSeqGraphicWidget::OnExpandAllTracks wxCommandEvent &  event  ) 
 

Definition at line 821 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::OnFlipStrands wxCommandEvent &  event  ) 
 

Definition at line 657 of file seqgraphic_widget.cpp.

References eCmdStrandFlipped, CEventHandler::eDispatch_Default, CEventHandler::ePool_Parent, IsFlipped(), IsHorizontal(), CEventHandler::Send(), and SetHorizontal().

void CSeqGraphicWidget::OnGoBack wxCommandEvent &  event  ) 
 

Definition at line 639 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::OnGoForward wxCommandEvent &  event  ) 
 

Definition at line 645 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::OnHairlineOptions wxCommandEvent &  event  ) 
 

Definition at line 679 of file seqgraphic_widget.cpp.

References GetConfig(), CwxHairlineDlg::SetConfig(), and CGlWidgetBase::x_RedrawControls().

void CSeqGraphicWidget::OnHideAllTracks wxCommandEvent &  event  ) 
 

Definition at line 832 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::OnMoveTrackToBottom wxCommandEvent &  event  ) 
 

Definition at line 865 of file seqgraphic_widget.cpp.

References CLayoutTrack::GetId(), CLayoutTrack::GetParentTrack(), CTrackContainer::MoveTrackToBottom(), and x_GetCurrentHitTrack().

void CSeqGraphicWidget::OnMoveTrackToTop wxCommandEvent &  event  ) 
 

Definition at line 854 of file seqgraphic_widget.cpp.

References CLayoutTrack::GetId(), CLayoutTrack::GetParentTrack(), CTrackContainer::MoveTrackToTop(), and x_GetCurrentHitTrack().

void CSeqGraphicWidget::OnNextSplice wxCommandEvent &  event  ) 
 

Definition at line 808 of file seqgraphic_widget.cpp.

References CSeqGraphicPane::eDir_Next, and m_SeqGraphicPane.

void CSeqGraphicWidget::OnObjToRangeSelection  ) 
 

Definition at line 957 of file seqgraphic_widget.cpp.

void CSeqGraphicWidget::OnPrevSplice wxCommandEvent &  event  ) 
 

Definition at line 801 of file seqgraphic_widget.cpp.

References CSeqGraphicPane::eDir_Prev, and m_SeqGraphicPane.

void CSeqGraphicWidget::OnRangeToObjSelection  ) 
 

Definition at line 962 of file seqgraphic_widget.cpp.

void CSeqGraphicWidget::OnRemoveTrack wxCommandEvent &  event  ) 
 

Definition at line 898 of file seqgraphic_widget.cpp.

References _ASSERT, CLayoutTrack::GetId(), CLayoutTrack::GetParentTrack(), CTrackContainer::RemoveTrack(), and x_GetCurrentHitTrack().

void CSeqGraphicWidget::OnResetMarker wxCommandEvent &  event  ) 
 

Definition at line 719 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane, and CGlWidgetBase::x_RedrawControls().

void CSeqGraphicWidget::OnResetSeqMarker wxCommandEvent &  event  ) 
 

Definition at line 726 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane, and CGlWidgetBase::x_RedrawControls().

void CSeqGraphicWidget::OnResetSeqStart wxCommandEvent &  event  ) 
 

Definition at line 767 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::OnSeqGoto CSequenceGotoEvent event  ) 
 

Definition at line 619 of file seqgraphic_widget.cpp.

References GetDataSource(), CSequenceGotoData::GetRange(), CSGSequenceDS::GetSequenceLength(), len, m_SeqGraphicPane, m_SequenceGotoData, and ZoomOnRange().

void CSeqGraphicWidget::OnSeqGotoClose CSequenceGotoEvent event  ) 
 

Definition at line 632 of file seqgraphic_widget.cpp.

References m_SequenceGotoDlg.

void CSeqGraphicWidget::OnSeqGotoCmd wxCommandEvent &  event  ) 
 

Definition at line 604 of file seqgraphic_widget.cpp.

References m_SequenceGotoData, and m_SequenceGotoDlg.

void CSeqGraphicWidget::OnSetMarker wxCommandEvent &  event  ) 
 

Definition at line 712 of file seqgraphic_widget.cpp.

References CGlWidgetBase::m_PopupPoint, m_SeqGraphicPane, and CGlWidgetBase::x_RedrawControls().

void CSeqGraphicWidget::OnSetSeqMarkerDlg wxCommandEvent &  event  ) 
 

Definition at line 702 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane, and CGlWidgetBase::x_RedrawControls().

void CSeqGraphicWidget::OnSetSeqStart wxCommandEvent &  event  ) 
 

Definition at line 761 of file seqgraphic_widget.cpp.

References CGlWidgetBase::m_PopupPoint, and m_SeqGraphicPane.

void CSeqGraphicWidget::OnSetSeqStartMarker wxCommandEvent &  event  ) 
 

Definition at line 754 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::OnSetSwitchPoint wxCommandEvent &  event  ) 
 

wuliangs

Definition at line 746 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane, and CGlWidgetBase::x_RedrawControls().

void CSeqGraphicWidget::OnShowAllTracks wxCommandEvent &  event  ) 
 

Definition at line 827 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::OnSize wxSizeEvent &  event  ) 
 

Reimplemented from CGlWidgetBase.

Definition at line 967 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane, and CGlWidgetBase::OnSize().

void CSeqGraphicWidget::OnUpdateFlipStrands wxUpdateUIEvent &  event  ) 
 

Definition at line 571 of file seqgraphic_widget.cpp.

References IsFlipped().

void CSeqGraphicWidget::OnUpdateGoBack wxUpdateUIEvent &  event  ) 
 

Definition at line 591 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::OnUpdateGoForward wxUpdateUIEvent &  event  ) 
 

Definition at line 597 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::OnUpdateSetSwitchPoint wxUpdateUIEvent &  event  ) 
 

Definition at line 462 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::OnUpdateVertical wxUpdateUIEvent &  event  ) 
 

Definition at line 565 of file seqgraphic_widget.cpp.

References IsHorizontal().

void CSeqGraphicWidget::OnUpdateZoomObject wxUpdateUIEvent &  event  ) 
 

Definition at line 583 of file seqgraphic_widget.cpp.

References GetObjectSelection().

void CSeqGraphicWidget::OnUpdateZoomSelection wxUpdateUIEvent &  event  ) 
 

Definition at line 577 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::OnVertical wxCommandEvent &  event  ) 
 

Definition at line 651 of file seqgraphic_widget.cpp.

References IsFlipped(), IsHorizontal(), and SetHorizontal().

void CSeqGraphicWidget::OnZoomObject wxCommandEvent &  event  ) 
 

Definition at line 794 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::OnZoomSelection wxCommandEvent &  event  ) 
 

Definition at line 784 of file seqgraphic_widget.cpp.

References CRangeCollection< Position >::GetFrom(), CRangeCollection< Position >::GetTo(), m_SeqGraphicPane, and ZoomOnRange().

void CSeqGraphicWidget::OnZoomSequence wxCommandEvent &  event  ) 
 

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().

void CSeqGraphicWidget::Print const CPrintOptions opts  ) 
 

print hook

Definition at line 1219 of file seqgraphic_widget.cpp.

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

Definition at line 72 of file seqgraphic_widget.cpp.

References eCmdAddTrack, eCmdAdjustRuler, eCmdAnnotConfig, eCmdChangeViewMode, eCmdCloneTrack, eCmdCollapseAllSubtracks, eCmdCollapseAllTracks, eCmdConfigChanged, eCmdCreateFeature, eCmdExpandAllSubtracks, eCmdExpandAllTracks, eCmdFlipStrand, eCmdHairlineOptions, eCmdHideAllTracks, eCmdMoveTrackToBottom, eCmdMoveTrackToTop, eCmdNextSplice, eCmdPrevSplice, eCmdRemoveTrack, eCmdResetMarker, eCmdResetSeqMarker, eCmdResetSeqStart, eCmdSequenceLabel, eCmdSetMarker, eCmdSetMarkerDlg, eCmdSetSeqStart, eCmdSetSeqStartMarker, eCmdSetSwitchPoint, eCmdShowAllTracks, eCmdStrandFlipped, eCmdZoomObject, CUICommandRegistry::RegisterCommand(), and WidgetsData_RegisterCommands().

Referenced by CSeqGraphicDemoDlg::Init(), and CViewGraphicFactory::RegisterCommands().

void CSeqGraphicWidget::ResetObjectSelection  ) 
 

Definition at line 1282 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::ResetRangeSelection  ) 
 

Definition at line 1276 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

Referenced by CViewGraphic::x_OnSetSelection().

void CSeqGraphicWidget::ResetSelection  ) 
 

Definition at line 1270 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::ResetVisibleRangeChanged  ) 
 

Definition at line 1200 of file seqgraphic_widget.cpp.

void CSeqGraphicWidget::SelectObject const CObject obj  ) 
 

set/clear selections

Definition at line 1258 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::SelectSeqLoc const objects::CSeq_loc *  loc  ) 
 

void CSeqGraphicWidget::SetExternalGlyphs const CSeqGlyph::TObjects objs  ) 
 

Definition at line 1157 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::SetHorizontal bool  b_horz,
bool  b_flip
 

Definition at line 1226 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

Referenced by CSeqGraphicDemoDlg::OnFlipStrand(), OnFlipStrands(), and OnVertical().

void CSeqGraphicWidget::SetInputObject SConstScopedObject obj  ) 
 

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().

void CSeqGraphicWidget::SetRangeSelection const TRangeColl ranges  ) 
 

Definition at line 1302 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

Referenced by CViewGraphic::x_OnSetSelection().

void CSeqGraphicWidget::SetScaleX TModelUnit  scale,
const TModelPoint point
 

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().

void CSeqGraphicWidget::UpdateConfig  ) 
 

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().

void CSeqGraphicWidget::UpdateHeight TModelUnit  height  ) 
 

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().

bool CSeqGraphicWidget::VisibleRangeChanged  )  const
 

indicates visible sequence range has changes

Definition at line 1194 of file seqgraphic_widget.cpp.

static static static static static void CSeqGraphicWidget::x_CreatePane  )  [protected, virtual]
 

factory method creating master pane, called form x_CreateControls()

Implements CGlWidgetBase.

Definition at line 332 of file seqgraphic_widget.cpp.

wxMenu * CSeqGraphicWidget::x_CreatePopupMenu int  area  )  [private]
 

forbidden

Definition at line 1006 of file seqgraphic_widget.cpp.

References CUICommandRegistry::AppendMenuItem(), CUICommandRegistry::CreateMenu(), eCmdAddTrack, eCmdCloneTrack, eCmdCollapseAllSubtracks, eCmdExpandAllSubtracks, eCmdMoveTrackToBottom, eCmdMoveTrackToTop, eCmdRemoveTrack, CSeqGraphicPane::fArea_Ruler, CTrackTypeInfo::GetId(), CLayoutTrack::GetId(), CTempTrackProxy::GetId(), CUICommandRegistry::GetInstance(), CLayoutTrack::GetParentTrack(), CTrackContainer::GetSubtrackProxies(), CTrackContainerFactory::GetTypeInfo(), ITERATE, and m_SeqGraphicPane.

Referenced by OnContextMenu().

CLayoutTrack * CSeqGraphicWidget::x_GetCurrentHitTrack  )  [private]
 

Definition at line 1336 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

Referenced by OnAddTrack(), OnCloneTrack(), OnCollapseAllSubtracks(), OnExpandAllSubtracks(), OnMoveTrackToBottom(), OnMoveTrackToTop(), and OnRemoveTrack().

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

Reimplemented from CGlWidgetBase.

Definition at line 338 of file seqgraphic_widget.cpp.

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

void CSeqGraphicWidget::x_SaveDefaultScoringMethod string  name  )  [private]
 

void CSeqGraphicWidget::x_SaveStates  )  [protected, virtual]
 

Reimplemented from CGlWidgetBase.

Definition at line 360 of file seqgraphic_widget.cpp.

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

Referenced by OnZoomSequence().

void CSeqGraphicWidget::x_SetPortLimits  )  [protected, virtual]
 

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().

void CSeqGraphicWidget::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 374 of file seqgraphic_widget.cpp.

References CGlWidgetBase::x_RedrawControls(), x_SetPortLimits(), and CGlWidgetBase::x_UpdateScrollbars().

Referenced by SetInputObject().

void CSeqGraphicWidget::x_UpdatePane  )  [protected, virtual]
 

Definition at line 369 of file seqgraphic_widget.cpp.

References m_SeqGraphicPane.

void CSeqGraphicWidget::ZoomOnRange TSeqRange  range,
bool  margins = true
 

Definition at line 1177 of file seqgraphic_widget.cpp.

References GetDataSource(), COpenRange< Position >::GetFrom(), COpenRange< Position >::GetLength(), CGlPane::GetModelLimitsRect(), CSGSequenceDS::GetSequenceLength(), COpenRange< Position >::GetTo(), len, m_Port, COpenRange< Position >::SetFrom(), CGlRect< T >::SetHorz(), COpenRange< Position >::SetTo(), CGlWidgetBase::x_UpdateOnZoom(), and CGlPane::ZoomRect().

Referenced by CSeqGraphicPane::GoBack(), CSeqGraphicPane::GoForward(), CViewGraphic::InitView(), CSeqGraphicPane::LTH_ZoomOnRange(), CSeqGraphicPane::NextPrevSplice(), CSeqGraphicPane::OnLeftDblClick(), OnSeqGoto(), CViewGraphic::OnVisibleRangeChanged(), OnZoomSelection(), and CSeqGraphicPane::ZoomObject().


Member Data Documentation

TCmdToName CSeqGraphicWidget::m_CmdToName [private]
 

Definition at line 330 of file seqgraphic_widget.hpp.

CGlPane CSeqGraphicWidget::m_Port [protected]
 

Definition at line 315 of file seqgraphic_widget.hpp.

Referenced by CSeqGraphicWidget(), GetPort(), GetVisibleRange(), GetVisibleSeqRange(), OnZoomSequence(), SetScaleX(), UpdateHeight(), x_SetPortLimits(), and ZoomOnRange().

auto_ptr<CSeqGraphicPane> CSeqGraphicWidget::m_SeqGraphicPane [private]
 

Definition at line 325 of file seqgraphic_widget.hpp.

Referenced by GetConfig(), GetDataSource(), GetObjectSelection(), GetRangeOrObjectSelection(), GetRangeSelection(), IsFlipped(), IsHorizontal(), OnAddTrack(), OnCollapseAllTracks(), OnContextMenu(), OnDataChanged(), OnExpandAllTracks(), OnGoBack(), OnGoForward(), OnHideAllTracks(), OnNextSplice(), OnPrevSplice(), OnResetMarker(), OnResetSeqMarker(), OnResetSeqStart(), OnSeqGoto(), OnSetMarker(), OnSetSeqMarkerDlg(), OnSetSeqStart(), OnSetSeqStartMarker(), OnSetSwitchPoint(), OnShowAllTracks(), OnSize(), OnUpdateGoBack(), OnUpdateGoForward(), OnUpdateSetSwitchPoint(), OnUpdateZoomSelection(), OnZoomObject(), OnZoomSelection(), ResetObjectSelection(), ResetRangeSelection(), ResetSelection(), SelectObject(), SetExternalGlyphs(), SetHorizontal(), SetInputObject(), SetRangeSelection(), UpdateConfig(), x_CreatePopupMenu(), x_GetCurrentHitTrack(), x_GetPane(), x_SaveStates(), and x_UpdatePane().

CSequenceGotoData CSeqGraphicWidget::m_SequenceGotoData [private]
 

Definition at line 341 of file seqgraphic_widget.hpp.

Referenced by OnSeqGoto(), and OnSeqGotoCmd().

CSequenceGotoDlg* CSeqGraphicWidget::m_SequenceGotoDlg [private]
 

Definition at line 342 of file seqgraphic_widget.hpp.

Referenced by OnSeqGotoClose(), OnSeqGotoCmd(), and ~CSeqGraphicWidget().


The documentation for this class was generated from the following files:
Generated on Mon Dec 7 14:18:46 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:02 2009 by modify_doxy.py rev. 173732