------------------------------------------------------------------------------
| 46 | |
| 47 | //------------------------------------------------------------------------------ |
| 48 | void vtkTreeHeatmapItem::SetTree(vtkTree* tree) |
| 49 | { |
| 50 | this->Dendrogram->SetTree(tree); |
| 51 | if (tree == nullptr) |
| 52 | { |
| 53 | return; |
| 54 | } |
| 55 | |
| 56 | if (this->GetTable() != nullptr && this->GetTable()->GetNumberOfRows() != 0) |
| 57 | { |
| 58 | this->Dendrogram->SetDrawLabels(false); |
| 59 | } |
| 60 | this->Dendrogram->SetVisible(true); |
| 61 | |
| 62 | // rearrange our table to match the order of the leaf nodes in this tree. |
| 63 | if (this->GetTable() != nullptr && this->GetTable()->GetNumberOfRows() != 0) |
| 64 | { |
| 65 | this->ReorderTable(); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | //------------------------------------------------------------------------------ |
| 70 | void vtkTreeHeatmapItem::SetTable(vtkTable* table) |
no test coverage detected