|
bpp-qt
2.1.0
|
Panel that display a few statistics on a tree. More...
#include <Bpp/Qt/Tree/TreeStatisticsBox.h>
Collaboration diagram for bpp::TreeStatisticsBox:Public Member Functions | |
| TreeStatisticsBox (QWidget *parent=0) | |
| virtual | ~TreeStatisticsBox () |
| virtual void | updateTree (const Tree &tree) |
Protected Attributes | |
| PhyloStatistics | stats_ |
| QLabel | leavesNumber_ |
| QLabel | ancestorsNumber_ |
| QLabel | maxFurcation_ |
| QLabel | depth_ |
| QLabel | height_ |
Panel that display a few statistics on a tree.
Definition at line 58 of file TreeStatisticsBox.h.
| TreeStatisticsBox::TreeStatisticsBox | ( | QWidget * | parent = 0 | ) |
Definition at line 50 of file TreeStatisticsBox.cpp.
References ancestorsNumber_, depth_, height_, leavesNumber_, and maxFurcation_.
| virtual bpp::TreeStatisticsBox::~TreeStatisticsBox | ( | ) | [inline, virtual] |
Definition at line 73 of file TreeStatisticsBox.h.
| void TreeStatisticsBox::updateTree | ( | const Tree & | tree | ) | [virtual] |
Definition at line 67 of file TreeStatisticsBox.cpp.
References ancestorsNumber_, depth_, bpp::PhyloStatistics::getNodeDepths(), bpp::PhyloStatistics::getNodeHeights(), bpp::PhyloStatistics::getNodeNumberOfSons(), bpp::PhyloStatistics::getNumberOfAncestors(), bpp::PhyloStatistics::getNumberOfLeaves(), height_, leavesNumber_, bpp::VectorTools::max(), maxFurcation_, bpp::PhyloStatistics::setTree(), stats_, and bpp::TextTools::toString().
QLabel bpp::TreeStatisticsBox::ancestorsNumber_ [protected] |
Definition at line 66 of file TreeStatisticsBox.h.
Referenced by TreeStatisticsBox(), and updateTree().
QLabel bpp::TreeStatisticsBox::depth_ [protected] |
Definition at line 68 of file TreeStatisticsBox.h.
Referenced by TreeStatisticsBox(), and updateTree().
QLabel bpp::TreeStatisticsBox::height_ [protected] |
Definition at line 69 of file TreeStatisticsBox.h.
Referenced by TreeStatisticsBox(), and updateTree().
QLabel bpp::TreeStatisticsBox::leavesNumber_ [protected] |
Definition at line 65 of file TreeStatisticsBox.h.
Referenced by TreeStatisticsBox(), and updateTree().
QLabel bpp::TreeStatisticsBox::maxFurcation_ [protected] |
Definition at line 67 of file TreeStatisticsBox.h.
Referenced by TreeStatisticsBox(), and updateTree().
PhyloStatistics bpp::TreeStatisticsBox::stats_ [protected] |
Definition at line 64 of file TreeStatisticsBox.h.
Referenced by updateTree().