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

Method SetupOutputData

IO/XML/vtkXMLPUnstructuredGridReader.cxx:79–94  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

77
78//------------------------------------------------------------------------------
79void vtkXMLPUnstructuredGridReader::SetupOutputData()
80{
81 this->Superclass::SetupOutputData();
82
83 vtkUnstructuredGrid* output = vtkUnstructuredGrid::SafeDownCast(this->GetCurrentOutput());
84
85 // Setup the output's cell arrays.
86 vtkUnsignedCharArray* cellTypes = vtkUnsignedCharArray::New();
87 cellTypes->SetNumberOfTuples(this->GetNumberOfCells());
88 vtkCellArray* outCells = vtkCellArray::New();
89
90 output->SetCells(cellTypes, outCells);
91
92 outCells->Delete();
93 cellTypes->Delete();
94}
95
96//------------------------------------------------------------------------------
97void vtkXMLPUnstructuredGridReader::SetupNextPiece()

Callers

nothing calls this directly

Calls 6

GetCurrentOutputMethod · 0.80
DeleteMethod · 0.65
NewFunction · 0.50
SetNumberOfTuplesMethod · 0.45
GetNumberOfCellsMethod · 0.45
SetCellsMethod · 0.45

Tested by

no test coverage detected