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

Common/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 =========================================================================*/
00040 #ifndef __vtkDataArraySelection_h
00041 #define __vtkDataArraySelection_h
00042 
00043 #include "vtkObject.h"
00044 
00045 class vtkDataArraySelectionArrayNamesType;
00046 class vtkDataArraySelectionArraySettingsType;
00047 
00048 class VTK_COMMON_EXPORT vtkDataArraySelection : public vtkObject
00049 {
00050 public:
00051   vtkTypeRevisionMacro(vtkDataArraySelection,vtkObject);
00052   void PrintSelf(ostream& os, vtkIndent indent);
00053   static vtkDataArraySelection* New();
00054   
00057   void EnableArray(const char* name);
00058   
00061   void DisableArray(const char* name);
00062   
00065   int ArrayIsEnabled(const char* name);
00066   
00068   int ArrayExists(const char* name);
00069 
00071   void EnableAllArrays();
00072   
00074   void DisableAllArrays();
00075   
00077   int GetNumberOfArrays();
00078   
00080   const char* GetArrayName(int index);
00081   
00083   int GetArraySetting(int index);
00084   
00086   void RemoveAllArrays();
00087   
00088   //BTX
00093   int AddArray(const char* name);
00094 
00096 
00101   void SetArrays(const char* const* names, int numArrays);
00102   //ETX
00104   
00106   void CopySelections(vtkDataArraySelection* selections);
00107 protected:
00108   vtkDataArraySelection();
00109   ~vtkDataArraySelection();
00110   
00111   // The list of array names.
00112   vtkDataArraySelectionArrayNamesType* ArrayNames;
00113   
00114   // The list of array settings.
00115   vtkDataArraySelectionArraySettingsType* ArraySettings;
00116   
00117 private:
00118   vtkDataArraySelection(const vtkDataArraySelection&);  // Not implemented.
00119   void operator=(const vtkDataArraySelection&);  // Not implemented.
00120 };
00121 
00122 #endif