VTK
vtkDataArraySelection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataArraySelection.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef vtkDataArraySelection_h
26 #define vtkDataArraySelection_h
27 
28 #include "vtkCommonCoreModule.h" // For export macro
29 #include "vtkObject.h"
30 
31 class vtkDataArraySelectionInternals;
32 
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38  static vtkDataArraySelection* New();
39 
42  void EnableArray(const char* name);
43 
46  void DisableArray(const char* name);
47 
50  int ArrayIsEnabled(const char* name);
51 
53  int ArrayExists(const char* name);
54 
56  void EnableAllArrays();
57 
59  void DisableAllArrays();
60 
62  int GetNumberOfArrays();
63 
65  int GetNumberOfArraysEnabled();
66 
68  const char* GetArrayName(int index);
69 
71  int GetArrayIndex(const char *name);
72 
75  int GetEnabledArrayIndex(const char* name);
76 
78 
79  int GetArraySetting(const char* name)
80  {
81  return this->GetArraySetting(this->GetArrayIndex(name));
82  }
83  int GetArraySetting(int index);
85 
87  void RemoveAllArrays();
88 
89  //BTX
94  int AddArray(const char* name);
95 
97  void RemoveArrayByIndex(int index);
98 
100  void RemoveArrayByName(const char* name);
101 
103 
111  void SetArrays(const char* const* names, int numArrays);
112  void SetArraysWithDefault(const char* const* names, int numArrays,
113  int defaultStatus);
114  //ETX
116 
118 
119  void CopySelections(vtkDataArraySelection* selections);
120 protected:
124 
125  // Internal implementation details.
126  vtkDataArraySelectionInternals* Internal;
127 
128 private:
129  vtkDataArraySelection(const vtkDataArraySelection&); // Not implemented.
130  void operator=(const vtkDataArraySelection&); // Not implemented.
131 };
132 
133 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
#define VTKCOMMONCORE_EXPORT
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
Store on/off settings for data arrays for a vtkSource.
int GetArraySetting(const char *name)
vtkDataArraySelectionInternals * Internal
static vtkObject * New()