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

Method ArrayIsEnabled

Common/Core/vtkDataArraySelection.cxx:114–124  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

112
113//------------------------------------------------------------------------------
114int vtkDataArraySelection::ArrayIsEnabled(const char* name) const
115{
116 auto iter = this->Internal->Find(name);
117 if (iter != this->Internal->Arrays.end())
118 {
119 return iter->second ? 1 : 0;
120 }
121
122 // The array does not have an entry. Return `UnknownArraySetting`.
123 return this->UnknownArraySetting;
124}
125
126//------------------------------------------------------------------------------
127int vtkDataArraySelection::ArrayExists(const char* name) const

Callers 4

PrintSelfMethod · 0.95
CopySelectionsMethod · 0.95
GetArraySettingFunction · 0.45

Calls 2

FindMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected