------------------------------------------------------------------------------
| 37 | |
| 38 | //------------------------------------------------------------------------------ |
| 39 | int vtkExtractGrid::RequestInformation(vtkInformation* vtkNotUsed(request), |
| 40 | vtkInformationVector** inputVector, vtkInformationVector* outputVector) |
| 41 | { |
| 42 | // get the info objects |
| 43 | vtkInformation* inInfo = inputVector[0]->GetInformationObject(0); |
| 44 | vtkInformation* outInfo = outputVector->GetInformationObject(0); |
| 45 | |
| 46 | int wholeExtent[6]; |
| 47 | inInfo->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), wholeExtent); |
| 48 | this->Internal->Initialize( |
| 49 | this->VOI, wholeExtent, this->SampleRate, (this->IncludeBoundary == 1)); |
| 50 | |
| 51 | if (!this->Internal->IsValid()) |
| 52 | { |
| 53 | vtkDebugMacro("Error while initializing filter."); |
| 54 | return 0; |
| 55 | } |
| 56 | |
| 57 | int outWholeExt[6]; |
| 58 | this->Internal->GetOutputWholeExtent(outWholeExt); |
| 59 | outInfo->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), outWholeExt, 6); |
| 60 | return 1; |
| 61 | } |
| 62 | |
| 63 | //------------------------------------------------------------------------------ |
| 64 | int vtkExtractGrid::RequestUpdateExtent(vtkInformation* vtkNotUsed(request), |
nothing calls this directly
no test coverage detected