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

Method ReadXMLData

IO/XML/vtkXMLStatisticalModelReader.cxx:54–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void vtkXMLStatisticalModelReader::ReadXMLData()
55{
56 // Let superclasses read data. This also allocates output data.
57 this->Superclass::ReadXMLData();
58 this->ReadFieldData();
59
60 // Split current progress range based on fraction contributed by
61 // each piece.
62 float progressRange[2] = { 0, 0 };
63 this->GetProgressRange(progressRange);
64
65 // Calculate the cumulative fraction of data contributed by each
66 // piece (for progress).
67 std::vector<float> fractions(2);
68 fractions[0] = 0;
69 fractions[1] = 1;
70
71 // Set the range of progress for this piece.
72 this->SetProgressRange(progressRange, 0, fractions.data());
73
74 if (!this->ReadPieceData(/*currentIndex*/ 0))
75 {
76 // An error occurred while reading the piece.
77 this->DataError = 1;
78 }
79}
80
81void vtkXMLStatisticalModelReader::SetupOutputInformation(vtkInformation* outInfo)
82{

Callers

nothing calls this directly

Calls 5

ReadPieceDataMethod · 0.95
ReadFieldDataMethod · 0.45
GetProgressRangeMethod · 0.45
SetProgressRangeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected