------------------------------------------------------------------------------
| 55 | |
| 56 | //------------------------------------------------------------------------------ |
| 57 | void vtkStructuredGridClip::SetOutputWholeExtent(int extent[6], vtkInformation* outInfo) |
| 58 | { |
| 59 | int idx; |
| 60 | int modified = 0; |
| 61 | |
| 62 | for (idx = 0; idx < 6; ++idx) |
| 63 | { |
| 64 | if (this->OutputWholeExtent[idx] != extent[idx]) |
| 65 | { |
| 66 | this->OutputWholeExtent[idx] = extent[idx]; |
| 67 | modified = 1; |
| 68 | } |
| 69 | } |
| 70 | this->Initialized = 1; |
| 71 | if (modified) |
| 72 | { |
| 73 | this->Modified(); |
| 74 | if (!outInfo) |
| 75 | { |
| 76 | outInfo = this->GetExecutive()->GetOutputInformation(0); |
| 77 | } |
| 78 | outInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(), extent, 6); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | //------------------------------------------------------------------------------ |
| 83 | void vtkStructuredGridClip::SetOutputWholeExtent( |
no test coverage detected