VTK  9.3.0
vtkEqualizerFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef vtkEqualizerFilter_h
4 #define vtkEqualizerFilter_h
5 
6 #include "vtkFiltersGeneralModule.h" // For export macro
7 #include "vtkTableAlgorithm.h"
8 
9 #include <string> // for std::string
10 
19 VTK_ABI_NAMESPACE_BEGIN
20 class VTKFILTERSGENERAL_EXPORT vtkEqualizerFilter : public vtkTableAlgorithm
21 {
22 public:
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
28 
32  vtkSetMacro(SamplingFrequency, int);
33  vtkGetMacro(SamplingFrequency, int);
35 
37 
43  vtkSetMacro(AllColumns, bool);
44  vtkGetMacro(AllColumns, bool);
46 
48 
54 
62 
64 
68  vtkSetMacro(SpectrumGain, int);
69  vtkGetMacro(SpectrumGain, int);
71 
72 protected:
74  ~vtkEqualizerFilter() override;
75 
77 
78 private:
79  void ProcessColumn(
80  vtkDataArray* array, vtkTable* spectrumTable, vtkTable* resultTable, vtkTable* normalizedTable);
81 
82  vtkEqualizerFilter(const vtkEqualizerFilter&) = delete;
83  void operator=(const vtkEqualizerFilter&) = delete;
84 
85  int SamplingFrequency = 1000; // Hz
86  bool AllColumns = false;
87  std::string Array;
88  int SpectrumGain = 0; // dB
89 
90  class vtkInternal;
91  vtkInternal* Internal;
92 };
93 
94 VTK_ABI_NAMESPACE_END
95 #endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:45
implements an algorithm for digital signal processing
std::string GetPoints() const
vtkSetStdStringFromCharMacro(Array)
Set / Get the name of the column from which the data array is taken.
static vtkEqualizerFilter * New()
vtkGetCharFromStdStringMacro(Array)
Set / Get the name of the column from which the data array is taken.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetPoints(const std::string &points)
Set / Get anchor points in the following format "P1x,P1y;P2x,P2y; ... PNx,PNy;" Default value is an e...
~vtkEqualizerFilter() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkTables as output.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:59
@ points
Definition: vtkX3D.h:446
@ string
Definition: vtkX3D.h:490