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