------------------------------------------------------------------------------
| 345 | |
| 346 | //------------------------------------------------------------------------------ |
| 347 | vtkInformation* vtkAlgorithm ::GetInputArrayFieldInformation( |
| 348 | int idx, vtkInformationVector** inputVector) |
| 349 | { |
| 350 | // first get out association |
| 351 | vtkInformation* info = this->GetInputArrayInformation(idx); |
| 352 | |
| 353 | // then get the actual info object from the pinfo |
| 354 | int port = info->Get(INPUT_PORT()); |
| 355 | int connection = info->Get(INPUT_CONNECTION()); |
| 356 | int fieldAssoc = info->Get(vtkDataObject::FIELD_ASSOCIATION()); |
| 357 | vtkInformation* inInfo = inputVector[port]->GetInformationObject(connection); |
| 358 | |
| 359 | if (info->Has(vtkDataObject::FIELD_NAME())) |
| 360 | { |
| 361 | const char* name = info->Get(vtkDataObject::FIELD_NAME()); |
| 362 | return vtkDataObject::GetNamedFieldInformation(inInfo, fieldAssoc, name); |
| 363 | } |
| 364 | int fType = info->Get(vtkDataObject::FIELD_ATTRIBUTE_TYPE()); |
| 365 | return vtkDataObject::GetActiveFieldInformation(inInfo, fieldAssoc, fType); |
| 366 | } |
| 367 | |
| 368 | //------------------------------------------------------------------------------ |
| 369 | int vtkAlgorithm::GetNumberOfInputArraySpecifications() |
no test coverage detected