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

Method GetInputPortInformation

Common/ExecutionModel/vtkAlgorithm.cxx:1059–1084  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1057
1058//------------------------------------------------------------------------------
1059vtkInformation* vtkAlgorithm::GetInputPortInformation(int port)
1060{
1061 if (!this->InputPortIndexInRange(port, "get information object for"))
1062 {
1063 return nullptr;
1064 }
1065
1066 // Get the input port information object.
1067 vtkInformation* info = this->InputPortInformation->GetInformationObject(port);
1068
1069 // Fill it if it has not yet been filled.
1070 if (!info->Has(PORT_REQUIREMENTS_FILLED()))
1071 {
1072 if (this->FillInputPortInformation(port, info))
1073 {
1074 info->Set(PORT_REQUIREMENTS_FILLED(), 1);
1075 }
1076 else
1077 {
1078 info->Clear();
1079 }
1080 }
1081
1082 // Return the information object.
1083 return info;
1084}
1085
1086//------------------------------------------------------------------------------
1087vtkInformation* vtkAlgorithm::GetOutputPortInformation(int port)

Callers 7

InputTypeIsValidMethod · 0.45
InputFieldsAreValidMethod · 0.45
InputIsOptionalMethod · 0.45
InputIsRepeatableMethod · 0.45

Calls 6

InputPortIndexInRangeMethod · 0.95
GetInformationObjectMethod · 0.80
HasMethod · 0.45
SetMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected