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

Method RequestInformation

Filters/General/vtkGroupTimeStepsFilter.cxx:58–73  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

56
57//----------------------------------------------------------------------------
58int vtkGroupTimeStepsFilter::RequestInformation(vtkInformation* vtkNotUsed(request),
59 vtkInformationVector** inInfo, vtkInformationVector* outInfoVec)
60{
61 this->UpdateTimeIndex = 0;
62
63 auto info = inInfo[0]->GetInformationObject(0);
64 int len = info->Length(vtkStreamingDemandDrivenPipeline::TIME_STEPS());
65 const double* timeSteps = info->Get(vtkStreamingDemandDrivenPipeline::TIME_STEPS());
66 this->TimeSteps.resize(len);
67 std::copy(timeSteps, timeSteps + len, this->TimeSteps.begin());
68
69 auto outInfo = outInfoVec->GetInformationObject(0);
70 outInfo->Remove(vtkStreamingDemandDrivenPipeline::TIME_STEPS());
71 outInfo->Remove(vtkStreamingDemandDrivenPipeline::TIME_RANGE());
72 return 1;
73}
74
75//----------------------------------------------------------------------------
76int vtkGroupTimeStepsFilter::RequestData(

Callers

nothing calls this directly

Calls 7

GetInformationObjectMethod · 0.80
copyFunction · 0.50
LengthMethod · 0.45
GetMethod · 0.45
resizeMethod · 0.45
beginMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected