------------------------------------------------------------------------------
| 125 | |
| 126 | //------------------------------------------------------------------------------ |
| 127 | int vtkExtractRectilinearGrid::RequestData( |
| 128 | vtkInformation*, vtkInformationVector** inputVector, vtkInformationVector* outputVector) |
| 129 | { |
| 130 | // Reset internal helper to the actual extents of the piece we're working on: |
| 131 | vtkInformation* inInfo = inputVector[0]->GetInformationObject(0); |
| 132 | vtkRectilinearGrid* inGrid = vtkRectilinearGrid::GetData(inInfo); |
| 133 | this->Internal->Initialize( |
| 134 | this->VOI, inGrid->GetExtent(), this->SampleRate, (this->IncludeBoundary != 0)); |
| 135 | |
| 136 | if (!this->Internal->IsValid()) |
| 137 | { |
| 138 | return 0; |
| 139 | } |
| 140 | |
| 141 | // Set the output extent -- this is how RequestDataImpl knows what to copy. |
| 142 | vtkInformation* outInfo = outputVector->GetInformationObject(0); |
| 143 | vtkRectilinearGrid* output = |
| 144 | vtkRectilinearGrid::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())); |
| 145 | output->SetExtent(this->Internal->GetOutputWholeExtent()); |
| 146 | |
| 147 | return this->RequestDataImpl(inputVector, outputVector) ? 1 : 0; |
| 148 | } |
| 149 | |
| 150 | //------------------------------------------------------------------------------ |
| 151 | bool vtkExtractRectilinearGrid::RequestDataImpl( |
nothing calls this directly
no test coverage detected