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

Method ProcessDataSet

Filters/General/vtkRandomAttributeGenerator.cxx:327–351  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

325
326//------------------------------------------------------------------------------
327int vtkRandomAttributeGenerator::ProcessDataSet(vtkDataSet* input, vtkDataSet* output)
328{
329 vtkIdType numPts = input->GetNumberOfPoints();
330 vtkIdType numCells = input->GetNumberOfCells();
331
332 output->CopyStructure(input);
333 output->CopyAttributes(input);
334
335 if (numPts >= 1)
336 {
337 vtkPointData* outputPD = output->GetPointData();
338 this->GeneratePointData(outputPD, numPts);
339 }
340
341 if (numCells >= 1)
342 {
343 vtkCellData* outputCD = output->GetCellData();
344 this->GenerateCellData(outputCD, numCells);
345 }
346
347 vtkFieldData* outputFD = output->GetFieldData();
348 this->GenerateFieldData(outputFD);
349
350 return 1;
351}
352
353//------------------------------------------------------------------------------
354int vtkRandomAttributeGenerator::ProcessHTG(vtkHyperTreeGrid* input, vtkHyperTreeGrid* output)

Callers 2

ProcessCompositeMethod · 0.95
RequestDataMethod · 0.95

Calls 10

GeneratePointDataMethod · 0.95
GenerateCellDataMethod · 0.95
GenerateFieldDataMethod · 0.95
CopyAttributesMethod · 0.80
GetNumberOfPointsMethod · 0.45
GetNumberOfCellsMethod · 0.45
CopyStructureMethod · 0.45
GetPointDataMethod · 0.45
GetCellDataMethod · 0.45
GetFieldDataMethod · 0.45

Tested by

no test coverage detected