| 282 | |
| 283 | |
| 284 | Standard_Boolean MyProgressIndicator::Show(const Standard_Boolean force) |
| 285 | { |
| 286 | |
| 287 | double value = this->GetPosition(); |
| 288 | double delta = (value - this->m_data->m_lastValue); |
| 289 | |
| 290 | if (delta > 0.01) { |
| 291 | this->m_data->m_percent = value; |
| 292 | this->m_data->m_progress = int(delta * 1000);// this->GetPosition(); |
| 293 | this->m_data->m_lastValue = value; |
| 294 | this->_worker->send_notify_progress(); |
| 295 | |
| 296 | } |
| 297 | return Standard_False; |
| 298 | } |
| 299 | |
| 300 | |
| 301 |
no test coverage detected