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

GUI/Widgets/vtkKWHistogramSet.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWHistogramSet.h,v $
00004 
00005   Copyright (c) Kitware, Inc.
00006   All rights reserved.
00007   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00008 
00009      This software is distributed WITHOUT ANY WARRANTY; without even
00010      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00011      PURPOSE.  See the above copyright notice for more information.
00012 
00013 =========================================================================*/
00020 #ifndef __vtkKWHistogramSet_h
00021 #define __vtkKWHistogramSet_h
00022 
00023 #include "vtkObject.h"
00024 #include "vtkKWWidgets.h" // Needed for export symbols directives
00025 
00026 class vtkDataArray;
00027 class vtkKWHistogram;
00028 class vtkKWHistogramCallback;
00029 class vtkKWHistogramSetInternals;
00030 
00031 class KWWIDGETS_EXPORT vtkKWHistogramSet : public vtkObject
00032 {
00033 public:
00034   static vtkKWHistogramSet* New();
00035   vtkTypeRevisionMacro(vtkKWHistogramSet,vtkObject);
00036   void PrintSelf(ostream& os, vtkIndent indent);
00037 
00040   virtual int AddHistogram(vtkKWHistogram*, const char *name);
00041 
00044   virtual vtkKWHistogram* AllocateAndAddHistogram(const char *name);
00045 
00047   virtual int GetNumberOfHistograms();
00048 
00050 
00051   virtual vtkKWHistogram* GetHistogramWithName(const char *name);
00052   virtual const char* GetHistogramName(vtkKWHistogram *hist);
00053   virtual vtkKWHistogram* GetNthHistogram(int index);
00055 
00057 
00058   virtual int HasHistogramWithName(const char *name);
00059   virtual int HasHistogram(vtkKWHistogram *hist);
00061 
00063 
00064   virtual int RemoveHistogramWithName(const char *name);
00065   virtual int RemoveHistogram(vtkKWHistogram *hist);
00066   virtual void RemoveAllHistograms();
00068 
00070 
00078   static int ComputeHistogramName(
00079     const char *array_name, int comp, const char *tag, char *buffer);
00081 
00083 
00090   virtual int AddHistograms(vtkDataArray *array, 
00091                             const char *tag = NULL, 
00092                             int skip_components_mask = 0);
00094 
00095 protected:
00096   vtkKWHistogramSet();
00097   ~vtkKWHistogramSet();
00098 
00099   //BTX
00100   // PIMPL Encapsulation for STL containers
00101   vtkKWHistogramSetInternals *Internals;
00102   //ETX
00103 
00104 private:
00105   vtkKWHistogramSet(const vtkKWHistogramSet&); // Not implemented
00106   void operator=(const vtkKWHistogramSet&); // Not implemented
00107 };
00108 
00109 #endif
00110 

Generated on Tue May 30 12:31:43 2006 for ParaView by doxygen 1.3.5