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

Method OriginCallback

IO/Image/vtkImageExport.cxx:378–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378double* vtkImageExport::OriginCallback()
379{
380 static double defaultorigin[3] = { 0.0 };
381 if (this->GetInputAlgorithm())
382 {
383 return this->GetDataOrigin();
384 }
385 else if (!this->GetInput())
386 {
387 return defaultorigin;
388 }
389 else
390 {
391 return this->GetInput()->GetOrigin();
392 }
393}
394
395double* vtkImageExport::DirectionCallback()
396{

Callers 1

Calls 4

GetInputAlgorithmMethod · 0.95
GetDataOriginMethod · 0.95
GetInputMethod · 0.95
GetOriginMethod · 0.45

Tested by

no test coverage detected