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

Method GetOutputPortInformation

Common/ExecutionModel/vtkAlgorithm.cxx:1087–1112  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1085
1086//------------------------------------------------------------------------------
1087vtkInformation* vtkAlgorithm::GetOutputPortInformation(int port)
1088{
1089 if (!this->OutputPortIndexInRange(port, "get information object for"))
1090 {
1091 return nullptr;
1092 }
1093
1094 // Get the output port information object.
1095 vtkInformation* info = this->OutputPortInformation->GetInformationObject(port);
1096
1097 // Fill it if it has not yet been filled.
1098 if (!info->Has(PORT_REQUIREMENTS_FILLED()))
1099 {
1100 if (this->FillOutputPortInformation(port, info))
1101 {
1102 info->Set(PORT_REQUIREMENTS_FILLED(), 1);
1103 }
1104 else
1105 {
1106 info->Clear();
1107 }
1108 }
1109
1110 // Return the information object.
1111 return info;
1112}
1113
1114//------------------------------------------------------------------------------
1115int vtkAlgorithm::FillInputPortInformation(int, vtkInformation*)

Callers 8

GetInternalOutputPortMethod · 0.80
CheckDataObjectMethod · 0.80
CheckCompositeDataMethod · 0.80
RequestDataObjectMethod · 0.80
RequestDataObjectMethod · 0.80
RequestDataObjectMethod · 0.80

Calls 6

GetInformationObjectMethod · 0.80
HasMethod · 0.45
SetMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected