TTK
Loading...
Searching...
No Matches
ttkMorphologicalOperators.h
Go to the documentation of this file.
1
22
24
25#pragma once
26
27// VTK Module
28#include <ttkMorphologicalOperatorsModule.h>
29
30// VTK includes
31#include <ttkAlgorithm.h>
32
33// TTK includes
35
36class TTKMORPHOLOGICALOPERATORS_EXPORT ttkMorphologicalOperators
37 : public ttkAlgorithm,
39
40private:
41 int Mode{0};
42 std::string PivotLabel{"0"};
43 int Iterations{1};
44 bool Grayscale{false};
45
46public:
49
50 vtkSetMacro(Mode, int);
51 vtkGetMacro(Mode, int);
52 vtkSetMacro(PivotLabel, const std::string &);
53 vtkGetMacro(PivotLabel, std::string);
54 vtkSetMacro(Iterations, int);
55 vtkGetMacro(Iterations, int);
56 vtkSetMacro(Grayscale, bool);
57 vtkGetMacro(Grayscale, bool);
58
59protected:
62
63 int FillInputPortInformation(int port, vtkInformation *info) override;
64 int FillOutputPortInformation(int port, vtkInformation *info) override;
65
66 int RequestData(vtkInformation *request,
67 vtkInformationVector **inputVector,
68 vtkInformationVector *outputVector) override;
69};
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 dilates or erodes a specified vertex label.
~ttkMorphologicalOperators() override
static ttkMorphologicalOperators * New()
TTK morphologicalOperators processing package.