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

Function modelCardinality

Filters/ParallelStatistics/vtkGenerateStatistics.cxx:83–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82#if VTK_DBG_ASSEMBLY
83int modelCardinality(vtkStatisticalModel* model)
84{
85 if (!model || model->GetNumberOfTables(0) <= 0)
86 {
87 return 0;
88 }
89 vtkTable* tab = model->GetTable(0, 0);
90 return tab->GetValueByName(0, "Cardinality").ToInt();
91}
92#endif // VTK_DBG_ASSEMBLY
93
94#if VTK_DBG_MODELDATA

Callers 1

VisitMethod · 0.85

Calls 4

GetValueByNameMethod · 0.80
GetNumberOfTablesMethod · 0.45
GetTableMethod · 0.45
ToIntMethod · 0.45

Tested by

no test coverage detected