NCBI C++ ToolKit
|
Search Toolkit Book for CAlnMultiDSBuilder
#include <gui/widgets/aln_multiple/alnmulti_ds_builder.hpp>
Public Types | |
typedef vector< CConstRef< objects::CSeq_annot > > | TAnnotVector |
typedef vector< CConstRef< objects::CSeq_align > > | TAlignVector |
typedef vector< const objects::CSeq_align * > | TAlnVector |
typedef CAlnUserOptions | TOptions |
Public Member Functions | |
CAlnMultiDSBuilder () | |
virtual | ~CAlnMultiDSBuilder () |
void | Init (objects::CScope &scope, const objects::CSeq_align &align) |
initial data set from which an alignment will be build More... | |
void | Init (objects::CScope &scope, const objects::CSeq_annot &annot) |
void | Init (objects::CScope &scope, const objects::CBioseq_Handle &handle) |
void | Init (objects::CScope &scope, const objects::CBioseq &bioseq) |
void | Init (objects::CScope &scope, const objects::CSeq_entry &seq_entry) |
void | Init (objects::CScope &scope, TAlignVector &aligns) |
void | Init (objects::CScope &scope, TAnnotVector &annots) |
void | PreCreateDataSource (bool sparse) |
CRef< IAlnMultiDataSource > | CreateDataSource () |
TOptions & | SetOptions () |
void | GetBioseqHandles (vector< CBioseq_Handle > &handles) |
bool | GetSyncCreate () |
void | SetSyncCreate (bool sync) |
void | SetSelectAnchor (bool select_anchor) |
virtual void | SetListener (CDataChangeNotifier::IListener *pListener) |
Subscribe a new listener for data source. More... | |
virtual CDataChangeNotifier::IListener * | GetListener () |
Public Attributes | |
CAlnSeqId * | aaa |
Protected Types | |
typedef CAlnSeqIdsExtract< CAlnSeqId > | TIdExtract |
typedef vector< CRef< CAnchoredAln > > | TAnchoredAlnVector |
typedef CAlnIdMap< TAlnVector, TIdExtract > | TAlnIdMap |
typedef CAlnStats< TAlnIdMap > | TAlnStats |
Protected Member Functions | |
void | x_Clear () |
void | x_TestAlignments () |
Analyzes m_OrigAligns and decides how to build an alignment from it. More... | |
void | x_GetLinearAlignments (TAlignVector &aligns) |
bool | x_IsLinear (const objects::CStd_seg &seg) |
returns true if CStd_seg is linear More... | |
void | x_PreCreateSparseDataSource () |
CRef< IAlnMultiDataSource > | x_CreateSparseDataSource () |
CRef< IAlnMultiDataSource > | x_CreateAlnVecDataSource () |
Protected Attributes | |
CAlnSeqId * | d |
CRef< objects::CScope > | m_Scope |
TAlignVector | m_OrigAligns |
CRef< TAlnStats > | m_AlnStats |
TAnchoredAlnVector | m_AnchoredAlns |
CConstRef< objects::CSeq_id > | m_MasterId |
TOptions | m_Options |
bool | m_CreateSparse |
control alignment building More... | |
bool | m_SyncCreate |
bool | m_SelectAnchor = false |
CDataChangeNotifier::IListener * | m_Listener |
Try to set anchor automatically. More... | |
Definition at line 61 of file alnmulti_ds_builder.hpp.
typedef vector< CConstRef<objects::CSeq_align> > CAlnMultiDSBuilder::TAlignVector |
Definition at line 67 of file alnmulti_ds_builder.hpp.
|
protected |
Definition at line 118 of file alnmulti_ds_builder.hpp.
|
protected |
Definition at line 119 of file alnmulti_ds_builder.hpp.
typedef vector<const objects::CSeq_align*> CAlnMultiDSBuilder::TAlnVector |
Definition at line 68 of file alnmulti_ds_builder.hpp.
|
protected |
Definition at line 117 of file alnmulti_ds_builder.hpp.
typedef vector< CConstRef<objects::CSeq_annot> > CAlnMultiDSBuilder::TAnnotVector |
Definition at line 66 of file alnmulti_ds_builder.hpp.
|
protected |
Definition at line 116 of file alnmulti_ds_builder.hpp.
Definition at line 69 of file alnmulti_ds_builder.hpp.
CAlnMultiDSBuilder::CAlnMultiDSBuilder | ( | ) |
Definition at line 58 of file alnmulti_ds_builder.cpp.
|
virtual |
Definition at line 66 of file alnmulti_ds_builder.cpp.
References x_Clear().
CRef< IAlnMultiDataSource > CAlnMultiDSBuilder::CreateDataSource | ( | ) |
Definition at line 175 of file alnmulti_ds_builder.cpp.
References _TRACE, m_CreateSparse, m_OrigAligns, x_CreateAlnVecDataSource(), x_CreateSparseDataSource(), and x_TestAlignments().
Referenced by CAlignMultipleDemoDlg::Init(), CwxDemoAlignTableFrame::InitData(), CMultiAlignView::OnProjectChanged(), CAlignMultipleDemoDlg::OnRebuild(), CUpdateSeqPanel::x_InitAlnMultiDSBuilder(), CAlignSpanView::x_InitWidget(), and CAlnMultiCGIApplication::x_PreProcess().
void CAlnMultiDSBuilder::GetBioseqHandles | ( | vector< CBioseq_Handle > & | handles | ) |
Definition at line 189 of file alnmulti_ds_builder.cpp.
References ITERATE, m_AlnStats, and m_Scope.
Referenced by CAlignMultipleDemoDlg::OnRebuild().
|
inlinevirtual |
Definition at line 98 of file alnmulti_ds_builder.hpp.
References m_Listener.
|
inline |
Definition at line 89 of file alnmulti_ds_builder.hpp.
References m_SyncCreate.
void CAlnMultiDSBuilder::Init | ( | objects::CScope & | scope, |
const objects::CBioseq & | bioseq | ||
) |
Definition at line 90 of file alnmulti_ds_builder.cpp.
References ExtractSeqAligns(), m_OrigAligns, m_Scope, CRef< C, Locker >::Reset(), and x_Clear().
void CAlnMultiDSBuilder::Init | ( | objects::CScope & | scope, |
const objects::CBioseq_Handle & | handle | ||
) |
Definition at line 112 of file alnmulti_ds_builder.cpp.
References CSeq_annot_Base::C_Data::e_Align, CSeqUtils::GetAnnotSelector(), i, m_OrigAligns, m_Scope, CRef< C, Locker >::Reset(), and x_Clear().
void CAlnMultiDSBuilder::Init | ( | objects::CScope & | scope, |
const objects::CSeq_align & | align | ||
) |
initial data set from which an alignment will be build
Definition at line 72 of file alnmulti_ds_builder.cpp.
References m_OrigAligns, m_Scope, CRef< C, Locker >::Reset(), and x_Clear().
Referenced by CAlignMultipleDemoDlg::Init(), CwxDemoAlignTableFrame::InitData(), LoadObject(), CAlignMultipleDemoDlg::OnAccClick(), CMultiAlignView::OnProjectChanged(), CUpdateSeqPanel::x_InitAlnMultiDSBuilder(), CAlignSpanView::x_InitWidget(), and CAlnMultiCGIApplication::x_PreProcess().
void CAlnMultiDSBuilder::Init | ( | objects::CScope & | scope, |
const objects::CSeq_annot & | annot | ||
) |
Definition at line 81 of file alnmulti_ds_builder.cpp.
References ExtractSeqAligns(), m_OrigAligns, m_Scope, CRef< C, Locker >::Reset(), and x_Clear().
void CAlnMultiDSBuilder::Init | ( | objects::CScope & | scope, |
const objects::CSeq_entry & | seq_entry | ||
) |
Definition at line 98 of file alnmulti_ds_builder.cpp.
References ExtractSeqAligns(), m_OrigAligns, m_Scope, CRef< C, Locker >::Reset(), and x_Clear().
void CAlnMultiDSBuilder::Init | ( | objects::CScope & | scope, |
TAlignVector & | aligns | ||
) |
Definition at line 129 of file alnmulti_ds_builder.cpp.
References m_OrigAligns, m_Scope, CRef< C, Locker >::Reset(), and x_Clear().
void CAlnMultiDSBuilder::Init | ( | objects::CScope & | scope, |
TAnnotVector & | annots | ||
) |
void CAlnMultiDSBuilder::PreCreateDataSource | ( | bool | sparse | ) |
Definition at line 165 of file alnmulti_ds_builder.cpp.
References m_CreateSparse, and x_PreCreateSparseDataSource().
Referenced by CwxDemoAlignTableFrame::InitData(), CMultiAlignView::OnProjectChanged(), CAlignMultipleDemoDlg::OnRebuild(), CUpdateSeqPanel::x_InitAlnMultiDSBuilder(), and CAlignSpanView::x_InitWidget().
|
inlinevirtual |
Subscribe a new listener for data source.
No ownership transfer for pListener
Definition at line 96 of file alnmulti_ds_builder.hpp.
References m_Listener.
Referenced by CMultiAlignView::OnProjectChanged().
|
inline |
Definition at line 86 of file alnmulti_ds_builder.hpp.
References m_Options.
Referenced by CMultiAlignView::OnProjectChanged(), and CAlignMultipleDemoDlg::OnRebuild().
|
inline |
Definition at line 92 of file alnmulti_ds_builder.hpp.
References m_SelectAnchor.
|
inline |
Definition at line 90 of file alnmulti_ds_builder.hpp.
References m_SyncCreate.
Referenced by CwxDemoAlignTableFrame::InitData(), and CAlignSpanView::x_InitWidget().
|
protected |
Definition at line 154 of file alnmulti_ds_builder.cpp.
References m_AlnStats, m_AnchoredAlns, m_CreateSparse, m_MasterId, m_OrigAligns, m_Scope, CRef< C, Locker >::Reset(), and CConstRef< C, Locker >::Reset().
Referenced by Init(), and ~CAlnMultiDSBuilder().
|
protected |
Definition at line 247 of file alnmulti_ds_builder.cpp.
References CRef< C, Locker >::GetPointer(), m_Listener, m_OrigAligns, m_Scope, m_SelectAnchor, and m_SyncCreate.
Referenced by CreateDataSource().
|
protected |
Definition at line 228 of file alnmulti_ds_builder.cpp.
References _TRACE, CStopWatch::Elapsed(), CConstRef< C, Locker >::GetPointer(), CSparseMultiDataSource::Init(), m_AnchoredAlns, m_Listener, m_MasterId, m_Options, m_OrigAligns, m_Scope, m_SyncCreate, CRef< C, Locker >::Reset(), CDataChangeNotifier::SetListener(), CStopWatch::Start(), and sw.
Referenced by CreateDataSource().
|
protected |
Definition at line 302 of file alnmulti_ds_builder.cpp.
References CSeq_align_Base::GetSegs(), ITERATE, m_OrigAligns, and x_IsLinear().
Referenced by x_TestAlignments().
returns true if CStd_seg is linear
Definition at line 341 of file alnmulti_ds_builder.cpp.
Referenced by x_GetLinearAlignments().
|
protected |
Definition at line 201 of file alnmulti_ds_builder.cpp.
References CreateAnchoredAlnVec(), ITERATE, m_AlnStats, m_AnchoredAlns, m_Options, m_OrigAligns, and CAlnIdMap< _TAlnVec, TAlnSeqIdExtract >::push_back().
Referenced by PreCreateDataSource().
|
protected |
Analyzes m_OrigAligns and decides how to build an alignment from it.
Definition at line 257 of file alnmulti_ds_builder.cpp.
References _TRACE, CSeq_id_Handle::GetHandle(), CSeq_id_Handle::GetSeqId(), set< Key, Compare >::insert(), ITERATE, m_MasterId, set< Key, Compare >::size(), and x_GetLinearAlignments().
Referenced by CreateDataSource().
CAlnSeqId* CAlnMultiDSBuilder::aaa |
Definition at line 64 of file alnmulti_ds_builder.hpp.
|
protected |
Definition at line 114 of file alnmulti_ds_builder.hpp.
Definition at line 123 of file alnmulti_ds_builder.hpp.
Referenced by GetBioseqHandles(), x_Clear(), and x_PreCreateSparseDataSource().
|
protected |
Definition at line 124 of file alnmulti_ds_builder.hpp.
Referenced by x_Clear(), x_CreateSparseDataSource(), and x_PreCreateSparseDataSource().
|
protected |
control alignment building
Definition at line 128 of file alnmulti_ds_builder.hpp.
Referenced by CreateDataSource(), PreCreateDataSource(), and x_Clear().
|
protected |
Try to set anchor automatically.
Definition at line 131 of file alnmulti_ds_builder.hpp.
Referenced by GetListener(), SetListener(), x_CreateAlnVecDataSource(), and x_CreateSparseDataSource().
|
protected |
Definition at line 126 of file alnmulti_ds_builder.hpp.
Referenced by x_Clear(), x_CreateSparseDataSource(), and x_TestAlignments().
|
protected |
Definition at line 127 of file alnmulti_ds_builder.hpp.
Referenced by SetOptions(), x_CreateSparseDataSource(), and x_PreCreateSparseDataSource().
|
protected |
Definition at line 122 of file alnmulti_ds_builder.hpp.
Referenced by CreateDataSource(), Init(), x_Clear(), x_CreateAlnVecDataSource(), x_CreateSparseDataSource(), x_GetLinearAlignments(), and x_PreCreateSparseDataSource().
|
protected |
Definition at line 121 of file alnmulti_ds_builder.hpp.
Referenced by GetBioseqHandles(), Init(), x_Clear(), x_CreateAlnVecDataSource(), and x_CreateSparseDataSource().
Definition at line 130 of file alnmulti_ds_builder.hpp.
Referenced by SetSelectAnchor(), and x_CreateAlnVecDataSource().
|
protected |
Definition at line 129 of file alnmulti_ds_builder.hpp.
Referenced by GetSyncCreate(), SetSyncCreate(), x_CreateAlnVecDataSource(), and x_CreateSparseDataSource().