------------------------------------------------------------------------------ Get the number of components in the field. This is determined by adding up the components in each non-nullptr array.
| 1019 | // Get the number of components in the field. This is determined by adding |
| 1020 | // up the components in each non-nullptr array. |
| 1021 | int vtkFieldData::GetNumberOfComponents() |
| 1022 | { |
| 1023 | int numComp = 0; |
| 1024 | |
| 1025 | for (int i = 0; i < this->GetNumberOfArrays(); ++i) |
| 1026 | { |
| 1027 | if (this->Data[i]) |
| 1028 | { |
| 1029 | numComp += this->Data[i]->GetNumberOfComponents(); |
| 1030 | } |
| 1031 | } |
| 1032 | |
| 1033 | return numComp; |
| 1034 | } |
| 1035 | |
| 1036 | //------------------------------------------------------------------------------ |
| 1037 | // Get the number of tuples in the field. |