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

Method GetInputArrayFieldInformation

Common/ExecutionModel/vtkAlgorithm.cxx:347–366  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

345
346//------------------------------------------------------------------------------
347vtkInformation* 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//------------------------------------------------------------------------------
369int vtkAlgorithm::GetNumberOfInputArraySpecifications()

Callers 1

Calls 4

GetInformationObjectMethod · 0.80
GetMethod · 0.45
HasMethod · 0.45

Tested by

no test coverage detected