------------------------------------------------------------------------------
| 142 | |
| 143 | //------------------------------------------------------------------------------ |
| 144 | void vtkXMLPUnstructuredDataReader::SetupOutputData() |
| 145 | { |
| 146 | this->Superclass::SetupOutputData(); |
| 147 | |
| 148 | // Create the points array. |
| 149 | vtkPoints* points = vtkPoints::New(); |
| 150 | if (this->PPointsElement) |
| 151 | { |
| 152 | vtkAbstractArray* aa = this->CreateArray(this->PPointsElement->GetNestedElement(0)); |
| 153 | vtkDataArray* a = vtkArrayDownCast<vtkDataArray>(aa); |
| 154 | if (a) |
| 155 | { |
| 156 | a->SetNumberOfTuples(this->GetNumberOfPoints()); |
| 157 | points->SetData(a); |
| 158 | a->Delete(); |
| 159 | } |
| 160 | else |
| 161 | { |
| 162 | if (aa) |
| 163 | { |
| 164 | aa->Delete(); |
| 165 | } |
| 166 | this->DataError = 1; |
| 167 | } |
| 168 | } |
| 169 | vtkPointSet::SafeDownCast(this->GetCurrentOutput())->SetPoints(points); |
| 170 | points->Delete(); |
| 171 | } |
| 172 | |
| 173 | //------------------------------------------------------------------------------ |
| 174 | void vtkXMLPUnstructuredDataReader::SetupUpdateExtent(int piece, int numberOfPieces, int ghostLevel) |
nothing calls this directly
no test coverage detected