VTK: Filters/General/vtkEqualizerFilter.h Source File

| VTK 9.3.1

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:
23 static vtkEqualizerFilter* New();
24 vtkTypeMacro(vtkEqualizerFilter, vtkTableAlgorithm);
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
51 vtkSetStdStringFromCharMacro(Array);
52 vtkGetCharFromStdStringMacro(Array);
54
60 void SetPoints(const std::string& points);
61 std::string GetPoints() const;
62
64
68 vtkSetMacro(SpectrumGain, int);
69 vtkGetMacro(SpectrumGain, int);
71
72 protected:
73 vtkEqualizerFilter();
74 ~vtkEqualizerFilter() override;
75
76 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
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
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkEqualizerFilter
implements an algorithm for digital signal processing
Definition: vtkEqualizerFilter.h:21
vtkEqualizerFilter::GetPoints
std::string GetPoints() const
vtkEqualizerFilter::vtkSetStdStringFromCharMacro
vtkSetStdStringFromCharMacro(Array)
Set / Get the name of the column from which the data array is taken.
vtkEqualizerFilter::New
static vtkEqualizerFilter * New()
vtkEqualizerFilter::vtkGetCharFromStdStringMacro
vtkGetCharFromStdStringMacro(Array)
Set / Get the name of the column from which the data array is taken.
vtkEqualizerFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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...
vtkEqualizerFilter::vtkEqualizerFilter
vtkEqualizerFilter()
vtkEqualizerFilter::~vtkEqualizerFilter
~vtkEqualizerFilter() override
vtkEqualizerFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkTableAlgorithm
Superclass for algorithms that produce only vtkTables as output.
Definition: vtkTableAlgorithm.h:37
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
vtkX3D::points
@ points
Definition: vtkX3D.h:446
vtkX3D::string
@ string
Definition: vtkX3D.h:490
vtkTableAlgorithm.h