------------------------------------------------------------------------------
| 375 | |
| 376 | //------------------------------------------------------------------------------ |
| 377 | int vtkRandomAttributeGenerator::RequestData(vtkInformation* vtkNotUsed(request), |
| 378 | vtkInformationVector** inputVector, vtkInformationVector* outputVector) |
| 379 | { |
| 380 | vtkInformation* inInfo = inputVector[0]->GetInformationObject(0); |
| 381 | vtkInformation* outInfo = outputVector->GetInformationObject(0); |
| 382 | |
| 383 | // composite case |
| 384 | vtkCompositeDataSet* compositeInput = vtkCompositeDataSet::GetData(inInfo); |
| 385 | vtkCompositeDataSet* compositeOutput = vtkCompositeDataSet::GetData(outInfo); |
| 386 | if (compositeInput && compositeOutput) |
| 387 | { |
| 388 | return this->ProcessComposite(compositeInput, compositeOutput); |
| 389 | } |
| 390 | |
| 391 | // dataset case |
| 392 | vtkDataSet* inputDS = vtkDataSet::GetData(inInfo); |
| 393 | vtkDataSet* outputDS = vtkDataSet::GetData(outInfo); |
| 394 | if (inputDS && outputDS) |
| 395 | { |
| 396 | return this->ProcessDataSet(inputDS, outputDS); |
| 397 | } |
| 398 | |
| 399 | // htg case |
| 400 | vtkHyperTreeGrid* inputHTG = vtkHyperTreeGrid::GetData(inInfo); |
| 401 | vtkHyperTreeGrid* outputHTG = vtkHyperTreeGrid::GetData(outInfo); |
| 402 | if (inputHTG && outputHTG) |
| 403 | { |
| 404 | return this->ProcessHTG(inputHTG, outputHTG); |
| 405 | } |
| 406 | |
| 407 | vtkErrorMacro(<< "Unable to retrieve input / output as supported type.\n"); |
| 408 | return 0; |
| 409 | } |
| 410 | |
| 411 | //------------------------------------------------------------------------------ |
| 412 | void vtkRandomAttributeGenerator::GeneratePointData(vtkPointData* outputPD, vtkIdType numPts) |
nothing calls this directly
no test coverage detected