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

Method GetTable

Common/DataModel/vtkStatisticalModel.cxx:254–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254vtkTable* vtkStatisticalModel::GetTable(int type, int index)
255{
256 if (type < TableType::Learned || type > TableType::Test)
257 {
258 return nullptr;
259 }
260 auto it = this->ModelTables.find(type);
261 if (it == this->ModelTables.end())
262 {
263 return nullptr;
264 }
265 if (index < 0 || index >= static_cast<int>(it->second.size()))
266 {
267 return nullptr;
268 }
269 return it->second[index].GetPointer();
270}
271
272std::string vtkStatisticalModel::GetTableName(int type, int index)
273{

Callers 9

GetTableNameMethod · 0.95
SetTableNameMethod · 0.95
ComputeTextureMethod · 0.45
ComputeTextureMethod · 0.45
BuildSpecialColorsMethod · 0.45
vtkLookupTableMapDataFunction · 0.45
TestGetTableFunction · 0.45
TestFunction · 0.45

Calls 4

findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
GetPointerMethod · 0.45

Tested by 3

TestGetTableFunction · 0.36
TestFunction · 0.36