------------------------------------------------------------------------------
| 112 | |
| 113 | //------------------------------------------------------------------------------ |
| 114 | bool vtkTanglegramItem::Paint(vtkContext2D* painter) |
| 115 | { |
| 116 | this->RefreshBuffers(painter); |
| 117 | |
| 118 | if (!this->TreeReordered) |
| 119 | { |
| 120 | this->ReorderTree(); |
| 121 | |
| 122 | // this will force Dendrogram2's PrunedTree to re-copy itself from the |
| 123 | // newly rearranged tree. |
| 124 | this->Dendrogram2->PrepareToPaint(painter); |
| 125 | } |
| 126 | |
| 127 | if (!this->PositionSet) |
| 128 | { |
| 129 | this->PositionTree2(); |
| 130 | } |
| 131 | |
| 132 | this->PaintChildren(painter); |
| 133 | |
| 134 | if (this->Table != nullptr) |
| 135 | { |
| 136 | this->PaintCorrespondenceLines(painter); |
| 137 | } |
| 138 | |
| 139 | if (this->Tree1Label != nullptr || this->Tree2Label != nullptr) |
| 140 | { |
| 141 | this->PaintTreeLabels(painter); |
| 142 | } |
| 143 | |
| 144 | return true; |
| 145 | } |
| 146 | |
| 147 | //------------------------------------------------------------------------------ |
| 148 | void vtkTanglegramItem::RefreshBuffers(vtkContext2D* painter) |
nothing calls this directly
no test coverage detected