30 #ifndef vtkExtractHistogram_h
31 #define vtkExtractHistogram_h
35 #include "vtkFiltersStatisticsModule.h"
41 class vtkExtractHistogramInternal;
58 vtkGetMacro(Component,
int);
67 vtkGetMacro(BinCount,
int);
76 vtkSetMacro(CenterBinsAroundMinAndMax,
bool);
77 vtkGetMacro(CenterBinsAroundMinAndMax,
bool);
78 vtkBooleanMacro(CenterBinsAroundMinAndMax,
bool);
87 vtkSetVector2Macro(CustomBinRanges,
double);
88 vtkGetVector2Macro(CustomBinRanges,
double);
97 vtkSetMacro(UseCustomBinRanges,
bool);
98 vtkGetMacro(UseCustomBinRanges,
bool);
99 vtkBooleanMacro(UseCustomBinRanges,
bool);
109 vtkSetMacro(CalculateAverages,
bool);
110 vtkGetMacro(CalculateAverages,
bool);
111 vtkBooleanMacro(CalculateAverages,
bool);
119 vtkSetStringMacro(BinExtentsArrayName);
120 vtkGetStringMacro(BinExtentsArrayName);
128 vtkSetStringMacro(BinValuesArrayName);
129 vtkGetStringMacro(BinValuesArrayName);
138 vtkSetMacro(Normalize,
bool);
139 vtkBooleanMacro(Normalize,
bool);
140 vtkGetMacro(Normalize,
bool);
149 vtkSetMacro(Accumulation,
bool);
150 vtkBooleanMacro(Accumulation,
bool);
151 vtkGetMacro(Accumulation,
bool);
159 vtkSetStringMacro(BinAccumulationArrayName);
160 vtkGetStringMacro(BinAccumulationArrayName);
167 vtkGetVector2Macro(BinRange,
double);
197 void NormalizeBins(
vtkTable* outputData);
199 void AccumulateBins(
vtkTable* outputData);
201 double CustomBinRanges[2] = { 0, 100 };
203 bool CenterBinsAroundMinAndMax =
false;
204 bool UseCustomBinRanges =
false;
207 bool CalculateAverages =
false;
208 char* BinExtentsArrayName =
nullptr;
209 char* BinValuesArrayName =
nullptr;
210 char* BinAccumulationArrayName =
nullptr;
211 bool Normalize =
false;
212 bool Accumulation =
false;
214 std::unique_ptr<vtkExtractHistogramInternal>
Internal;
220 int GetInputFieldAssociation();
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkTableAlgorithm * New()
dynamic, self-adjusting array of double
dynamic, self-adjusting array of int
a simple class to control print indentation
abstract superclass for arrays of numeric data
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
A table, which contains similar-typed columns of data.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Superclass for algorithms that produce only vtkTables as output.
general representation of visualization data
represent and manipulate fields of data