| 359 | } |
| 360 | |
| 361 | double* vtkImageExport::SpacingCallback() |
| 362 | { |
| 363 | static double defaultspacing[3] = { 0.0 }; |
| 364 | if (this->GetInputAlgorithm()) |
| 365 | { |
| 366 | return this->GetDataSpacing(); |
| 367 | } |
| 368 | else if (!this->GetInput()) |
| 369 | { |
| 370 | return defaultspacing; |
| 371 | } |
| 372 | else |
| 373 | { |
| 374 | return this->GetInput()->GetSpacing(); |
| 375 | } |
| 376 | } |
| 377 | |
| 378 | double* vtkImageExport::OriginCallback() |
| 379 | { |
no test coverage detected