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 "vtkObject.h"
29 
30 class vtkDataArraySelectionInternals;
31 
33 {
34 public:
36  void PrintSelf(ostream& os, vtkIndent indent);
37  static vtkDataArraySelection* New();
38 
41  void EnableArray(const char* name);
42 
45  void DisableArray(const char* name);
46 
49  int ArrayIsEnabled(const char* name);
50 
52  int ArrayExists(const char* name);
53 
55  void EnableAllArrays();
56 
58  void DisableAllArrays();
59 
61  int GetNumberOfArrays();
62 
64  int GetNumberOfArraysEnabled();
65 
67  const char* GetArrayName(int index);
68 
70  int GetArrayIndex(const char *name);
71 
74  int GetEnabledArrayIndex(const char* name);
75 
77 
78  int GetArraySetting(const char* name)
79  {
80  return this->GetArraySetting(this->GetArrayIndex(name));
81  }
82  int GetArraySetting(int index);
84 
86  void RemoveAllArrays();
87 
88  //BTX
93  int AddArray(const char* name);
94 
96  void RemoveArrayByIndex(int index);
97 
99  void RemoveArrayByName(const char* name);
100 
102 
110  void SetArrays(const char* const* names, int numArrays);
111  void SetArraysWithDefault(const char* const* names, int numArrays,
112  int defaultStatus);
113  //ETX
115 
117 
118  void CopySelections(vtkDataArraySelection* selections);
119 protected:
123 
124  // Internal implementation details.
125  vtkDataArraySelectionInternals* Internal;
126 
127 private:
128  vtkDataArraySelection(const vtkDataArraySelection&); // Not implemented.
129  void operator=(const vtkDataArraySelection&); // Not implemented.
130 };
131 
132 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:60
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
Store on/off settings for data arrays for a vtkSource.
#define VTK_COMMON_EXPORT
int GetArraySetting(const char *name)
vtkDataArraySelectionInternals * Internal
static vtkObject * New()