00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00020 #ifndef __vtkKWHistogramSet_h
00021 #define __vtkKWHistogramSet_h
00022
00023 #include "vtkObject.h"
00024 #include "vtkKWWidgets.h"
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
00100
00101 vtkKWHistogramSetInternals *Internals;
00102
00103
00104 private:
00105 vtkKWHistogramSet(const vtkKWHistogramSet&);
00106 void operator=(const vtkKWHistogramSet&);
00107 };
00108
00109 #endif
00110