------------------------------------------------------------------------------ Check to see if an input's ABORTED flag is set or if an upstream algorithm's AbortExecute is set. If either is set, return true. This is used by upstream algorithms to check for abort without setting any variables.
| 275 | // This is used by upstream algorithms to check for abort without |
| 276 | // setting any variables. |
| 277 | bool vtkAlgorithm::CheckUpstreamAbort() |
| 278 | { |
| 279 | if (this->GetAbortExecute()) |
| 280 | { |
| 281 | this->LastAbortCheckTime.Modified(); |
| 282 | return true; |
| 283 | } |
| 284 | |
| 285 | if (this->LastAbortTime.GetMTime() > this->LastAbortCheckTime.GetMTime()) |
| 286 | { |
| 287 | this->LastAbortCheckTime.Modified(); |
| 288 | for (int port = 0; port < this->GetNumberOfInputPorts(); port++) |
| 289 | { |
| 290 | for (int index = 0; index < this->GetNumberOfInputConnections(port); index++) |
| 291 | { |
| 292 | if (this->GetInputAlgorithm(port, index)->CheckUpstreamAbort()) |
| 293 | { |
| 294 | return true; |
| 295 | } |
| 296 | } |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | return this->GetAbortOutput(); |
| 301 | } |
| 302 | |
| 303 | //------------------------------------------------------------------------------ |
| 304 | void vtkAlgorithm::SetNoPriorTemporalAccessInformationKey() |
no test coverage detected