Search Toolkit Book for CPhyloTreeDataSource
#include <gui/widgets/phylo_tree/phylo_tree_ds.hpp>
Definition at line 231 of file phylo_tree_ds.hpp.
◆ TClusterID ◆ TClusterToColorMap ◆ TJobID ◆ TNodeType ◆ TTreeIdx ◆ TTreeType ◆ CPhyloTreeDataSource() CPhyloTreeDataSource::CPhyloTreeDataSource ( const objects::CBioTreeContainer & tree, objects::CScope & scope, bool expand_all =false
)
Throws exception if tree is empty - at least 1 node is required.
Definition at line 165 of file phylo_tree_ds.cpp.
References Init().
◆ ~CPhyloTreeDataSource() CPhyloTreeDataSource::~CPhyloTreeDataSource ( ) ◆ ApplyAttributes()Definition at line 302 of file phylo_tree_ds.cpp.
References CPhyloTreeCalculator::ClearAttrTable(), CRgbaGradColorTable::ClearColors(), Clusterize(), CPhyloTree::GetColorTable(), CRef< C, Locker >::GetNCObject(), CTreeModel< TNode >::GetRootIdx(), CPhyloTreeCalculator::Init(), m_Calc, m_TreeModel, CPhyloTreeCalculator::SetAttrTable(), CPhyloTreeCalculator::SetLabelFormat(), and TreeDepthFirst().
Referenced by CPhyloTreeWidget::OnLoadAttributes().
◆ Clean() void CPhyloTreeDataSource::Clean ( ) ◆ Clear() void CPhyloTreeDataSource::Clear ( void ) ◆ ClearQueryResults() void CPhyloTreeDataSource::ClearQueryResults ( ) virtual ◆ ClipboardEmpty() bool CPhyloTreeDataSource::ClipboardEmpty ( ) const inline ◆ Clusterize()Definition at line 332 of file phylo_tree_ds.cpp.
References CRgbaGradColorTable::AddColor(), color, CRgbaColor::ColorDistance(), CRgbaColor::Darken(), CPhyloTreeScheme::eClusters, map_checker< Container >::end(), map_checker< Container >::find(), CRgbaGradColorTable::FindClosestColor(), CRgbaGradColorTable::FindColor(), CPhyloTreeCalculator::GetClusters(), CPhyloSelectionSetMgr::GetClusterToSelectionMap(), CRgbaGradColorTable::GetColor(), CPhyloTreeScheme::GetColoration(), CPhyloTree::GetColorTable(), CTreeModel< TNode >::GetParent(), CPhyloTree::GetSelectionSets(), CPhyloSelectionSetMgr::GetSets(), CPhyloTreeCalculator::GetWidth(), CTreeModelNode< TData >::IsLeaf(), ITERATE, m_Calc, m_ClusterToColorMap, m_TreeModel, CRgbaColor::RotateColor(), SetColorIndices(), and map_checker< Container >::size().
Referenced by ApplyAttributes(), CPhyloTreeWidget::RedrawDataSource(), Relabel(), and UpdateSelectionSets().
◆ CollapseByDistance()Collapse, based on distance, enough nodes in the tree to get the total number of leaves down to the requested number.
(or just over if exact match is not possible)
(or just over if exact match is not possible). We do not expand nodes that may already be collapsed.
Definition at line 656 of file phylo_tree_ds.cpp.
References CPhyloNodeData::eHideChildren, set< Key, Compare >::end(), set< Key, Compare >::erase(), set< Key, Compare >::find(), CPhyloTreeMaxDirectChildDist::GetDistances(), CPhyloTree::GetFeatureDict(), CRef< C, Locker >::GetNCObject(), CRef< C, Locker >::GetNCPointer(), CTreeModel< TNode >::GetNode(), CTreeModel< TNode >::GetRoot(), CTreeModel< TNode >::GetRootIdx(), CBioTreeFeatureDictionary::HasFeature(), i, set< Key, Compare >::insert(), CPhyloTreeNode::IsLeafEx(), m_TreeModel, n, ncbi::grid::netcache::search::fields::size, ct::sort(), and TreeDepthFirst().
Referenced by CPhyloTreeWidget::OnCollapseToViewport().
◆ CollapseSelected() void CPhyloTreeDataSource::CollapseSelected ( )Definition at line 1549 of file phylo_tree_ds.cpp.
References _TRACE, CPhyloTreeNode::CanExpandCollapse(), CPhyloNodeData::eHideChildren, CPhyloTreeNode::ExpandCollapse(), CPhyloTree::GetExplicitlySelected(), CPhyloTree::GetFeatureDict(), CTreeModel< TNode >::GetNode(), CTreeModelNode< TData >::GetParent(), CTreeModel< TNode >::GetRootIdx(), i, m_TreeModel, MeasureTree(), and SetCollapsedLabel().
Referenced by CPhyloTreeWidget::OnCollapseSelected().
◆ ComputeLengthsFromRoot() void CPhyloTreeDataSource::ComputeLengthsFromRoot ( )Create sorted array of distances of nodes from the parent (the m_LenDistribution array)
Definition at line 247 of file phylo_tree_ds.cpp.
References CPhyloTreeMaxChildDist::GetDistances(), CPhyloTree::GetFeatureDict(), CPhyloTreeMaxChildDist::GetMaxDist(), CPhyloTreeMaxChildDist::GetMinDist(), CRef< C, Locker >::GetNCObject(), CRef< C, Locker >::GetNCPointer(), CTreeModel< TNode >::GetNode(), CTreeModel< TNode >::GetRootIdx(), CBioTreeFeatureDictionary::HasFeature(), i, m_LenDistribution, m_TreeModel, ct::sort(), and TreeDepthFirst().
Referenced by IPhyloTreeRender::x_ComputeEdgeHighlight().
◆ Cut() void CPhyloTreeDataSource::Cut ( )Definition at line 1310 of file phylo_tree_ds.cpp.
References _TRACE, CPhyloTree::Clear(), CPhyloTree::ClearSelection(), CPhyloTree::GetCurrentNode(), CPhyloTree::GetCurrentNodeIdx(), CRef< C, Locker >::GetNCObject(), CTreeModel< TNode >::GetRootIdx(), m_sTreeClipboard, m_TreeModel, MeasureTree(), n, CTreeModel< CPhyloTreeNode >::Null(), CTreeModel< TNode >::RemoveChild(), CPhyloTree::SetSelection(), TreeDepthFirst(), and CPhyloTree::UpdateNodesMapping().
Referenced by CPhyloTreeWidget::OnEdit().
◆ ExecuteStringQuery()Execute a string-matching query on the underlying data.
Implements IQueryDataSource.
Definition at line 951 of file phylo_tree_ds.cpp.
References CPhyloTree::ClearSelection(), FindNodes(), CPhyloNodeData::GetId(), CTreeModel< TNode >::GetNode(), CTreeModelNode< TData >::GetValue(), Info(), LOG_POST, m_SearchCurrentNode, m_StringQueryIDs, m_TreeModel, CTreeModel< CPhyloTreeNode >::Null(), query, and CPhyloTree::SetSelection().
◆ Filter() void CPhyloTreeDataSource::Filter ( ) ◆ FilterDistances() void CPhyloTreeDataSource::FilterDistances ( double x_dist ) ◆ FindNodes() ◆ GenerateTooltipFormat() string CPhyloTreeDataSource::GenerateTooltipFormat ( ) ◆ GetBoundRect() TModelRect CPhyloTreeDataSource::GetBoundRect ( void )Definition at line 802 of file phylo_tree_ds.cpp.
References CRef< C, Locker >::GetNCObject(), CPhyloTreeRectCalculator::GetRect(), CTreeModel< TNode >::GetRootIdx(), CPhyloTreeRectCalculator::Init(), m_TreeModel, and TreeDepthFirst().
Referenced by CPhyloCircularCladogram::x_Layout(), CPhyloForce::x_Layout(), CPhyloRadial::x_Layout(), CPhyloRectCladogram::x_Layout(), and CPhyloSlantedCladogram::x_Layout().
◆ GetClosestLen() float CPhyloTreeDataSource::GetClosestLen ( float pct ) const ◆ GetClusterToColorMap() ◆ GetColsCount() size_t CPhyloTreeDataSource::GetColsCount ( ) const virtual ◆ GetColumnLabel() string CPhyloTreeDataSource::GetColumnLabel ( size_t col ) const virtual ◆ GetCurrentSearchNode() TTreeIdx CPhyloTreeDataSource::GetCurrentSearchNode ( ) const inline ◆ GetDictionary()Definition at line 321 of file phylo_tree_ds.hpp.
References CPhyloTree::GetFeatureDict(), and m_TreeModel.
Referenced by CPhyloTreeWidget::EditLabel(), GetQueryExec(), CPhyTreeView::GetSelection(), CPhyloTreeWidget::OnEditNode(), CPhyloTreeWidget::OnExportSelection(), CPhyloTreeWidget::OnInfoTip(), CPhyloTreeWidget::QueryEnd(), CPhyloTreeWidget::SendEditEvent(), CwxPhyloSettingsDlg::SetParams(), and CPhyTreeView::x_OnSetSelection().
◆ GetMaxClusterID() TClusterID CPhyloTreeDataSource::GetMaxClusterID ( ) inline ◆ GetMaxLabelLen() int CPhyloTreeDataSource::GetMaxLabelLen ( void ) inline ◆ GetMinDistance() double CPhyloTreeDataSource::GetMinDistance ( void ) inline ◆ GetModel()Get model for rendering.
Definition at line 318 of file phylo_tree_ds.hpp.
References CPhyloTree::GetGraphicsModel(), and m_TreeModel.
Referenced by IPhyloTreeRender::BufferedRender(), Clean(), IPhyloTreeRender::GetEdgeColor(), IPhyloTreeRender::InitCollisionInfo(), CPhyloTreeWidget::IterateSelection(), CChangePhyloPropertyCmd::PerformEdit(), IPhyloTreeRender::Render(), IPhyloTreeRender::RenderPdf(), CPhyloTreeWidget::SetScheme(), CPhyloSaveSelectiondlg::SetSelections(), IPhyloTreeRender::x_AddCollapsedGeomNode(), IPhyloTreeRender::x_AddCollapsedTextureNode(), IPhyloTreeRender::x_ComputeEdgeHighlight(), CPhyloCircularCladogram::x_DrawTree(), CPhyloForce::x_Layout(), CPhyloTreePane::x_Render(), IPhyloTreeRender::x_RenderNodeVbo(), CPhyloCircularCladogram::x_RenderVbo(), CPhyloRadial::x_RenderVbo(), CPhyloRectCladogram::x_RenderVbo(), CPhyloSlantedCladogram::x_RenderVbo(), CPhyloRectCladogram::x_RenderVboPseudoSplines(), CPhyloRectCladogram::x_RenderVboSplines(), CPhyloRectCladogram::x_SetElementVisibility(), IPhyloTreeRender::x_SetElementVisibility(), CPhyloCircularCladogram::x_SetGlRenderOptions(), CPhyloRadial::x_SetGlRenderOptions(), CPhyloRectCladogram::x_SetGlRenderOptions(), and CPhyloSlantedCladogram::x_SetGlRenderOptions().
◆ GetNormDistance() double CPhyloTreeDataSource::GetNormDistance ( void ) inlineDefinition at line 330 of file phylo_tree_ds.hpp.
References CPhyloTreeCalculator::GetMaxDistance(), and m_Calc.
Referenced by CCalcCircularTree::CCalcCircularTree(), CCalcRadialTree::CCalcRadialTree(), CCalcRectangularTree::CCalcRectangularTree(), CDrawCircularTreeVbo::CDrawCircularTreeVbo(), CPhyloCircularCladogram::ComputeDistFromPixels(), IPhyloTreeRender::ComputeDistFromPixels(), CPhyloCircularCladogram::x_Layout(), CPhyloForce::x_Layout(), CPhyloRadial::x_Layout(), CPhyloRectCladogram::x_Layout(), and CPhyloSlantedCladogram::x_Layout().
◆ GetNumEdges() unsigned int CPhyloTreeDataSource::GetNumEdges ( void ) inline ◆ GetNumNodes() unsigned int CPhyloTreeDataSource::GetNumNodes ( void ) inline ◆ GetQueryExec()Create an appropriate instance of a subclass of CQueryExec for that will be used to execute a query on the data source.
Implements IQueryDataSource.
Definition at line 874 of file phylo_tree_ds.cpp.
References CQueryExec::AddFunc(), CQueryParseNode::eAnd, CQueryParseNode::eBetween, CQueryParseNode::eBoolConst, NStr::eCase, CQueryParseNode::eEQ, CQueryParseNode::eFloatConst, CQueryParseNode::eFrom, CQueryParseNode::eFunction, CQueryParseNode::eGE, CQueryParseNode::eGT, CQueryParseNode::eIdentifier, CQueryParseNode::eIn, CQueryParseNode::eIntConst, CQueryParseNode::eLE, CQueryParseNode::eLike, CQueryParseNode::eLT, NStr::eNocase, CQueryParseNode::eNot, CQueryParseNode::eOr, CQueryParseNode::eSelect, CQueryParseNode::eString, CQueryParseNode::eSub, CQueryParseNode::eXor, GetDictionary(), GetTree(), and CTreeQueryExec::SetTree().
◆ GetScope() virtual CRef<objects::CScope> CPhyloTreeDataSource::GetScope ( void ) inlinevirtual ◆ GetSelectionSets()Definition at line 363 of file phylo_tree_ds.hpp.
References CPhyloTree::GetSelectionSets(), and m_TreeModel.
Referenced by CPhyloSaveSelectiondlg::OnAddCurrentSelBtnClick(), CPhyloTreeWidget::OnAddSelectionSet(), CPhyloSaveSelectiondlg::OnBitmapbuttonDownClick(), CPhyloSaveSelectiondlg::OnBitmapbuttonUpClick(), CPhyloSaveSelectiondlg::OnDeleteSelBtnClick(), CPhyloSaveSelectiondlg::OnLeftDown(), CPhyloSaveSelectiondlg::OnSelColorPickerColourPickerChanged(), CPhyloSaveSelectiondlg::OnSelectionTextUpdated(), CPhyloSaveSelectiondlg::OnSelListctrlSelected(), CChangePhyloSelectionSetCmd::PerformEdit(), CPhyloSaveSelectiondlg::SetSelections(), CPhyloSaveSelectiondlg::UpdateSelections(), and UpdateSelectionSets().
◆ GetSize() int CPhyloTreeDataSource::GetSize ( void ) inlineDefinition at line 328 of file phylo_tree_ds.hpp.
References CPhyloTreeCalculator::GetHeight(), and m_Calc.
Referenced by CCalcRadialTree::CCalcRadialTree(), CCalcRectangularTree::CCalcRectangularTree(), CDrawCircularTreeVbo::CDrawCircularTreeVbo(), IPhyloTreeRender::InitCollisionInfo(), CPhyloTreeWidget::OnZoomTip(), IPhyloTreeRender::x_ComputeEdgeHighlight(), IPhyloTreeRender::x_FindBestSize(), CPhyloCircularCladogram::x_Layout(), CPhyloForce::x_Layout(), CPhyloRadial::x_Layout(), CPhyloRectCladogram::x_Layout(), and CPhyloSlantedCladogram::x_Layout().
◆ GetStringQueryIDs() ◆ GetTree() [1/2] CPhyloTree* CPhyloTreeDataSource::GetTree ( void ) inlineDefinition at line 310 of file phylo_tree_ds.hpp.
References CRef< C, Locker >::GetPointerOrNull(), and m_TreeModel.
Referenced by IPhyloTreeRender::BufferedRender(), CCalcCircularTree::CCalcCircularTree(), CCalcRadialTree::CCalcRadialTree(), CCalcSlantedTree::CCalcSlantedTree(), CChangePhyloPropertyCmd::CChangePhyloPropertyCmd(), CDrawCircularTreeVbo::CDrawCircularTreeVbo(), Clean(), CPhyloTreeWidget::EditLabel(), CChangePhyloSelectionSetCmd::Execute(), CChangePhyloPropertyCmd::Execute(), IPhyloTreeRender::GetHoverNode(), IPhyloTreeRender::GetHoverNodeIdx(), GetQueryExec(), CwxPhyloSettingsDlg::GetRandomNode(), CPhyTreeView::GetSelection(), CPhyloTreePS::Init(), CPhyloTreeWidget::IterateSelection(), CPhyloSaveSelectiondlg::OnAddCurrentSelBtnClick(), CPhyloTreeWidget::OnAddSelectionSet(), CPhyTreeView::OnBioTreeChanged(), CPhyloTreeWidget::OnClearSelection(), CPhyloTreeWidget::OnCollapseChildren(), CPhyloTreeWidget::OnCollapseToViewport(), CPhyTreeView::OnCreateSelectedSubtree(), CPhyloTreeWidget::OnEditNode(), CPhyloTreeWidget::OnExpandChildren(), CPhyloTreeWidget::OnExportSelection(), CPhyTreeView::OnExportTree(), CPhyloTreeWidget::OnInfoTip(), IPhyloTreeRender::OnLeftDblClick(), IPhyloTreeRender::OnLeftDown(), CPhyloTreeWidget::OnRerootTree(), CPhyloTreeWidget::OnRerootTreeAtEdge(), IPhyloTreeRender::OnRightDown(), CPhyloTreeWidget::OnSearchTip(), CPhyloTreeWidget::OnSelectAll(), CPhyloTreeWidget::OnSetMidpointRoot(), CPhyloTreeWidget::OnShowAll(), CPhyTreeView::OnSomethingEdited(), IPhyloTreeRender::OnTimerLeftUp(), CPhyloTreeWidget::OnUpdateCollapseChildren(), CPhyloTreeWidget::OnUpdateCollapseSelected(), CPhyloTreeWidget::OnUpdateEdit(), CPhyloTreeWidget::OnUpdateEditLabel(), CPhyloTreeWidget::OnUpdateEditNode(), CPhyloTreeWidget::OnUpdateExpandChildren(), CPhyloTreeWidget::OnUpdateRerootTree(), CPhyloTreeWidget::OnUpdateRerootTreeAtEdge(), CPhyloTreeWidget::OnUpdateSelChanged(), CPhyloTreeWidget::OnUpdateSetMidpointRoot(), CPhyloTreeWidget::OnUpdateSubtreeFromSelection(), CPhyloTreeWidget::OnUpdateZoomSel(), CPhyloTreeWidget::OnUpdateZoomToSubtree(), CPhyloTreeWidget::OnZoomTip(), CPhyloTreeWidget::OnZoomToSelection(), CPhyloTreeWidget::OnZoomToSubtree(), CChangePhyloSelectionSetCmd::PerformEdit(), CChangePhyloPropertyCmd::PerformEdit(), CChangePhyloExpandCollapseCmd::PerformEdit(), IPhyloTreeRender::PointToNode(), CPhyloTreeWidget::QueryEnd(), CPhyTreeView::RebuildObjectIndex(), CPhyloTreeWidget::RedrawDataSource(), CPhyloTreePane::RenderPdf(), CPhyloTreeWidget::SendEditEvent(), IPhyloTreeRender::SetActiveTooltipNode(), IPhyloTreeRender::SetScheme(), CPhyloSaveSelectiondlg::SetSelections(), IPhyloTreeRender::TTHH_GetTooltip(), CChangePhyloSelectionSetCmd::Unexecute(), CChangePhyloPropertyCmd::Unexecute(), CPhyloTreePane::Update(), CwxPhyloSettingsDlg::UpdateSample(), CPhyloForce::x_CalculateBoundary(), CPhyloRectCladogram::x_DrawPseudoSplineTree(), CPhyloRectCladogram::x_DrawSplineTree(), CPhyloCircularCladogram::x_DrawTree(), CPhyloCircularCladogram::x_Layout(), CPhyloForce::x_Layout(), CPhyloRadial::x_Layout(), CPhyloRectCladogram::x_Layout(), CPhyloSlantedCladogram::x_Layout(), CPhyTreeView::x_OnSetSelection(), CPhyloTreePane::x_Render(), IPhyloTreeRender::x_RenderCircularVbo(), IPhyloTreeRender::x_RenderLineVbo(), IPhyloTreeRender::x_RenderNodeHighlight(), IPhyloTreeRender::x_RenderPseudoSplineVbo(), IPhyloTreeRender::x_RenderSelection(), IPhyloTreeRender::x_RenderSplineVbo(), IPhyloTreeRender::x_RenderTooltipHints(), CPhyloCircularCladogram::x_RenderVbo(), CPhyloRadial::x_RenderVbo(), CPhyloSlantedCladogram::x_RenderVbo(), CPhyloRectCladogram::x_RenderVboPseudoSplines(), CPhyloRectCladogram::x_RenderVboSplines(), IPhyloTreeRender::x_SelectByRect(), and CPhyloSaveSelectiondlg::x_SetClusterIds().
◆ GetTree() [2/2] ◆ GetTreeLabel() CTreeLabel CPhyloTreeDataSource::GetTreeLabel ( ) const inline ◆ GetVisibleNodes() unsigned int CPhyloTreeDataSource::GetVisibleNodes ( void ) inline ◆ GetWidth() int CPhyloTreeDataSource::GetWidth ( void ) inline ◆ HasClusters() bool CPhyloTreeDataSource::HasClusters ( ) ◆ HasLenDistribution() bool CPhyloTreeDataSource::HasLenDistribution ( ) const inline ◆ Init() void CPhyloTreeDataSource::Init ( const objects::CBioTreeContainer & tree, objects::CScope & scope, bool expand_all =false
)
Throws exception if tree is empty - at least 1 node is required.
Definition at line 179 of file phylo_tree_ds.cpp.
References BioTreeConvertContainer2Tree(), CPhyloSelectionSetMgr::Clear(), CPhyloTree::Clear(), CPhyloTreeCalculator::DumpStats(), eUnknown, CPhyloTree::GetColorTable(), CPhyloTree::GetFeatureDict(), CRef< C, Locker >::GetNCObject(), CRef< C, Locker >::GetPointer(), CPhyloTree::GetSelectionSets(), CPhyloSelectionSetMgr::InitFromUserObject(), CTreeLabel::InitializeFromUserObject(), CRef< C, Locker >::IsNull(), m_Calc, m_Scope, m_TreeLabel, m_TreeModel, MeasureTree(), NCBI_THROW, CRef< C, Locker >::Reset(), TreeDepthFirst(), and CPhyloTree::UpdateNodesMapping().
Referenced by Clean(), CPhyloTreeDataSource(), and CPhyTreeView::OnBioTreeChanged().
◆ IterateOverSelNodes()Definition at line 1055 of file phylo_tree_ds.cpp.
References CPhyloTree::GetExplicitlySelectedAndNotCollapsed(), CRef< C, Locker >::GetObject(), CTreeModel< TNode >::GetRootIdx(), m_SearchCurrentNode, m_TreeModel, CTreeModel< CPhyloTreeNode >::Null(), CPhyloTree::SetCurrentNode(), and ct::sort().
Referenced by CPhyloTreeWidget::IterateSelection(), CPhyloTreeWidget::QueryEnd(), and CPhyloTreeWidget::SetSelectAll().
◆ MeasureTree() [1/2] void CPhyloTreeDataSource::MeasureTree ( )Definition at line 277 of file phylo_tree_ds.cpp.
References CTreeModel< TNode >::GetRootIdx(), and m_TreeModel.
Referenced by CollapseSelected(), Cut(), Filter(), FilterDistances(), Init(), NewNode(), Paste(), Remove(), RemoveSelected(), Sort(), SortDist(), SortLabel(), SortLabelRange(), and UpdateSelectionSets().
◆ MeasureTree() [2/2] void CPhyloTreeDataSource::MeasureTree ( TTreeIdx node ) ◆ MoveNode() void CPhyloTreeDataSource::MoveNode ( bool up ) ◆ NewNode()Definition at line 1361 of file phylo_tree_ds.cpp.
References _TRACE, CTreeModel< TNode >::AddChild(), CTreeModel< TNode >::AddNode(), CTreeModelNode< TData >::GetChildren(), CPhyloTree::GetColorTable(), CPhyloTree::GetCurrentNode(), CPhyloTree::GetCurrentNodeIdx(), CPhyloTree::GetFeatureDict(), CBioTreeFeatureDictionary::GetFeatureDict(), CPhyloTreeMaxIdCalculator::GetMaxId(), CRef< C, Locker >::GetNCObject(), CTreeModel< TNode >::GetNode(), CTreeModelNode< TData >::GetParent(), CTreeModelNode< TData >::GetValue(), ITERATE, m_TreeModel, MeasureTree(), CTreeModel< CPhyloTreeNode >::Null(), CTreeModel< TNode >::RemoveChild(), CPhyloNodeData::SetFeature(), CTreeModelNode< TData >::SetParent(), CTreeModelNode< TData >::SubNodeBegin(), TreeDepthFirst(), and CPhyloTree::UpdateNodesMapping().
Referenced by CPhyloTreeWidget::OnEdit(), ReRootEdge(), and ReRootMidpoint().
◆ Paste() void CPhyloTreeDataSource::Paste ( void )Definition at line 1340 of file phylo_tree_ds.cpp.
References _TRACE, CPhyloTree::GetCurrentNodeIdx(), CRef< C, Locker >::GetNCObject(), CTreeModel< TNode >::GetRootIdx(), m_sTreeClipboard, m_TreeModel, MeasureTree(), CTreeModelNode< CPhyloNodeData >::Null(), CTreeModel< CPhyloTreeNode >::Null(), TreeDepthFirst(), and CPhyloTree::UpdateNodesMapping().
Referenced by CPhyloTreeWidget::OnEdit().
◆ Relabel()Definition at line 738 of file phylo_tree_ds.cpp.
References Clusterize(), CPhyloTree::GetColorTable(), CPhyloTreeCalculator::GetHeight(), CPhyloTreeCalculator::GetMaxDistance(), CRef< C, Locker >::GetNCObject(), CPhyloTreeCalculator::GetNumNodes(), CTreeModel< TNode >::GetRootIdx(), CPhyloTreeCalculator::Init(), m_Calc, m_TreeModel, max(), CPhyloTreeCalculator::SetLabelFormat(), CPhyloTreeScheme::SetMaxBranchDist(), CPhyloTreeScheme::SetMaxNumChildren(), CTreeModel< TNode >::SetNumNodes(), and TreeDepthFirst().
Referenced by CPhyTreeView::OnBioTreeChanged(), CPhyloTreeWidget::OnClean(), CPhyloTreeWidget::OnOpenPropertiesDlg(), CPhyloTreeWidget::OnRerootTree(), CPhyloTreeWidget::OnRerootTreeAtEdge(), CPhyloTreeWidget::OnSetMidpointRoot(), CPhyloTreeWidget::QueryEnd(), and IPhyloTreeRender::RenderPdf().
◆ Remove() void CPhyloTreeDataSource::Remove ( bool subtree =true
)
Definition at line 1413 of file phylo_tree_ds.cpp.
References _TRACE, CTreeModel< TNode >::AddChild(), CTreeModelNode< TData >::ClearConnections(), CPhyloTree::ClearSelection(), CPhyloTree::GetCurrentNodeIdx(), CRef< C, Locker >::GetNCObject(), CTreeModel< TNode >::GetNode(), CTreeModelNode< TData >::GetParent(), CTreeModelNode< TData >::GetValue(), m_TreeModel, MeasureTree(), CTreeModel< CPhyloTreeNode >::Null(), CTreeModel< TNode >::RemoveChild(), CPhyloNodeData::SetId(), CTreeModelNode< TData >::SubNodeBegin(), CTreeModelNode< TData >::SubNodeEnd(), TreeDepthFirst(), and CPhyloTree::UpdateNodesMapping().
Referenced by CPhyloTreeWidget::OnEdit().
◆ RemoveSelected() void CPhyloTreeDataSource::RemoveSelected ( )Definition at line 1452 of file phylo_tree_ds.cpp.
References _TRACE, CPhyloTree::ClearSelection(), CPhyloTree::FindNodeById(), CPhyloTree::GetExplicitlySelectedIDs(), CRef< C, Locker >::GetNCObject(), CTreeModel< TNode >::GetNode(), CTreeModelNode< TData >::GetParent(), i, m_TreeModel, MeasureTree(), CTreeModel< CPhyloTreeNode >::Null(), CTreeModel< TNode >::RemoveChild(), TreeDepthFirst(), and CPhyloTree::UpdateNodesMapping().
Referenced by CPhyloTreeWidget::OnEdit().
◆ ReRoot() void CPhyloTreeDataSource::ReRoot ( TTreeIdx root_idx )Set the root node of the tree to the node at root_idx.
Definition at line 477 of file phylo_tree_ds.cpp.
References CPhyloTree::GetFeatureDict(), CTreeModel< TNode >::GetNode(), CTreeModelNode< TData >::GetValue(), m_TreeModel, CTreeModel< CPhyloTreeNode >::Null(), CTreeModel< TNode >::ReRoot(), CPhyloNodeData::SetDistance(), CTreeModelNode< TData >::SetParent(), and CPhyloNodeData::Sync().
Referenced by CPhyloTreeWidget::OnRerootTree(), CPhyloTreeWidget::OnZoomToSubtree(), ReRootEdge(), and ReRootMidpoint().
◆ ReRootEdge() void CPhyloTreeDataSource::ReRootEdge ( TTreeIdx edge_child_node )Re-root on the edge between the selected node and its parent.
Definition at line 488 of file phylo_tree_ds.cpp.
References CPhyloNodeData::GetDistance(), CPhyloTree::GetFeatureDict(), CTreeModel< TNode >::GetNode(), CTreeModelNode< TData >::GetValue(), CBioTreeFeatureDictionary::HasFeature(), m_TreeModel, NewNode(), CTreeModel< CPhyloTreeNode >::Null(), ReRoot(), CPhyloTree::SetCurrentNode(), CPhyloNodeData::SetDistance(), and CPhyloNodeData::Sync().
Referenced by CPhyloTreeWidget::OnRerootTreeAtEdge().
◆ ReRootMidpoint() void CPhyloTreeDataSource::ReRootMidpoint ( )Re-root tree using midpoint-method.
Definition at line 513 of file phylo_tree_ds.cpp.
References _ASSERT, close(), NStr::DoubleToString(), CPhyloNodeData::GetDistance(), CPhyloTreeDistFromRoot::GetDistances(), CPhyloTree::GetFeatureDict(), CPhyloTreeMidpointDist::GetLongest(), CPhyloTreeDistFromRoot::GetMaxDistNode(), CRef< C, Locker >::GetNCObject(), CRef< C, Locker >::GetNCPointer(), CTreeModel< TNode >::GetNode(), CTreeModelNode< TData >::GetParent(), CTreeModel< TNode >::GetRootIdx(), CTreeModelNode< TData >::GetValue(), CBioTreeFeatureDictionary::HasFeature(), CTreeModelNode< TData >::HasParent(), i, Info(), LOG_POST, m_TreeModel, NewNode(), CTreeModel< CPhyloTreeNode >::Null(), ReRoot(), CPhyloTree::SetCurrentNode(), CPhyloNodeData::SetDistance(), CPhyloNodeData::SetFeature(), CPhyloNodeData::Sync(), and TreeDepthFirst().
Referenced by CPhyloTreeWidget::OnSetMidpointRoot().
◆ SetCollapsedLabel()Collapse single node, do any relabeling if needed.
Definition at line 1493 of file phylo_tree_ds.cpp.
References CPhyloTreeNode::CanExpandCollapse(), CPhyloNodeData::eHideChildren, CPhyloTree::GetFeatureDict(), CBioTreeFeatureList::GetFeatureValue(), CBioTreeFeatureDictionary::GetId(), CPhyloTreePriorityNode::GetMaxPriorityNode(), CTreeModel< TNode >::GetNode(), CBioTreeFeatureDictionary::HasFeature(), m_TreeModel, CTreeModel< CPhyloTreeNode >::Null(), CBioTreeFeatureList::SetFeature(), CPhyloTreeNode::SetLabel(), and TreeDepthFirst().
Referenced by CollapseSelected(), CPhyloTreeWidget::OnCollapseChildren(), IPhyloTreeRender::OnLeftDblClick(), and SetCollapsedLabels().
◆ SetCollapsedLabels() ◆ SetColorIndices() ◆ SetCurrentSearchNode() void CPhyloTreeDataSource::SetCurrentSearchNode ( TTreeIdx node_idx ) inline ◆ SetQueryResults() ◆ SetTreeLabel() ◆ Sort() void CPhyloTreeDataSource::Sort ( bool ascending ) ◆ SortDist() void CPhyloTreeDataSource::SortDist ( bool ascending )Definition at line 762 of file phylo_tree_ds.cpp.
References CPhyloTreeMaxChildDist::GetDistances(), CPhyloTree::GetFeatureDict(), CRef< C, Locker >::GetNCObject(), CRef< C, Locker >::GetNCPointer(), CTreeModel< TNode >::GetRootIdx(), CBioTreeFeatureDictionary::HasFeature(), m_TreeModel, MeasureTree(), and TreeDepthFirst().
Referenced by CPhyloTreeWidget::OnSort().
◆ SortLabel() void CPhyloTreeDataSource::SortLabel ( bool ascending ) ◆ SortLabelRange() void CPhyloTreeDataSource::SortLabelRange ( bool ascending ) ◆ UpdateSelectionSets()Definition at line 1131 of file phylo_tree_ds.cpp.
References Clusterize(), GetMaxClusterID(), CRef< C, Locker >::GetPointer(), CPhyloTree::GetSelectionSets(), GetSelectionSets(), CPhyloSelectionSetMgr::GetSets(), m_TreeModel, MeasureTree(), CPhyloSelectionSetMgr::RenumberClusterIDs(), and CPhyloSelectionSetMgr::SetSelectionSetProperty().
Referenced by CPhyloTreeWidget::OnAddSelectionSet().
◆ m_CalcDefinition at line 395 of file phylo_tree_ds.hpp.
Referenced by ApplyAttributes(), Clusterize(), GetMaxClusterID(), GetMaxLabelLen(), GetMinDistance(), GetNormDistance(), GetNumEdges(), GetNumNodes(), GetSize(), GetVisibleNodes(), GetWidth(), HasClusters(), Init(), MeasureTree(), Relabel(), and ~CPhyloTreeDataSource().
◆ m_ClusterToColorMap ◆ m_LenDistribution std::vector<float> CPhyloTreeDataSource::m_LenDistribution protected ◆ m_Scope CRef<objects::CScope> CPhyloTreeDataSource::m_Scope protected ◆ m_SearchCurrentNode TTreeIdx CPhyloTreeDataSource::m_SearchCurrentNode protected ◆ m_sTreeClipboard ◆ m_StringQueryIDs ◆ m_TreeLabel ◆ m_TreeModelDefinition at line 389 of file phylo_tree_ds.hpp.
Referenced by ApplyAttributes(), Clear(), Clusterize(), CollapseByDistance(), CollapseSelected(), ComputeLengthsFromRoot(), Cut(), ExecuteStringQuery(), Filter(), FilterDistances(), FindNodes(), GenerateTooltipFormat(), GetBoundRect(), GetColsCount(), GetColumnLabel(), GetDictionary(), GetModel(), GetSelectionSets(), GetTree(), Init(), IterateOverSelNodes(), MeasureTree(), MoveNode(), NewNode(), Paste(), Relabel(), Remove(), RemoveSelected(), ReRoot(), ReRootEdge(), ReRootMidpoint(), SetCollapsedLabel(), SetCollapsedLabels(), SetColorIndices(), SetQueryResults(), Sort(), SortDist(), SortLabel(), SortLabelRange(), and UpdateSelectionSets().
The documentation for this class was generated from the following files:
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