------------------------------------------------------------------------------
| 1141 | |
| 1142 | //------------------------------------------------------------------------------ |
| 1143 | int vtkAlgorithm::OutputPortIndexInRange(int index, const char* action) |
| 1144 | { |
| 1145 | // Make sure the index of the output port is in range. |
| 1146 | if (index < 0 || index >= this->GetNumberOfOutputPorts()) |
| 1147 | { |
| 1148 | vtkErrorMacro("Attempt to " << (action ? action : "access") << " output port index " << index |
| 1149 | << " for an algorithm with " << this->GetNumberOfOutputPorts() |
| 1150 | << " output ports."); |
| 1151 | return 0; |
| 1152 | } |
| 1153 | return 1; |
| 1154 | } |
| 1155 | |
| 1156 | //------------------------------------------------------------------------------ |
| 1157 | void vtkAlgorithm::SetDefaultExecutivePrototype(vtkExecutive* proto) |
no test coverage detected