MCPcopy Create free account
hub / github.com/Kitware/VTK / vtkHDFReader

Method vtkHDFReader

IO/HDF/vtkHDFReader.cxx:329–353  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

327
328//----------------------------------------------------------------------------
329vtkHDFReader::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//----------------------------------------------------------------------------
356vtkHDFReader::~vtkHDFReader()

Callers

nothing calls this directly

Calls 8

SetClientDataMethod · 0.80
NewFunction · 0.50
AddObserverMethod · 0.45
SetNumberOfInputPortsMethod · 0.45
AddOriginalIdsMethod · 0.45

Tested by

no test coverage detected