Go to the documentation of this file.
29 #ifndef vtkDataArraySelection_h
30 #define vtkDataArraySelection_h
32 #include "vtkCommonCoreModule.h"
35 class vtkDataArraySelectionInternals;
113 return this->GetArraySetting(this->GetArrayIndex(
name));
158 void SetArrays(
const char*
const* names,
int numArrays);
void CopySelections(vtkDataArraySelection *selections)
Copy the selections from the given vtkDataArraySelection instance.
void DisableAllArrays()
Disable all arrays that currently have an entry.
void EnableArray(const char *name)
Enable the array with the given name.
void SetArrays(const char *const *names, int numArrays)
Set the list of arrays that have entries.
int GetEnabledArrayIndex(const char *name)
Get the index of an array with the given name among those that are enabled.
vtkDataArraySelectionInternals * Internal
int GetArrayIndex(const char *name)
Get an index of 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.
abstract base class for most VTK objects
void Union(vtkDataArraySelection *other)
Update this to include values from other.
Store on/off settings for data arrays for a vtkSource.
void SetArraysWithDefault(const char *const *names, int numArrays, int defaultStatus)
int GetArraySetting(const char *name)
Get whether the array is enabled/disable using its name.
static vtkDataArraySelection * New()
a simple class to control print indentation
void RemoveArrayByIndex(int index)
Remove an array setting given its index.
int ArrayIsEnabled(const char *name)
Return whether the array with the given name is enabled.
int ArrayExists(const char *name)
Return whether the array with the given name exists.
void EnableAllArrays()
Enable all arrays that currently have an entry.
void SetArraySetting(const char *name, int status)
Set array setting given the name.
void RemoveAllArrays()
Remove all array entries.
void DisableArray(const char *name)
Disable the array with the given name.
int GetArraySetting(int index)
Get whether the array at the given index is enabled.
int GetNumberOfArraysEnabled()
Get the number of arrays that are enabled.
int GetNumberOfArrays()
Get the number of arrays that currently have an entry.
void RemoveArrayByName(const char *name)
Remove an array setting given its name.
~vtkDataArraySelection() override
int AddArray(const char *name, bool state=true)
Add to the list of arrays that have entries.
const char * GetArrayName(int index)
Get the name of the array entry at the given index.