------------------------------------------------------------------------------
| 1057 | |
| 1058 | //------------------------------------------------------------------------------ |
| 1059 | vtkInformation* 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 | //------------------------------------------------------------------------------ |
| 1087 | vtkInformation* vtkAlgorithm::GetOutputPortInformation(int port) |
no test coverage detected