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

Method SetArraySetting

Common/Core/vtkDataArraySelection.cxx:92–111  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

90
91//------------------------------------------------------------------------------
92void vtkDataArraySelection::SetArraySetting(const char* name, int setting)
93{
94 vtkDebugMacro("Setting array \"" << name << " = " << setting << "\".");
95 const bool status = (setting > 0);
96 auto& internal = *this->Internal;
97 auto iter = internal.Find(name);
98 if (iter != internal.Arrays.end())
99 {
100 if (iter->second != status)
101 {
102 iter->second = status;
103 this->Modified();
104 }
105 }
106 else if (name)
107 {
108 internal.Arrays.emplace_back(name, status);
109 this->Modified();
110 }
111}
112
113//------------------------------------------------------------------------------
114int vtkDataArraySelection::ArrayIsEnabled(const char* name) const

Callers 15

EnableArrayMethod · 0.95
DisableArrayMethod · 0.95
WriteDataSetMethod · 0.80
SetPointArrayStatusMethod · 0.80
SetCellArrayStatusMethod · 0.80
BroadcastMethod · 0.80
AllGatherMethod · 0.80
SetVariablesStatusMethod · 0.80
SetBlocksStatusMethod · 0.80
SetBaseArrayStatusMethod · 0.80
SetFamilyArrayStatusMethod · 0.80

Calls 4

FindMethod · 0.45
endMethod · 0.45
ModifiedMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected