| 585 | } |
| 586 | |
| 587 | double* vtkImageExport::GetDataSpacing() |
| 588 | { |
| 589 | static double defaultspacing[3] = { 1, 1, 1 }; |
| 590 | if (this->GetInput() == nullptr) |
| 591 | { |
| 592 | return defaultspacing; |
| 593 | } |
| 594 | this->GetInputAlgorithm()->UpdateInformation(); |
| 595 | return this->GetInputInformation()->Get(vtkDataObject::SPACING()); |
| 596 | } |
| 597 | |
| 598 | void vtkImageExport::GetDataSpacing(double* ptr) |
| 599 | { |