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

Method AddArray

Common/Core/vtkDataArraySelection.cxx:257–270  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

255
256//------------------------------------------------------------------------------
257int vtkDataArraySelection::AddArray(const char* name, bool state)
258{
259 vtkDebugMacro("Adding array \"" << name << "\".");
260 // This function is called only by the filter owning the selection.
261 // It should not call Modified() because array settings are not
262 // changed.
263 if (this->ArrayExists(name))
264 {
265 return 0;
266 }
267 this->Internal->Arrays.emplace_back(name, state);
268 this->Modified();
269 return 1;
270}
271
272//------------------------------------------------------------------------------
273void vtkDataArraySelection::RemoveArrayByIndex(int index)

Callers 2

testMethodsMethod · 0.45

Calls 3

ArrayExistsMethod · 0.95
emplace_backMethod · 0.45
ModifiedMethod · 0.45

Tested by 1

testMethodsMethod · 0.36