TTK
Loading...
Searching...
No Matches
ttkScalarFieldNormalizer.h
Go to the documentation of this file.
1
51
52#pragma once
53
54// VTK Module
55#include <ttkScalarFieldNormalizerModule.h>
56
57// ttk code includes
58#include <ttkAlgorithm.h>
59
60// in this example, this wrapper takes a data-set on the input and produces a
61// data-set on the output - to adapt.
62// see the documentation of the vtkAlgorithm class to decide from which VTK
63// class your wrapper should inherit.
64class TTKSCALARFIELDNORMALIZER_EXPORT ttkScalarFieldNormalizer
65 : public ttkAlgorithm {
66
67public:
69
71
72protected:
74
76
77 int FillInputPortInformation(int port, vtkInformation *info) override;
78
79 int FillOutputPortInformation(int port, vtkInformation *info) override;
80
81 int normalize(vtkDataArray *input, vtkDataArray *output) const;
82
83 int RequestData(vtkInformation *request,
84 vtkInformationVector **inputVector,
85 vtkInformationVector *outputVector) override;
86
87private:
88};
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
~ttkScalarFieldNormalizer() override
static ttkScalarFieldNormalizer * New()
coefficient_t normalize(const coefficient_t n, const coefficient_t modulus)
Definition ripser.cpp:171