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

vtkKWHistogram Class Reference

#include <vtkKWHistogram.h>

Collaboration diagram for vtkKWHistogram:

Collaboration graph
[legend]
List of all members.

[NOHEADER]

virtual int IsImageUpToDate (const ImageDescriptor *desc=0)
virtual vtkImageData * GetImage (ImageDescriptor *desc)
vtkKWHistogram::ImageDescriptorLastImageDescriptor

Public Member Functions

 vtkTypeRevisionMacro (vtkKWHistogram, vtkObject)
void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkIdType GetNumberOfBins ()
virtual double GetOccurenceAtValue (double value)
virtual void BuildHistogram (vtkDataArray *scalars, int component)
virtual void AccumulateHistogram (vtkDataArray *scalars, int component)
virtual void EmptyHistogram ()
virtual double * GetRange ()
virtual void GetRange (double &, double &)
virtual void GetRange (double[2])
virtual vtkDoubleArray * GetBins ()
virtual void SetMaximumNumberOfBins (vtkIdType)
virtual vtkIdType GetMaximumNumberOfBins ()
virtual double GetMinimumOccurence ()
virtual double GetMaximumOccurence ()
virtual double GetTotalOccurence ()
virtual double GetValueAtAccumulatedOccurence (double acc, double *exclude_value=0)
virtual void SetRange (double, double)
void SetRange (double[2])
virtual void EstimateHistogramRange (vtkDataArray *scalars, int component, double range[2])
virtual void SetLogMode (int)
virtual void LogModeOn ()
virtual void LogModeOff ()
virtual int GetLogMode ()

Static Public Member Functions

vtkKWHistogramNew ()

Protected Member Functions

 vtkKWHistogram ()
 ~vtkKWHistogram ()
virtual void ComputeStatistics ()
virtual void UpdateHistogram (vtkDataArray *scalars, int component, int reset_range)
virtual void EstimateHistogramRangeAndNumberOfBins (vtkDataArray *scalars, int component, double range[2], vtkIdType *nb_of_bins)

Protected Attributes

double Range [2]
vtkDoubleArray * Bins
vtkImageData * Image
unsigned long LastImageBuildTime
unsigned long LastTransferFunctionTime
int LogMode
vtkIdType MaximumNumberOfBins
unsigned long LastStatisticsBuildTime
double MinimumOccurence
double MaximumOccurence
double TotalOccurence

Constructor & Destructor Documentation

vtkKWHistogram::vtkKWHistogram  )  [protected]
 

vtkKWHistogram::~vtkKWHistogram  )  [protected]
 


Member Function Documentation

vtkKWHistogram* vtkKWHistogram::New  )  [static]
 

vtkKWHistogram::vtkTypeRevisionMacro vtkKWHistogram  ,
vtkObject 
 

void vtkKWHistogram::PrintSelf ostream &  os,
vtkIndent  indent
 

virtual double* vtkKWHistogram::GetRange  )  [virtual]
 

Get the histogram range. Note that Range[1] is exclusive. The Range is updated automatically by the BuildHistogram method to match the range of the vtkDataArray passed as parameter.

virtual void vtkKWHistogram::GetRange double &  ,
double & 
[virtual]
 

Get the histogram range. Note that Range[1] is exclusive. The Range is updated automatically by the BuildHistogram method to match the range of the vtkDataArray passed as parameter.

virtual void vtkKWHistogram::GetRange double  [2]  )  [virtual]
 

Get the histogram range. Note that Range[1] is exclusive. The Range is updated automatically by the BuildHistogram method to match the range of the vtkDataArray passed as parameter.

virtual vtkDoubleArray* vtkKWHistogram::GetBins  )  [virtual]
 

Direct access to the bins

virtual vtkIdType vtkKWHistogram::GetNumberOfBins  )  [virtual]
 

Convenience method to get the number of bins

virtual void vtkKWHistogram::SetMaximumNumberOfBins vtkIdType   )  [virtual]
 

Set/Get the maximum number of bins that should be used when creating the histogram

virtual vtkIdType vtkKWHistogram::GetMaximumNumberOfBins  )  [virtual]
 

Set/Get the maximum number of bins that should be used when creating the histogram

virtual double vtkKWHistogram::GetMinimumOccurence  )  [virtual]
 

Convenience method to get min, max, total occurence

virtual double vtkKWHistogram::GetMaximumOccurence  )  [virtual]
 

Convenience method to get min, max, total occurence

virtual double vtkKWHistogram::GetTotalOccurence  )  [virtual]
 

Convenience method to get min, max, total occurence

virtual double vtkKWHistogram::GetOccurenceAtValue double  value  )  [virtual]
 

Get the occurence for the bin holding a given value.

virtual double vtkKWHistogram::GetValueAtAccumulatedOccurence double  acc,
double *  exclude_value = 0
[virtual]
 

Get the value at a given accumulated occurence in the histogram. 'exclude_value' is not NULL, it is a pointer to a value which bin will be ignored from the computation.

virtual void vtkKWHistogram::BuildHistogram vtkDataArray *  scalars,
int  component
[virtual]
 

Build/update the histogram from scalars (given a component) The Range and number of bins are modified automatically

virtual void vtkKWHistogram::SetRange double  ,
double 
[virtual]
 

