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
31class VTKFILTERSGENERAL_EXPORT vtkEqualizerFilter : public vtkTableAlgorithm
32{
33public:
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
71 void SetPoints(const std::string& points);
72 std::string GetPoints() const;
73
75
79 vtkSetMacro(SpectrumGain, int);
80 vtkGetMacro(SpectrumGain, int);
82
83protected:
86
88
89private:
90 void ProcessColumn(
91 vtkDataArray* array, vtkTable* spectrumTable, vtkTable* resultTable, vtkTable* normalizedTable);
92
93private:
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
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
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)
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:113
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:172