------------------------------------------------------------------------------
| 3056 | |
| 3057 | //------------------------------------------------------------------------------ |
| 3058 | void vtkXMLWriter::UpdateProgressDiscrete(float progress) |
| 3059 | { |
| 3060 | if (!this->AbortExecute) |
| 3061 | { |
| 3062 | // Round progress to nearest 100th. |
| 3063 | float rounded = std::round(progress * 100) / 100.f; |
| 3064 | if (this->GetProgress() != rounded) |
| 3065 | { |
| 3066 | this->UpdateProgress(rounded); |
| 3067 | } |
| 3068 | } |
| 3069 | } |
| 3070 | |
| 3071 | //------------------------------------------------------------------------------ |
| 3072 | void vtkXMLWriter::WritePrimaryElementAttributes(ostream& os, vtkIndent indent) |
no test coverage detected