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

Method ProcessRequest

IO/MINC/vtkMNITransformWriter.cxx:457–475  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

455
456//------------------------------------------------------------------------------
457vtkTypeBool vtkMNITransformWriter::ProcessRequest(
458 vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector)
459{
460 if (request->Has(vtkDemandDrivenPipeline::REQUEST_DATA()))
461 {
462 if (this->Transform)
463 {
464 this->Transform->Update();
465 }
466 int n = this->Transforms->GetNumberOfItems();
467 for (int i = 0; i < n; i++)
468 {
469 ((vtkAbstractTransform*)this->Transforms->GetItemAsObject(i))->Update();
470 }
471 return this->WriteFile();
472 }
473
474 return this->Superclass::ProcessRequest(request, inputVector, outputVector);
475}
476
477//------------------------------------------------------------------------------
478void vtkMNITransformWriter::Write()

Callers

nothing calls this directly

Calls 5

WriteFileMethod · 0.95
GetItemAsObjectMethod · 0.80
HasMethod · 0.45
UpdateMethod · 0.45
GetNumberOfItemsMethod · 0.45

Tested by

no test coverage detected