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

Method SetupOutputInformation

IO/XML/vtkXMLTableReader.cxx:244–274  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

242
243//------------------------------------------------------------------------------
244void 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//------------------------------------------------------------------------------
277int vtkXMLTableReader::ReadPrimaryElement(vtkXMLDataElement* ePrimary)

Callers

nothing calls this directly

Calls 5

GetNumberOfRowsMethod · 0.95
SetFieldDataInfoMethod · 0.80
DeleteMethod · 0.65
SetMethod · 0.45

Tested by

no test coverage detected