MCPcopy Create free account
hub / github.com/Kitware/VTK / SpacingCallback

Method SpacingCallback

IO/Image/vtkImageExport.cxx:361–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361double* 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
378double* vtkImageExport::OriginCallback()
379{

Callers 1

Calls 4

GetInputAlgorithmMethod · 0.95
GetDataSpacingMethod · 0.95
GetInputMethod · 0.95
GetSpacingMethod · 0.45

Tested by

no test coverage detected