TTK
Loading...
Searching...
No Matches
ttkIdentifyByScalarField.h
Go to the documentation of this file.
1
30#pragma once
31
32// VTK Module
33#include <ttkIdentifyByScalarFieldModule.h>
34
35// ttk code includes
36#include <ttkAlgorithm.h>
37
38class TTKIDENTIFYBYSCALARFIELD_EXPORT ttkIdentifyByScalarField
39 : public ttkAlgorithm {
40
41public:
44
45 vtkSetMacro(IncreasingOrder, bool);
46 vtkGetMacro(IncreasingOrder, bool);
47
48 vtkSetMacro(StartByOne, bool);
49 vtkGetMacro(StartByOne, bool);
50
51 template <typename VTK_TT>
52 int dispatch(std::vector<ttk::SimplexId> &inputIds);
53
54protected:
56
57 ~ttkIdentifyByScalarField() override = default;
58 ;
59
60 int FillInputPortInformation(int port, vtkInformation *info) override;
61 int FillOutputPortInformation(int port, vtkInformation *info) override;
62 int RequestData(vtkInformation *request,
63 vtkInformationVector **inputVector,
64 vtkInformationVector *outputVector) override;
65
66private:
67 bool IncreasingOrder{false};
68 bool StartByOne{false};
69
70 vtkDataArray *inputScalars_{nullptr};
71};
Baseclass of all VTK filters that wrap ttk modules.
Definition: ttkAlgorithm.h:34
TTK VTK-filter that computes a new scalar array based on a sorting of the input array.
static ttkIdentifyByScalarField * New()
The Topology ToolKit.