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

Method InputPortIndexInRange

Common/ExecutionModel/vtkAlgorithm.cxx:1129–1140  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1127
1128//------------------------------------------------------------------------------
1129int vtkAlgorithm::InputPortIndexInRange(int index, const char* action)
1130{
1131 // Make sure the index of the input port is in range.
1132 if (index < 0 || index >= this->GetNumberOfInputPorts())
1133 {
1134 vtkErrorMacro("Attempt to " << (action ? action : "access") << " input port index " << index
1135 << " for an algorithm with " << this->GetNumberOfInputPorts()
1136 << " input ports.");
1137 return 0;
1138 }
1139 return 1;
1140}
1141
1142//------------------------------------------------------------------------------
1143int vtkAlgorithm::OutputPortIndexInRange(int index, const char* action)

Callers 6

SetInputConnectionMethod · 0.95
AddInputConnectionMethod · 0.95
RemoveInputConnectionMethod · 0.95
SetNthInputConnectionMethod · 0.95
SetInputDataObjectMethod · 0.95

Calls 1

GetNumberOfInputPortsMethod · 0.95

Tested by

no test coverage detected