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

Method ExecuteDataWithInformation

IO/Image/vtkMetaImageReader.cxx:205–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void vtkMetaImageReader::ExecuteDataWithInformation(vtkDataObject* output, vtkInformation* outInfo)
206{
207
208 vtkImageData* data = this->AllocateOutputData(output, outInfo);
209
210 if (!this->FileName)
211 {
212 vtkErrorMacro(<< "A filename was not specified.");
213 return;
214 }
215
216 data->GetPointData()->GetScalars()->SetName("MetaImage");
217
218 this->ComputeDataIncrements();
219
220 if (!this->MetaImagePtr->Read(this->FileName, true, data->GetScalarPointer()))
221 {
222 vtkErrorMacro(<< "MetaImage cannot read data from file.");
223 return;
224 }
225
226 this->MetaImagePtr->ElementByteOrderFix();
227}
228
229int vtkMetaImageReader::RequestInformation(
230 vtkInformation*, vtkInformationVector**, vtkInformationVector* outputVector)

Callers

nothing calls this directly

Calls 8

GetScalarPointerMethod · 0.80
AllocateOutputDataMethod · 0.45
SetNameMethod · 0.45
GetScalarsMethod · 0.45
GetPointDataMethod · 0.45
ComputeDataIncrementsMethod · 0.45
ReadMethod · 0.45
ElementByteOrderFixMethod · 0.45

Tested by

no test coverage detected