27#ifndef vtkDataArraySelection_h
28#define vtkDataArraySelection_h
30#include "vtkCommonCoreModule.h"
35VTK_ABI_NAMESPACE_BEGIN
182 void SetArrays(
const char*
const* names,
int numArrays);
213 vtkSetMacro(UnknownArraySetting,
int);
214 vtkGetMacro(UnknownArraySetting,
int);
238 std::unique_ptr<vtkInternals> Internal;
239 int UnknownArraySetting;
Store on/off settings for data arrays, etc.
void DisableArray(const char *name)
Disable the array with the given name.
void DeepCopy(const vtkDataArraySelection *other)
Copy contents of other.
bool IsEqual(const vtkDataArraySelection *other) const
Returns true if the two array selections are equivalent.
int GetEnabledArrayIndex(const char *name) const
Get the index of an array with the given name among those that are enabled.
void SetArraySetting(const char *name, int setting)
Set array setting given the name.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetArrayName(int index) const
Get the name of the array entry at the given index.
int GetNumberOfArrays() const
Get the number of arrays that currently have an entry.
void CopySelections(vtkDataArraySelection *selections)
Copy the selections from the given vtkDataArraySelection instance.
static vtkDataArraySelection * New()
int GetNumberOfArraysEnabled() const
Get the number of arrays that are enabled.
void EnableAllArrays()
Enable all arrays that currently have an entry.
void EnableArray(const char *name)
Enable the array with the given name.
int AddArray(const char *name, bool state=true)
Add to the list of arrays that have entries.
int GetArraySetting(int index) const
Get whether the array at the given index is enabled.
void RemoveArrayByIndex(int index)
Remove an array setting given its index.
void SetArraysWithDefault(const char *const *names, int numArrays, int defaultStatus)
Set the list of arrays that have entries.
int ArrayIsEnabled(const char *name) const
Return whether the array with the given name is enabled.
~vtkDataArraySelection() override
void RemoveArrayByName(const char *name)
Remove an array setting given its name.
int ArrayExists(const char *name) const
Return whether the array with the given name exists.
int GetArrayIndex(const char *name) const
Get an index of the array with the given name.
void Union(vtkDataArraySelection *other, bool skipModified)
Update this to include values from other.
void DisableAllArrays()
Disable all arrays that currently have an entry.
void SetArrays(const char *const *names, int numArrays)
Set the list of arrays that have entries.
void Union(vtkDataArraySelection *other)
Update this to include values from other.
void RemoveAllArrays()
Remove all array entries.
int GetArraySetting(const char *name) const
Get whether the array is enabled/disable using its name.
a simple class to control print indentation
abstract base class for most VTK objects