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

Method RequestData

Filters/General/vtkRandomAttributeGenerator.cxx:377–409  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

375
376//------------------------------------------------------------------------------
377int 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//------------------------------------------------------------------------------
412void vtkRandomAttributeGenerator::GeneratePointData(vtkPointData* outputPD, vtkIdType numPts)

Callers

nothing calls this directly

Calls 5

ProcessCompositeMethod · 0.95
ProcessDataSetMethod · 0.95
ProcessHTGMethod · 0.95
GetInformationObjectMethod · 0.80
GetDataFunction · 0.50

Tested by

no test coverage detected