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

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 vtkDataArraySelectionInternals;
00031 
00032 class VTK_COMMON_EXPORT vtkDataArraySelection : public vtkObject
00033 {
00034 public:
00035   vtkTypeRevisionMacro(vtkDataArraySelection,vtkObject);
00036   void PrintSelf(ostream& os, vtkIndent indent);
00037   static vtkDataArraySelection* New();
00038 
00041   void EnableArray(const char* name);
00042 
00045   void DisableArray(const char* name);
00046 
00049   int ArrayIsEnabled(const char* name);
00050 
00052   int ArrayExists(const char* name);
00053 
00055   void EnableAllArrays();
00056 
00058   void DisableAllArrays();
00059 
00061   int GetNumberOfArrays();
00062 
00064   int GetNumberOfArraysEnabled();
00065 
00067   const char* GetArrayName(int index);
00068 
00070   int GetArrayIndex(const char *name);
00071 
00074   int GetEnabledArrayIndex(const char* name);
00075 
00077   int GetArraySetting(int index);
00078 
00080   void RemoveAllArrays();
00081 
00082   //BTX
00087   int AddArray(const char* name);
00088 
00090   void RemoveArrayByIndex(int index);
00091 
00093   void RemoveArrayByName(const char* name);
00094 
00096 
00104   void SetArrays(const char* const* names, int numArrays);
00105   void SetArraysWithDefault(const char* const* names, int numArrays,
00106                             int defaultStatus);
00107   //ETX
00109 
00111   void CopySelections(vtkDataArraySelection* selections);
00112 protected:
00113   vtkDataArraySelection();
00114   ~vtkDataArraySelection();
00115 
00116   // Internal implementation details.
00117   vtkDataArraySelectionInternals* Internal;
00118 
00119 private:
00120   vtkDataArraySelection(const vtkDataArraySelection&);  // Not implemented.
00121   void operator=(const vtkDataArraySelection&);  // Not implemented.
00122 };
00123 
00124 #endif

Generated on Mon Jan 21 23:07:16 2008 for VTK by  doxygen 1.4.3-20050530