TTK
Loading...
Searching...
No Matches
ttkIdentifierRandomizer.h
Go to the documentation of this file.
1
38#pragma once
39
40// VTK includes -- to adapt
41
42// VTK Module
43#include <ttkIdentifierRandomizerModule.h>
44
45// ttk code includes
46#include <ttkAlgorithm.h>
47
48// in this example, this wrapper takes a data-set on the input and produces a
49// data-set on the output - to adapt.
50// see the documentation of the vtkAlgorithm class to decide from which VTK
51// class your wrapper should inherit.
52class TTKIDENTIFIERRANDOMIZER_EXPORT ttkIdentifierRandomizer
53 : public ttkAlgorithm {
54
55public:
58
59 vtkGetMacro(RandomSeed, int);
60 vtkSetMacro(RandomSeed, int);
61
62 vtkGetMacro(CompactRange, bool);
63 vtkSetMacro(CompactRange, bool);
64
65protected:
67
68 int FillInputPortInformation(int port, vtkInformation *info) override;
69
70 int FillOutputPortInformation(int port, vtkInformation *info) override;
71
72 int RequestData(vtkInformation *request,
73 vtkInformationVector **inputVector,
74 vtkInformationVector *outputVector) override;
75
76private:
77 int RandomSeed{};
78 bool CompactRange{false};
79};
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 randomly shuffles segmentation identifiers.
static ttkIdentifierRandomizer * New()