------------------------------------------------------------------------------
| 32 | |
| 33 | //------------------------------------------------------------------------------ |
| 34 | int 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 | //------------------------------------------------------------------------------ |
| 64 | vtkTypeBool vtkExtractDataOverTime::ProcessRequest( |
no test coverage detected