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

Method FieldArrayExists

Common/ExecutionModel/vtkDemandDrivenPipeline.cxx:895–907  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

893
894//------------------------------------------------------------------------------
895int vtkDemandDrivenPipeline::FieldArrayExists(vtkFieldData* data, vtkInformation* field)
896{
897 // Search the field data instance for an array matching the requirements.
898 for (int a = 0; a < data->GetNumberOfArrays(); ++a)
899 {
900 if (this->ArrayIsValid(data->GetArray(a), field))
901 {
902 return 1;
903 }
904 }
905
906 return 0;
907}
908
909//------------------------------------------------------------------------------
910int vtkDemandDrivenPipeline::ArrayIsValid(vtkAbstractArray* array, vtkInformation* field)

Callers 2

InputFieldsAreValidMethod · 0.95

Calls 3

ArrayIsValidMethod · 0.95
GetNumberOfArraysMethod · 0.45
GetArrayMethod · 0.45

Tested by

no test coverage detected