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

Method RequestData

IO/MINC/vtkMNIObjectReader.cxx:807–824  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

805
806//------------------------------------------------------------------------------
807int vtkMNIObjectReader::RequestData(vtkInformation* vtkNotUsed(request),
808 vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* outputVector)
809{
810 // get the info object
811 vtkInformation* outInfo = outputVector->GetInformationObject(0);
812
813 // get the output
814 vtkPolyData* output = vtkPolyData::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));
815
816 // all of the data in the first piece.
817 if (outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_PIECE_NUMBER()) > 0)
818 {
819 return 0;
820 }
821
822 // read the file
823 return this->ReadFile(output);
824}
825VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 3

ReadFileMethod · 0.95
GetInformationObjectMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected