------------------------------------------------------------------------------
| 242 | |
| 243 | //------------------------------------------------------------------------------ |
| 244 | void vtkXMLTableReader::SetupOutputInformation(vtkInformation* outInfo) |
| 245 | { |
| 246 | this->Superclass::SetupOutputInformation(outInfo); |
| 247 | |
| 248 | if (this->InformationError) |
| 249 | { |
| 250 | vtkErrorMacro("Should not still be processing output information if have set InformationError"); |
| 251 | return; |
| 252 | } |
| 253 | |
| 254 | // Initialize DataArraySelections to enable all that are present |
| 255 | this->SetDataArraySelections(this->RowDataElements[0], this->ColumnArraySelection); |
| 256 | |
| 257 | // Setup the Field Information for RowData. We only need the |
| 258 | // information from one piece because all pieces have the same set of arrays. |
| 259 | vtkInformationVector* infoVector = nullptr; |
| 260 | if (!this->SetFieldDataInfo(this->RowDataElements[0], vtkDataObject::FIELD_ASSOCIATION_ROWS, |
| 261 | this->GetNumberOfRows(), infoVector)) |
| 262 | { |
| 263 | return; |
| 264 | } |
| 265 | if (infoVector) |
| 266 | { |
| 267 | infoVector->Delete(); |
| 268 | } |
| 269 | |
| 270 | if (this->NumberOfPieces > 1) |
| 271 | { |
| 272 | outInfo->Set(CAN_HANDLE_PIECE_REQUEST(), 1); |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | //------------------------------------------------------------------------------ |
| 277 | int vtkXMLTableReader::ReadPrimaryElement(vtkXMLDataElement* ePrimary) |
nothing calls this directly
no test coverage detected