------------------------------------------------------------------------------
| 255 | |
| 256 | //------------------------------------------------------------------------------ |
| 257 | int 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 | //------------------------------------------------------------------------------ |
| 273 | void vtkDataArraySelection::RemoveArrayByIndex(int index) |