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

Method SetupOutputData

IO/XML/vtkXMLUnstructuredGridReader.cxx:116–129  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

114
115//------------------------------------------------------------------------------
116void vtkXMLUnstructuredGridReader::SetupOutputData()
117{
118 this->Superclass::SetupOutputData();
119
120 vtkUnstructuredGrid* output = vtkUnstructuredGrid::SafeDownCast(this->GetCurrentOutput());
121
122 // Setup the output's cell arrays.
123 vtkNew<vtkUnsignedCharArray> cellTypes;
124 cellTypes->SetNumberOfTuples(this->GetNumberOfCells());
125 cellTypes->FillValue(VTK_EMPTY_CELL);
126 vtkNew<vtkCellArray> outCells;
127
128 output->SetCells(cellTypes, outCells);
129}
130
131//------------------------------------------------------------------------------
132int vtkXMLUnstructuredGridReader::ReadPiece(vtkXMLDataElement* ePiece)

Callers

nothing calls this directly

Calls 4

GetCurrentOutputMethod · 0.80
SetNumberOfTuplesMethod · 0.45
GetNumberOfCellsMethod · 0.45
SetCellsMethod · 0.45

Tested by

no test coverage detected