------------------------------------------------------------------------------ This function reads a data from a file. The datas extent/axes are assumed to be the same as the file extent/order.
| 706 | // This function reads a data from a file. The datas extent/axes |
| 707 | // are assumed to be the same as the file extent/order. |
| 708 | void vtkGESignaReader::ExecuteDataWithInformation(vtkDataObject* output, vtkInformation* outInfo) |
| 709 | { |
| 710 | vtkImageData* data = this->AllocateOutputData(output, outInfo); |
| 711 | |
| 712 | if (this->InternalFileName == nullptr) |
| 713 | { |
| 714 | vtkErrorMacro(<< "Either a FileName or FilePrefix must be specified."); |
| 715 | return; |
| 716 | } |
| 717 | |
| 718 | data->GetPointData()->GetScalars()->SetName("GESignalImage"); |
| 719 | |
| 720 | this->ComputeDataIncrements(); |
| 721 | |
| 722 | // Call the correct templated function for the output |
| 723 | void* outPtr; |
| 724 | |
| 725 | // Call the correct templated function for the input |
| 726 | outPtr = data->GetScalarPointer(); |
| 727 | vtkGESignaReaderUpdate(this, data, (unsigned short*)(outPtr)); |
| 728 | } |
| 729 | |
| 730 | //------------------------------------------------------------------------------ |
| 731 | void vtkGESignaReader::PrintSelf(ostream& os, vtkIndent indent) |
nothing calls this directly
no test coverage detected