| 203 | } |
| 204 | |
| 205 | void 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 | |
| 229 | int vtkMetaImageReader::RequestInformation( |
| 230 | vtkInformation*, vtkInformationVector**, vtkInformationVector* outputVector) |
nothing calls this directly
no test coverage detected