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

Method SetInputUpdateExtent

IO/XML/vtkXMLStructuredDataWriter.cxx:64–81  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

62
63//------------------------------------------------------------------------------
64void 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
83vtkIdType vtkXMLStructuredDataWriter::GetNumberOfValues(vtkDataSet* input)
84{

Callers 1

ProcessRequestMethod · 0.95

Calls 4

GetInputInformationMethod · 0.45
GetExecutiveMethod · 0.45
SetMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected