26#ifndef vtkDataArraySelection_h
27#define vtkDataArraySelection_h
29#include "vtkCommonCoreModule.h"
32class vtkDataArraySelectionInternals;
106 return this->GetArraySetting(this->GetArrayIndex(
name));
146 void SetArrays(
const char*
const* names,
int numArrays);
161 vtkDataArraySelectionInternals* Internal;
Store on/off settings for data arrays for a vtkSource.
void DisableArray(const char *name)
Disable the array with the given name.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetArrayIndex(const char *name)
Get an index of the array with the given name.
int GetNumberOfArraysEnabled()
Get the number of arrays that are enabled.
void CopySelections(vtkDataArraySelection *selections)
Copy the selections from the given vtkDataArraySelection instance.
static vtkDataArraySelection * New()
void EnableAllArrays()
Enable all arrays that currently have an entry.
void EnableArray(const char *name)
Enable the array with the given name.
void RemoveArrayByIndex(int index)
Remove an array setting given its index.
void SetArraysWithDefault(const char *const *names, int numArrays, int defaultStatus)
~vtkDataArraySelection() override
void RemoveArrayByName(const char *name)
Remove an array setting given its name.
int GetEnabledArrayIndex(const char *name)
Get the index of an array with the given name among those that are enabled.
const char * GetArrayName(int index)
Get the name of the array entry at the given index.
int ArrayExists(const char *name)
Return whether the array with the given name exists.
int AddArray(const char *name)
Add to the list of arrays that have entries.
void DisableAllArrays()
Disable all arrays that currently have an entry.
int GetNumberOfArrays()
Get the number of arrays that currently have an entry.
int GetArraySetting(int index)
int GetArraySetting(const char *name)
Get whether the array at the given index is enabled.
int ArrayIsEnabled(const char *name)
Return whether the array with the given name is enabled.
void SetArrays(const char *const *names, int numArrays)
Set the list of arrays that have entries.
void RemoveAllArrays()
Remove all array entries.
a simple class to control print indentation
abstract base class for most VTK objects