------------------------------------------------------------------------------
| 62 | |
| 63 | //------------------------------------------------------------------------------ |
| 64 | void vtkXMLStructuredDataWriter::SetInputUpdateExtent(int piece) |
| 65 | { |
| 66 | vtkInformation* inInfo = this->GetExecutive()->GetInputInformation(0, 0); |
| 67 | inInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_PIECE_NUMBER(), piece); |
| 68 | inInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_PIECES(), this->NumberOfPieces); |
| 69 | inInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_GHOST_LEVELS(), this->GhostLevel); |
| 70 | if ((this->WriteExtent[0] == 0) && (this->WriteExtent[1] == -1) && (this->WriteExtent[2] == 0) && |
| 71 | (this->WriteExtent[3] == -1) && (this->WriteExtent[4] == 0) && (this->WriteExtent[5] == -1)) |
| 72 | { |
| 73 | inInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(), |
| 74 | inInfo->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT()), 6); |
| 75 | } |
| 76 | else |
| 77 | { |
| 78 | inInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(), this->WriteExtent, 6); |
| 79 | } |
| 80 | inInfo->Set(vtkStreamingDemandDrivenPipeline::EXACT_EXTENT(), 1); |
| 81 | } |
| 82 | |
| 83 | vtkIdType vtkXMLStructuredDataWriter::GetNumberOfValues(vtkDataSet* input) |
| 84 | { |
no test coverage detected