------------------------------------------------------------------------------
| 349 | |
| 350 | //------------------------------------------------------------------------------ |
| 351 | int vtkExecutive::OutputPortIndexInRange(int port, const char* action) |
| 352 | { |
| 353 | // Make sure the algorithm is set. |
| 354 | if (!this->Algorithm) |
| 355 | { |
| 356 | vtkErrorMacro("Attempt to " << (action ? action : "access") << " output port index " << port |
| 357 | << " with no algorithm set."); |
| 358 | return 0; |
| 359 | } |
| 360 | |
| 361 | // Make sure the index of the output port is in range. |
| 362 | if (port < 0 || port >= this->Algorithm->GetNumberOfOutputPorts()) |
| 363 | { |
| 364 | vtkErrorMacro("Attempt to " << (action ? action : "access") << " output port index " << port |
| 365 | << " for algorithm " << this->Algorithm->GetObjectDescription() |
| 366 | << ", which has " << this->Algorithm->GetNumberOfOutputPorts() |
| 367 | << " output ports."); |
| 368 | return 0; |
| 369 | } |
| 370 | return 1; |
| 371 | } |
| 372 | |
| 373 | //------------------------------------------------------------------------------ |
| 374 | // vtkAlgorithmOutput* vtkExecutive::GetProducerPort(vtkDataObject* d) |
no test coverage detected