MCPcopy Create free account
hub / github.com/OpenWebCAD/node-occ / Show

Method Show

src/Tools.cc:284–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282
283
284Standard_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

Callers 1

ExecuteMethod · 0.80

Calls 1

send_notify_progressMethod · 0.80

Tested by

no test coverage detected