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
00034 public:
00035 static vtkKWHistogramSet* New();
00036 vtkTypeRevisionMacro(vtkKWHistogramSet,vtkObject);
00037 void PrintSelf(ostream& os, vtkIndent indent);
00038
00041 virtual int AddHistogram(vtkKWHistogram*, const char *name);
00042
00045 virtual vtkKWHistogram* AllocateAndAddHistogram(const char *name);
00046
00048 virtual int GetNumberOfHistograms();
00049
00051
00052 virtual vtkKWHistogram* GetHistogramWithName(const char *name);
00053 virtual const char* GetHistogramName(vtkKWHistogram *hist);
00054 virtual vtkKWHistogram* GetNthHistogram(int index);
00056
00058
00059 virtual int HasHistogramWithName(const char *name);
00060 virtual int HasHistogram(vtkKWHistogram *hist);
00062
00064
00065 virtual int RemoveHistogramWithName(const char *name);
00066 virtual int RemoveHistogram(vtkKWHistogram *hist);
00067 virtual void RemoveAllHistograms();
00069
00071
00079 static int ComputeHistogramName(
00080 const char *array_name, int comp, const char *tag, char *buffer);
00082
00084
00091 virtual int AddHistograms(vtkDataArray *array,
00092 const char *tag = NULL,
00093 int skip_components_mask = 0);
00095
00096
00097
00098 protected:
00099 vtkKWHistogramSet();
00100 ~vtkKWHistogramSet();
00101
00102
00103
00104 vtkKWHistogramSetInternals *Internals;
00105
00106
00107
00108
00109 private:
00110 vtkKWHistogramSet(const vtkKWHistogramSet&);
00111 void operator=(const vtkKWHistogramSet&);
00112 };
00113
00114 #endif
00115
00116