VTK  9.1.0
vtkEqualizerFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkEqualizerFilter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 #ifndef vtkEqualizerFilter_h
16 #define vtkEqualizerFilter_h
17 
18 #include "vtkFiltersGeneralModule.h" // For export macro
19 #include "vtkTableAlgorithm.h"
20 
21 #include <string> // for std::string
22 
31 class VTKFILTERSGENERAL_EXPORT vtkEqualizerFilter : public vtkTableAlgorithm
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
43  vtkSetMacro(SamplingFrequency, int);
44  vtkGetMacro(SamplingFrequency, int);
46 
48 
54  vtkSetMacro(AllColumns, bool);
55  vtkGetMacro(AllColumns, bool);
57 
59 
65 
73 
75 
79  vtkSetMacro(SpectrumGain, int);
80  vtkGetMacro(SpectrumGain, int);
82 
83 protected:
85  ~vtkEqualizerFilter() override;
86 
88 
89 private:
90  void ProcessColumn(
91  vtkDataArray* array, vtkTable* spectrumTable, vtkTable* resultTable, vtkTable* normalizedTable);
92 
93 private:
94  vtkEqualizerFilter(const vtkEqualizerFilter&) = delete;
95  void operator=(const vtkEqualizerFilter&) = delete;
96 
97  int SamplingFrequency = 1000; // Hz
98  bool AllColumns = false;
99  std::string Array;
100  int SpectrumGain = 0; // dB
101 
102  class vtkInternal;
103  vtkInternal* Internal;
104 };
105 
106 #endif
vtkEqualizerFilter::GetPoints
std::string GetPoints() const
vtkEqualizerFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkEqualizerFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:172
vtkEqualizerFilter::vtkEqualizerFilter
vtkEqualizerFilter()
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
vtkX3D::points
@ points
Definition: vtkX3D.h:452
vtkEqualizerFilter
implements an algorithm for digital signal processing
Definition: vtkEqualizerFilter.h:32
vtkTableAlgorithm
Superclass for algorithms that produce only vtkTables as output.
Definition: vtkTableAlgorithm.h:49
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkEqualizerFilter::New
static vtkEqualizerFilter * New()
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkX3D::string
@ string
Definition: vtkX3D.h:496
vtkEqualizerFilter::~vtkEqualizerFilter
~vtkEqualizerFilter() override
vtkEqualizerFilter::vtkGetCharFromStdStringMacro
vtkGetCharFromStdStringMacro(Array)
vtkEqualizerFilter::SetPoints
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...
vtkTableAlgorithm.h
vtkEqualizerFilter::vtkSetStdStringFromCharMacro
vtkSetStdStringFromCharMacro(Array)
Set / Get the name of the column from which the data array is taken.