MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / next

Method next

src/Base/Sequencer.cpp:119–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117{}
118
119bool SequencerBase::next(bool canAbort)
120{
121 this->nProgress++;
122 float fDiv = this->nTotalSteps > 0 ? static_cast<float>(this->nTotalSteps) : 1000.0F;
123 int perc = int((float(this->nProgress) * (100.0F / fDiv)));
124
125 // do only an update if we have increased by one percent
126 if (perc > this->_nLastPercentage) {
127 this->_nLastPercentage = perc;
128
129 // if not locked
130 if (!this->_bLocked) {
131 nextStep(canAbort);
132 }
133 }
134
135 return this->nProgress < this->nTotalSteps;
136}
137
138void SequencerBase::nextStep(bool /*next*/)
139{}

Callers 2

makeUniqueNameMethod · 0.45
readFilesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected