------------------------------------------------------------------------------
| 68 | |
| 69 | //------------------------------------------------------------------------------ |
| 70 | void vtkMultiBlockUnstructuredGridVolumeMapper::Render(vtkRenderer* ren, vtkVolume* vol) |
| 71 | { |
| 72 | vtkDataObject* dataObj = this->GetDataObjectInput(); |
| 73 | if (dataObj->GetMTime() != this->BlockLoadingTime) |
| 74 | { |
| 75 | vtkDebugMacro("Reloading data blocks!"); |
| 76 | this->LoadDataSet(); |
| 77 | this->BlockLoadingTime = dataObj->GetMTime(); |
| 78 | } |
| 79 | |
| 80 | vol->GetModelToWorldMatrix(this->TempMatrix4x4); |
| 81 | this->SortMappers(ren, this->TempMatrix4x4); |
| 82 | |
| 83 | for (auto& mapper : this->Mappers) |
| 84 | { |
| 85 | int unused = 0; |
| 86 | auto input = mapper->GetInput(); |
| 87 | auto scalars = vtkAbstractMapper::GetScalars( |
| 88 | input, this->ScalarMode, this->ArrayAccessMode, this->ArrayId, this->ArrayName, unused); |
| 89 | if (scalars != nullptr) |
| 90 | { |
| 91 | mapper->Render(ren, vol); |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | //------------------------------------------------------------------------------ |
| 97 | void vtkMultiBlockUnstructuredGridVolumeMapper::SortMappers( |
nothing calls this directly
no test coverage detected