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

Method ProcessInformationRequest

Rendering/VolumeAMR/vtkAMRVolumeMapper.cxx:570–591  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

568}
569//------------------------------------------------------------------------------
570void vtkAMRVolumeMapper::ProcessInformationRequest(vtkRenderer* ren, vtkInformation* info,
571 vtkInformationVector** inputVector, vtkInformationVector* outputVector)
572{
573 vtkInformation* input = inputVector[0]->GetInformationObject(0);
574 if (!(input && input->Has(vtkCompositeDataPipeline::COMPOSITE_DATA_META_DATA())))
575 {
576 this->HasMetaData = false;
577 this->Resampler->SetDemandDrivenMode(0);
578 return;
579 }
580
581 if (!this->HasMetaData)
582 {
583 this->HasMetaData = true;
584 this->Resampler->SetDemandDrivenMode(1);
585 }
586 vtkOverlappingAMR* amrMetaData = vtkOverlappingAMR::SafeDownCast(
587 input->Get(vtkCompositeDataPipeline::COMPOSITE_DATA_META_DATA()));
588
589 this->UpdateResampler(ren, amrMetaData);
590 this->Resampler->RequestInformation(info, inputVector, outputVector);
591}
592//------------------------------------------------------------------------------
593
594// Print the vtkAMRVolumeMapper

Callers

nothing calls this directly

Calls 5

UpdateResamplerMethod · 0.95
GetInformationObjectMethod · 0.80
HasMethod · 0.45
GetMethod · 0.45
RequestInformationMethod · 0.45

Tested by

no test coverage detected