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

Method RequestInformation

Filters/Extraction/vtkExtractDataOverTime.cxx:34–61  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

32
33//------------------------------------------------------------------------------
34int vtkExtractDataOverTime::RequestInformation(vtkInformation* vtkNotUsed(request),
35 vtkInformationVector** inputVector, vtkInformationVector* outputVector)
36{
37 vtkInformation* inInfo = inputVector[0]->GetInformationObject(0);
38 if (inInfo->Has(vtkStreamingDemandDrivenPipeline::TIME_STEPS()))
39 {
40 this->NumberOfTimeSteps = inInfo->Length(vtkStreamingDemandDrivenPipeline::TIME_STEPS());
41 }
42 else
43 {
44 this->NumberOfTimeSteps = 0;
45 }
46 // The output of this filter does not contain a specific time, rather
47 // it contains a collection of time steps. Also, this filter does not
48 // respond to time requests. Therefore, we remove all time information
49 // from the output.
50 vtkInformation* outInfo = outputVector->GetInformationObject(0);
51 if (outInfo->Has(vtkStreamingDemandDrivenPipeline::TIME_STEPS()))
52 {
53 outInfo->Remove(vtkStreamingDemandDrivenPipeline::TIME_STEPS());
54 }
55 if (outInfo->Has(vtkStreamingDemandDrivenPipeline::TIME_RANGE()))
56 {
57 outInfo->Remove(vtkStreamingDemandDrivenPipeline::TIME_RANGE());
58 }
59
60 return 1;
61}
62
63//------------------------------------------------------------------------------
64vtkTypeBool vtkExtractDataOverTime::ProcessRequest(

Callers 1

ProcessRequestMethod · 0.95

Calls 4

GetInformationObjectMethod · 0.80
HasMethod · 0.45
LengthMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected