| 52 | } |
| 53 | |
| 54 | void 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 | |
| 81 | void vtkXMLStatisticalModelReader::SetupOutputInformation(vtkInformation* outInfo) |
| 82 | { |
nothing calls this directly
no test coverage detected