------------------------------------------------------------------------------
| 297 | |
| 298 | //------------------------------------------------------------------------------ |
| 299 | void vtkTreeHeatmapItem::ReverseTableColumns() |
| 300 | { |
| 301 | // make a copy of our table and then empty out the original. |
| 302 | vtkNew<vtkTable> tableCopy; |
| 303 | tableCopy->DeepCopy(this->GetTable()); |
| 304 | for (vtkIdType col = tableCopy->GetNumberOfColumns() - 1; col > 0; --col) |
| 305 | { |
| 306 | this->GetTable()->RemoveColumn(col); |
| 307 | } |
| 308 | |
| 309 | // re-insert the columns back into our original table in reverse order |
| 310 | for (vtkIdType col = tableCopy->GetNumberOfColumns() - 1; col >= 1; --col) |
| 311 | { |
| 312 | this->GetTable()->AddColumn(tableCopy->GetColumn(col)); |
| 313 | } |
| 314 | } |
| 315 | |
| 316 | //------------------------------------------------------------------------------ |
| 317 | bool vtkTreeHeatmapItem::Paint(vtkContext2D* painter) |
no test coverage detected