------------------------------------------------------------------------------
| 77 | |
| 78 | //------------------------------------------------------------------------------ |
| 79 | void 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 | //------------------------------------------------------------------------------ |
| 97 | void vtkXMLPUnstructuredGridReader::SetupNextPiece() |
nothing calls this directly
no test coverage detected