------------------------------------------------------------------------------
| 398 | |
| 399 | //------------------------------------------------------------------------------ |
| 400 | void ctkVTKDataSetModel::updateItemFromArray(QStandardItem* item, |
| 401 | vtkAbstractArray* array, |
| 402 | int location, |
| 403 | int column) |
| 404 | { |
| 405 | item->setData(QVariant::fromValue(reinterpret_cast<long long>(array)), ctkVTK::PointerRole); |
| 406 | item->setData(location, ctkVTK::LocationRole); |
| 407 | switch (column) |
| 408 | { |
| 409 | case 0: |
| 410 | item->setText(QString(array->GetName())); |
| 411 | break; |
| 412 | default: |
| 413 | Q_ASSERT(column == 0); |
| 414 | break; |
| 415 | } |
| 416 | } |
| 417 | |
| 418 | //------------------------------------------------------------------------------ |
| 419 | /* |
no test coverage detected