MCPcopy Create free account
hub / github.com/Kitware/VTK / RequestUpdateExtent

Method RequestUpdateExtent

IO/ParallelXML/vtkXMLPDataObjectWriter.cxx:109–130  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

107
108//------------------------------------------------------------------------------
109int vtkXMLPDataObjectWriter::RequestUpdateExtent(vtkInformation* vtkNotUsed(request),
110 vtkInformationVector** inputVector, vtkInformationVector* vtkNotUsed(outputVector))
111{
112 vtkInformation* inInfo = inputVector[0]->GetInformationObject(0);
113 int piece = 0;
114 if (this->ContinuingExecution)
115 {
116 assert(this->CurrentPiece >= this->StartPiece && this->CurrentPiece <= this->EndPiece &&
117 this->CurrentPiece < this->NumberOfPieces);
118 piece = this->CurrentPiece;
119 }
120 else
121 {
122 piece = this->StartPiece;
123 }
124
125 inInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_PIECE_NUMBER(), piece);
126 inInfo->Set(
127 vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_PIECES(), this->GetNumberOfPieces());
128 inInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_GHOST_LEVELS(), this->GhostLevel);
129 return 1;
130}
131
132//------------------------------------------------------------------------------
133int vtkXMLPDataObjectWriter::WriteInternal()

Callers 1

ProcessRequestMethod · 0.95

Calls 4

GetInformationObjectMethod · 0.80
assertFunction · 0.50
SetMethod · 0.45
GetNumberOfPiecesMethod · 0.45

Tested by

no test coverage detected