------------------------------------------------------------------------------
| 283 | |
| 284 | //------------------------------------------------------------------------------ |
| 285 | void vtkExtractDataArraysOverTime::vtkInternal::AddTimeStep( |
| 286 | int ts_index, double time, vtkDataObject* data) |
| 287 | { |
| 288 | this->TimeArray->SetTypedComponent(ts_index, 0, time); |
| 289 | const int attributeType = this->Self->GetFieldAssociation(); |
| 290 | |
| 291 | if (auto cd = vtkCompositeDataSet::SafeDownCast(data)) |
| 292 | { |
| 293 | vtkCompositeDataIterator* iter = cd->NewIterator(); |
| 294 | for (iter->InitTraversal(); !iter->IsDoneWithTraversal(); iter->GoToNextItem()) |
| 295 | { |
| 296 | if (auto block = iter->GetCurrentDataObject()) |
| 297 | { |
| 298 | if (block->GetAttributesAsFieldData(attributeType) != nullptr) |
| 299 | { |
| 300 | this->AddTimeStepInternal(iter->GetCurrentFlatIndex(), ts_index, time, block); |
| 301 | } |
| 302 | } |
| 303 | } |
| 304 | iter->Delete(); |
| 305 | } |
| 306 | else if (data) |
| 307 | { |
| 308 | if (data->GetAttributesAsFieldData(attributeType) != nullptr) |
| 309 | { |
| 310 | this->AddTimeStepInternal(0, ts_index, time, data); |
| 311 | } |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | //------------------------------------------------------------------------------ |
| 316 | static void vtkExtractArraysAssignUniqueCoordNames( |
no test coverage detected