| 162 | // update, though) |
| 163 | |
| 164 | void* vtkImageExport::GetPointerToData() |
| 165 | { |
| 166 | // Error checking |
| 167 | if (this->GetInput() == nullptr) |
| 168 | { |
| 169 | vtkErrorMacro(<< "Export: Please specify an input!"); |
| 170 | return nullptr; |
| 171 | } |
| 172 | |
| 173 | vtkImageData* input = this->GetInput(); |
| 174 | vtkAlgorithm* inpAlgorithm = this->GetInputAlgorithm(); |
| 175 | inpAlgorithm->UpdateInformation(); |
| 176 | inpAlgorithm->ReleaseDataFlagOff(); |
| 177 | |
| 178 | inpAlgorithm->UpdateWholeExtent(); |
| 179 | this->UpdateProgress(0.0); |
| 180 | this->UpdateProgress(1.0); |
| 181 | |
| 182 | return input->GetScalarPointer(); |
| 183 | } |
| 184 | |
| 185 | //------------------------------------------------------------------------------ |
| 186 | void* vtkImageExport::GetCallbackUserData() |
no test coverage detected