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

Method RequestData

Filters/CellGrid/vtkCellGridToUnstructuredGrid.cxx:192–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192int vtkCellGridToUnstructuredGrid::RequestData(
193 vtkInformation* vtkNotUsed(request), vtkInformationVector** inInfo, vtkInformationVector* ouInfo)
194{
195 auto* input = vtkCellGrid::GetData(inInfo[0]);
196 auto* output = vtkUnstructuredGrid::GetData(ouInfo);
197 if (!input)
198 {
199 vtkWarningMacro("Empty input.");
200 return 1;
201 }
202 if (!output)
203 {
204 vtkErrorMacro("Empty output.");
205 return 0;
206 }
207
208 output->Initialize();
209 this->Request->Input = input;
210 this->Request->Output = output;
211 // Run the cell-center query on the request.
212 if (!input->Query(this->Request))
213 {
214 vtkErrorMacro("Input failed to respond to query.");
215 return 0;
216 }
217
218 return 1;
219}
220
221VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 3

GetDataFunction · 0.50
InitializeMethod · 0.45
QueryMethod · 0.45

Tested by

no test coverage detected