Set the histogram range. Note that Range[1] is exclusive. The Range is updated automatically by the BuildHistogram method to match the range of the vtkDataArray passed as parameter. Nevertheless, you might want to set the Range manually, either after calling the BuildHistogram method to restrict the histogram to a subset, or before calling the AccumulateHistogram method, which accumulates values and update the histogram. Use the EstimateHistogramRange method to compute the range that is needed to store a set of scalars.

void vtkKWHistogram::SetRange double  [2]  ) 
 

Set the histogram range. Note that Range[1] is exclusive. The Range is updated automatically by the BuildHistogram method to match the range of the vtkDataArray passed as parameter. Nevertheless, you might want to set the Range manually, either after calling the BuildHistogram method to restrict the histogram to a subset, or before calling the AccumulateHistogram method, which accumulates values and update the histogram. Use the EstimateHistogramRange method to compute the range that is needed to store a set of scalars.

virtual void vtkKWHistogram::EstimateHistogramRange vtkDataArray *  scalars,
int  component,
double  range[2]
[virtual]
 

Estimate the range that will be used by BuildHistogram from scalars (given a component)

virtual void vtkKWHistogram::AccumulateHistogram vtkDataArray *  scalars,
int  component
[virtual]
 

Accumulate the histogram from scalars (given a component) The Range is *not* modified automatically, you have to set it appropriately before calling this method using either: - a call to SetRange followed by a call to EmptyHistogram (use the EstimateHistogramRange method to compute the range that is needed to store a set of scalars)

  • or a call to BuildHistogram first, with the appropriate 'scalars'. This method can be called multiple times with a different 'scalars':
  • the 'scalars' range has to lie within the Range ivar. - the bins are not reset to 0, the values of 'scalars' are used to update the histogram with more data (accumulate) => EmptyHistogram will reset the histogram (remove all bins, forcing all bins to be set to 0 the next time the number of bins is changed).

virtual void vtkKWHistogram::EmptyHistogram  )  [virtual]
 

Empty this histogram (0 bins). The next time the number of bins is changed (BuildHistogram or AccumulateHistogram), each bin is set to 0.

virtual void vtkKWHistogram::SetLogMode int   )  [virtual]
 

Compute the image of the histogram in log space (default).

virtual void vtkKWHistogram::LogModeOn  )  [virtual]
 

Compute the image of the histogram in log space (default).

virtual void vtkKWHistogram::LogModeOff  )  [virtual]
 

Compute the image of the histogram in log space (default).

virtual int vtkKWHistogram::GetLogMode  )  [virtual]
 

Compute the image of the histogram in log space (default).

virtual void vtkKWHistogram::ComputeStatistics  )  [protected, virtual]
 

virtual void vtkKWHistogram::UpdateHistogram vtkDataArray *  scalars,
int  component,
int  reset_range
[protected, virtual]
 

Update the histogram from scalars (given a component) Either reset the range (BuildHistogram) or not (AccumulateHistogram)

virtual void vtkKWHistogram::EstimateHistogramRangeAndNumberOfBins vtkDataArray *  scalars,
int  component,
double  range[2],
vtkIdType *  nb_of_bins
[protected, virtual]
 

Estimate the range that will be used by BuildHistogram from scalars (given a component), and the number of bins

virtual int vtkKWHistogram::IsImageUpToDate const ImageDescriptor desc = 0  )  [virtual]
 

virtual vtkImageData* vtkKWHistogram::GetImage ImageDescriptor desc  )  [virtual]
 


Member Data Documentation

double vtkKWHistogram::Range[2] [protected]
 

Definition at line 130 of file vtkKWHistogram.h.

vtkDoubleArray* vtkKWHistogram::Bins [protected]
 

Definition at line 132 of file vtkKWHistogram.h.

vtkImageData* vtkKWHistogram::Image [protected]
 

Definition at line 134 of file vtkKWHistogram.h.

unsigned long vtkKWHistogram::LastImageBuildTime [protected]
 

Definition at line 135 of file vtkKWHistogram.h.

unsigned long vtkKWHistogram::LastTransferFunctionTime [protected]
 

Definition at line 136 of file vtkKWHistogram.h.

int vtkKWHistogram::LogMode [protected]
 

Definition at line 137 of file vtkKWHistogram.h.

vtkIdType vtkKWHistogram::MaximumNumberOfBins [protected]
 

Definition at line 138 of file vtkKWHistogram.h.

unsigned long vtkKWHistogram::LastStatisticsBuildTime [protected]
 

Definition at line 141 of file vtkKWHistogram.h.

double vtkKWHistogram::MinimumOccurence [protected]
 

Definition at line 143 of file vtkKWHistogram.h.

double vtkKWHistogram::MaximumOccurence [protected]
 

Definition at line 144 of file vtkKWHistogram.h.

double vtkKWHistogram::TotalOccurence [protected]
 

Definition at line 145 of file vtkKWHistogram.h.

vtkKWHistogram::ImageDescriptor* vtkKWHistogram::LastImageDescriptor [protected]
 

Definition at line 235 of file vtkKWHistogram.h.


The documentation for this class was generated from the following file:
Generated on Tue May 30 12:38:39 2006 for ParaView by doxygen 1.3.5