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

Method RequestInformation

IO/Image/vtkMetaImageReader.cxx:229–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229int vtkMetaImageReader::RequestInformation(
230 vtkInformation*, vtkInformationVector**, vtkInformationVector* outputVector)
231{
232
233 this->ExecuteInformation();
234
235 vtkInformation* outInfo = outputVector->GetInformationObject(0);
236
237 outInfo->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), this->DataExtent, 6);
238 outInfo->Set(vtkDataObject::SPACING(), this->DataSpacing, 3);
239 outInfo->Set(vtkDataObject::ORIGIN(), this->DataOrigin, 3);
240
241 vtkDataObject::SetPointDataActiveScalarInfo(
242 outInfo, this->DataScalarType, this->NumberOfScalarComponents);
243
244 return 1;
245}
246
247//------------------------------------------------------------------------------
248int vtkMetaImageReader::CanReadFile(const char* fname)

Callers

nothing calls this directly

Calls 3

ExecuteInformationMethod · 0.95
GetInformationObjectMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected