----------------------------------------------------------------------------
| 327 | |
| 328 | //---------------------------------------------------------------------------- |
| 329 | vtkHDFReader::vtkHDFReader() |
| 330 | : Cache(std::make_shared<DataCache>()) |
| 331 | { |
| 332 | this->FileName = nullptr; |
| 333 | // Setup the selection callback to modify this object when an array |
| 334 | // selection is changed. |
| 335 | this->SelectionObserver = vtkCallbackCommand::New(); |
| 336 | this->SelectionObserver->SetCallback(&vtkHDFReader::SelectionModifiedCallback); |
| 337 | this->SelectionObserver->SetClientData(this); |
| 338 | for (int i = 0; i < vtkHDFUtilities::GetNumberOfAttributeTypes(); ++i) |
| 339 | { |
| 340 | this->DataArraySelection[i] = vtkDataArraySelection::New(); |
| 341 | this->DataArraySelection[i]->AddObserver(vtkCommand::ModifiedEvent, this->SelectionObserver); |
| 342 | } |
| 343 | this->SetNumberOfInputPorts(0); |
| 344 | this->SetNumberOfOutputPorts(1); |
| 345 | |
| 346 | this->Impl = new vtkHDFReader::Implementation(this); |
| 347 | this->TimeRange[0] = this->TimeRange[1] = 0.0; |
| 348 | this->MeshCache->SetConsumer(this); |
| 349 | this->MeshCache->AddOriginalIds( |
| 350 | vtkDataObject::POINT, this->GetAttributeOriginalIdName(vtkDataObject::POINT)); |
| 351 | this->MeshCache->AddOriginalIds( |
| 352 | vtkDataObject::CELL, this->GetAttributeOriginalIdName(vtkDataObject::CELL)); |
| 353 | } |
| 354 | |
| 355 | //---------------------------------------------------------------------------- |
| 356 | vtkHDFReader::~vtkHDFReader() |
nothing calls this directly
no test coverage detected