------------------------------------------------------------------------------
| 1085 | |
| 1086 | //------------------------------------------------------------------------------ |
| 1087 | vtkInformation* 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 | //------------------------------------------------------------------------------ |
| 1115 | int vtkAlgorithm::FillInputPortInformation(int, vtkInformation*) |
no test coverage detected