MCPcopy Create free account
hub / github.com/Kitware/VTK / SetProgressObserver

Method SetProgressObserver

Common/ExecutionModel/vtkAlgorithm.cxx:173–190  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

171
172//------------------------------------------------------------------------------
173void vtkAlgorithm::SetProgressObserver(vtkProgressObserver* po)
174{
175 // This intentionally does not modify the algorithm as it
176 // is usually done by executives during execution and we don't
177 // want the filter to change its mtime during execution.
178 if (po != this->ProgressObserver)
179 {
180 if (this->ProgressObserver)
181 {
182 this->ProgressObserver->UnRegister(this);
183 }
184 this->ProgressObserver = po;
185 if (po)
186 {
187 po->Register(this);
188 }
189 }
190}
191
192//------------------------------------------------------------------------------
193void vtkAlgorithm::SetProgressShiftScale(double shift, double scale)

Callers 1

ExecuteEachMethod · 0.80

Calls 2

UnRegisterMethod · 0.45
RegisterMethod · 0.45

Tested by

no test coverage detected