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   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00029 #ifndef __vtkDataArraySelection_h
00030 #define __vtkDataArraySelection_h
00031 
00032 #include "vtkObject.h"
00033 
00034 class vtkDataArraySelectionArrayNamesType;
00035 class vtkDataArraySelectionArraySettingsType;
00036 
00037 class VTK_COMMON_EXPORT vtkDataArraySelection : public vtkObject
00038 {
00039 public:
00040   vtkTypeRevisionMacro(vtkDataArraySelection,vtkObject);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042   static vtkDataArraySelection* New();
00043   
00046   void EnableArray(const char* name);
00047   
00050   void DisableArray(const char* name);
00051   
00054   int ArrayIsEnabled(const char* name);
00055   
00057   int ArrayExists(const char* name);
00058 
00060   void EnableAllArrays();
00061   
00063   void DisableAllArrays();
00064   
00066   int GetNumberOfArrays();
00067   
00069   const char* GetArrayName(int index);
00070   
00072   int GetArraySetting(int index);
00073   
00075   void RemoveAllArrays();
00076   
00077   //BTX
00082   int AddArray(const char* name);
00083 
00085 
00090   void SetArrays(const char* const* names, int numArrays);
00091   //ETX
00093   
00095   void CopySelections(vtkDataArraySelection* selections);
00096 protected:
00097   vtkDataArraySelection();
00098   ~vtkDataArraySelection();
00099   
00100   // The list of array names.
00101   vtkDataArraySelectionArrayNamesType* ArrayNames;
00102   
00103   // The list of array settings.
00104   vtkDataArraySelectionArraySettingsType* ArraySettings;
00105   
00106 private:
00107   vtkDataArraySelection(const vtkDataArraySelection&);  // Not implemented.
00108   void operator=(const vtkDataArraySelection&);  // Not implemented.
00109 };
00110 
00111 #endif