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

Method ProcessHTG

Filters/General/vtkRandomAttributeGenerator.cxx:354–374  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

352
353//------------------------------------------------------------------------------
354int vtkRandomAttributeGenerator::ProcessHTG(vtkHyperTreeGrid* input, vtkHyperTreeGrid* output)
355{
356 vtkIdType numCells = input->GetNumberOfCells();
357
358 output->CopyStructure(input);
359
360 // No point data in HTGs
361 output->GetCellData()->PassData(input->GetCellData());
362 output->GetFieldData()->PassData(input->GetFieldData());
363
364 if (numCells >= 1)
365 {
366 vtkCellData* outputCD = output->GetCellData();
367 this->GenerateCellData(outputCD, numCells);
368 }
369
370 vtkFieldData* outputFD = output->GetFieldData();
371 this->GenerateFieldData(outputFD);
372
373 return 1;
374}
375
376//------------------------------------------------------------------------------
377int vtkRandomAttributeGenerator::RequestData(vtkInformation* vtkNotUsed(request),

Callers 2

ProcessCompositeMethod · 0.95
RequestDataMethod · 0.95

Calls 7

GenerateCellDataMethod · 0.95
GenerateFieldDataMethod · 0.95
GetNumberOfCellsMethod · 0.45
CopyStructureMethod · 0.45
PassDataMethod · 0.45
GetCellDataMethod · 0.45
GetFieldDataMethod · 0.45

Tested by

no test coverage detected