MCPcopy Create free account
hub / github.com/Kitware/VTK / SetTree

Method SetTree

Views/Infovis/vtkTreeHeatmapItem.cxx:48–67  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

46
47//------------------------------------------------------------------------------
48void 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//------------------------------------------------------------------------------
70void vtkTreeHeatmapItem::SetTable(vtkTable* table)

Callers 1

SetColumnTreeMethod · 0.45

Calls 3

GetTableMethod · 0.95
ReorderTableMethod · 0.95
GetNumberOfRowsMethod · 0.45

Tested by

no test coverage detected