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

Method RequestData

Filters/General/vtkMergeTimeFilter.cxx:217–244  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

215
216//------------------------------------------------------------------------------
217int vtkMergeTimeFilter::RequestData(vtkInformation* vtkNotUsed(request),
218 vtkInformationVector** inputVector, vtkInformationVector* outputVector)
219{
220 vtkInformation* outInfo = outputVector->GetInformationObject(0);
221 vtkMultiBlockDataSet* output =
222 vtkMultiBlockDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));
223
224 if (!output)
225 {
226 return 0;
227 }
228
229 vtkNew<vtkMultiBlockDataGroupFilter> groupInputs;
230 int numInputs = inputVector[0]->GetNumberOfInformationObjects();
231 for (int idx = 0; idx < numInputs; idx++)
232 {
233 vtkInformation* inInfo = inputVector[0]->GetInformationObject(idx);
234 vtkDataObject* input = inInfo->Get(vtkDataObject::DATA_OBJECT());
235 groupInputs->AddInputData(input);
236 }
237 groupInputs->SetContainerAlgorithm(this);
238 groupInputs->Update();
239 output->CompositeShallowCopy(groupInputs->GetOutput());
240
241 output->GetInformation()->Set(vtkDataObject::DATA_TIME_STEP(), this->RequestedTimeValue);
242
243 return 1;
244}
245VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 8

GetInformationObjectMethod · 0.80
GetMethod · 0.45
AddInputDataMethod · 0.45
UpdateMethod · 0.45
CompositeShallowCopyMethod · 0.45
GetOutputMethod · 0.45
SetMethod · 0.45
GetInformationMethod · 0.45

Tested by

no test coverage detected