#include <vtkKWHistogramSet.h>
Public Member Functions | |
vtkTypeRevisionMacro (vtkKWHistogramSet, vtkObject) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | AddHistogram (vtkKWHistogram *, const char *name) |
virtual vtkKWHistogram * | AllocateAndAddHistogram (const char *name) |
virtual int | GetNumberOfHistograms () |
virtual vtkKWHistogram * | GetHistogramWithName (const char *name) |
virtual const char * | GetHistogramName (vtkKWHistogram *hist) |
virtual vtkKWHistogram * | GetNthHistogram (int index) |
virtual int | HasHistogramWithName (const char *name) |
virtual int | HasHistogram (vtkKWHistogram *hist) |
virtual int | RemoveHistogramWithName (const char *name) |
virtual int | RemoveHistogram (vtkKWHistogram *hist) |
virtual void | RemoveAllHistograms () |
virtual int | AddHistograms (vtkDataArray *array, const char *tag=NULL, int skip_components_mask=0) |
Static Public Member Functions | |
vtkKWHistogramSet * | New () |
int | ComputeHistogramName (const char *array_name, int comp, const char *tag, char *buffer) |
Protected Member Functions | |
vtkKWHistogramSet () | |
~vtkKWHistogramSet () | |
Protected Attributes | |
vtkKWHistogramSetInternals * | Internals |
A set of histograms.
Definition at line 31 of file vtkKWHistogramSet.h.
|
|
|
|
|
|
|
|
|
|
|
Add an histogram to the pool under a given name. Return 1 on success, 0 otherwise. |
|
Allocate an histogram and add it in the pool under a given name. Return a pointer to the new histogram on success, NULL otherwise. |
|
Get the number of histogram in the pool |
|
Retrieve an histogram (or its name) from the pool. |
|
Retrieve an histogram (or its name) from the pool. |
|
Retrieve an histogram (or its name) from the pool. |
|
Query if the pool has a given histogram |
|
Query if the pool has a given histogram |
|
Remove one or all histograms. Return 1 on success, 0 otherwise. |
|
Remove one or all histograms. Return 1 on success, 0 otherwise. |
|
Remove one or all histograms. Return 1 on success, 0 otherwise. |
|
The histogram set class is designed to share histogram between several classes in an application. As such, since histogram are retrieved by names, it makes sense to follow some naming guidelines. This method provides such a guideline by computing an histogram name given the name of the array this histogram will be built upon, the component that will be used in that array, and an optional tag. The histogram name is stored in 'buffer', which should be large enough. Return 1 on success, 0 otherwise. |
|
Allocate, add and build histograms for all components of a scalar array. Each histogram name is built by calling ComputeHistogramName with the scalar array, component index and 'tag' arguments. The 'skip_components_mask' is a binary mask specifying which component should be skipped (i.e., if the n-th bit in that mask is set, then the histogram for that n-th component will not be considered) Return 1 on success, 0 otherwise. |
|
Definition at line 101 of file vtkKWHistogramSet.h. |