Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Common/vtkDataArraySelection.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkDataArraySelection.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00025 #ifndef __vtkDataArraySelection_h 00026 #define __vtkDataArraySelection_h 00027 00028 #include "vtkObject.h" 00029 00030 class vtkDataArraySelectionArrayNamesType; 00031 class vtkDataArraySelectionArraySettingsType; 00032 00033 class VTK_COMMON_EXPORT vtkDataArraySelection : public vtkObject 00034 { 00035 public: 00036 vtkTypeRevisionMacro(vtkDataArraySelection,vtkObject); 00037 void PrintSelf(ostream& os, vtkIndent indent); 00038 static vtkDataArraySelection* New(); 00039 00042 void EnableArray(const char* name); 00043 00046 void DisableArray(const char* name); 00047 00050 int ArrayIsEnabled(const char* name); 00051 00053 int ArrayExists(const char* name); 00054 00056 void EnableAllArrays(); 00057 00059 void DisableAllArrays(); 00060 00062 int GetNumberOfArrays(); 00063 00065 const char* GetArrayName(int index); 00066 00068 int GetArraySetting(int index); 00069 00071 void RemoveAllArrays(); 00072 00073 //BTX 00078 int AddArray(const char* name); 00079 00081 00089 void SetArrays(const char* const* names, int numArrays); 00090 void SetArraysWithDefault(const char* const* names, int numArrays, 00091 int defaultStatus); 00092 //ETX 00094 00096 void CopySelections(vtkDataArraySelection* selections); 00097 protected: 00098 vtkDataArraySelection(); 00099 ~vtkDataArraySelection(); 00100 00101 // The list of array names. 00102 vtkDataArraySelectionArrayNamesType* ArrayNames; 00103 00104 // The list of array settings. 00105 vtkDataArraySelectionArraySettingsType* ArraySettings; 00106 00107 private: 00108 vtkDataArraySelection(const vtkDataArraySelection&); // Not implemented. 00109 void operator=(const vtkDataArraySelection&); // Not implemented. 00110 }; 00111 00112 #endif