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

Method GetNumberOfComponents

Common/DataModel/vtkFieldData.cxx:1021–1034  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Get the number of components in the field. This is determined by adding up the components in each non-nullptr array.

Source from the content-addressed store, hash-verified

1019// Get the number of components in the field. This is determined by adding
1020// up the components in each non-nullptr array.
1021int 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.

Callers 15

PrintSelfMethod · 0.95
FilterSelectedPointsMethod · 0.45
PaintMethod · 0.45
UpdateCacheMethod · 0.45
operator()Method · 0.45
UpdateCacheMethod · 0.45
CanComputeMagnitudeMethod · 0.45
GetDataRangeMethod · 0.45
operator()Method · 0.45
UpdateCacheMethod · 0.45
PaintMethod · 0.45
PaintMethod · 0.45

Calls 1

GetNumberOfArraysMethod · 0.45

Tested by 6

Test_fft_cplxFunction · 0.36
Test_fft_directFunction · 0.36
DataSetsEqualFunction · 0.36
RequestDataMethod · 0.36
testReaderMethod · 0.36
TestFieldListFunction · 0.36