| 51 | } |
| 52 | |
| 53 | int vtkCellGridCellSource::RequestData(vtkInformation* vtkNotUsed(request), |
| 54 | vtkInformationVector** vtkNotUsed(inInfo), vtkInformationVector* ouInfo) |
| 55 | { |
| 56 | auto* output = vtkCellGrid::GetData(ouInfo); |
| 57 | if (!output) |
| 58 | { |
| 59 | vtkErrorMacro("Empty output."); |
| 60 | return 0; |
| 61 | } |
| 62 | |
| 63 | output->Initialize(); |
| 64 | output->AddAllCellMetadata(); |
| 65 | // Run the query on the request. |
| 66 | if (!output->Query(this->Request)) |
| 67 | { |
| 68 | vtkErrorMacro("Failed to respond to query."); |
| 69 | return 0; |
| 70 | } |
| 71 | output->RemoveUnusedCellMetadata(); |
| 72 | |
| 73 | return 1; |
| 74 | } |
| 75 | |
| 76 | VTK_ABI_NAMESPACE_END |
nothing calls this directly
no test coverage detected