TTK
Loading...
Searching...
No Matches
ttkScalarFieldNormalizer.h
Go to the documentation of this file.
1
43
44#pragma once
45
46// VTK Module
47#include <ttkScalarFieldNormalizerModule.h>
48
49// ttk code includes
50#include <ttkAlgorithm.h>
51
52// in this example, this wrapper takes a data-set on the input and produces a
53// data-set on the output - to adapt.
54// see the documentation of the vtkAlgorithm class to decide from which VTK
55// class your wrapper should inherit.
56class TTKSCALARFIELDNORMALIZER_EXPORT ttkScalarFieldNormalizer
57 : public ttkAlgorithm {
58
59public:
61
63
64protected:
66
68
69 int FillInputPortInformation(int port, vtkInformation *info) override;
70
71 int FillOutputPortInformation(int port, vtkInformation *info) override;
72
73 int normalize(vtkDataArray *input, vtkDataArray *output) const;
74
75 int RequestData(vtkInformation *request,
76 vtkInformationVector **inputVector,
77 vtkInformationVector *outputVector) override;
78
79private:
80};
Baseclass of all VTK filters that wrap ttk modules.
virtual int RequestData(vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
int FillInputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
int FillOutputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
TTK VTK-filter that normalizes an input scalar field.
~ttkScalarFieldNormalizer() override
static ttkScalarFieldNormalizer * New()
coefficient_t normalize(const coefficient_t n, const coefficient_t modulus)
Definition ripserpy.cpp:148