TTK
Loading...
Searching...
No Matches
ttkArrayPreconditioning.h
Go to the documentation of this file.
1
19
20#pragma once
21
22// VTK Module
23#include <ttkArrayPreconditioningModule.h>
24
25// VTK Includes
26#include <ttkAlgorithm.h>
27
28#include <vtkDataArraySelection.h>
29#include <vtkNew.h>
30
31// TTK Base Includes
33
34class TTKARRAYPRECONDITIONING_EXPORT ttkArrayPreconditioning
35 : public ttkAlgorithm // we inherit from the generic ttkAlgorithm class
36 ,
37 protected ttk::ArrayPreconditioning // and we inherit from the base class
38{
39
40public:
43
44 vtkSetMacro(SelectFieldsWithRegexp, bool);
45 vtkGetMacro(SelectFieldsWithRegexp, bool);
46
47 vtkSetMacro(BurstSize, int);
48 vtkGetMacro(BurstSize, int);
49
50 vtkSetMacro(RegexpString, const std::string &);
51 vtkGetMacro(RegexpString, std::string);
52
53 vtkSetMacro(GlobalOrder, bool);
54 vtkGetMacro(GlobalOrder, bool);
55
56 // copy the vtkPassSelectedArray ("PassArrays" filter) API
57 vtkDataArraySelection *GetPointDataArraySelection() {
58 return this->ArraySelection;
59 }
60
61protected:
63 int FillInputPortInformation(int port, vtkInformation *info) override;
64 int FillOutputPortInformation(int port, vtkInformation *info) override;
65 int RequestData(vtkInformation *request,
66 vtkInformationVector **inputVector,
67 vtkInformationVector *outputVector) override;
68
69private:
70 vtkNew<vtkDataArraySelection> ArraySelection{};
71 bool SelectFieldsWithRegexp{false};
72 std::string RegexpString{".*"};
73 int BurstSize{100};
74};
Baseclass of all VTK filters that wrap ttk modules.
Definition: ttkAlgorithm.h:34
virtual int RequestData(vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
Definition: ttkAlgorithm.h:390
int FillInputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
Definition: ttkAlgorithm.h:404
int FillOutputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
Definition: ttkAlgorithm.h:419
TTK VTK-filter to generate order fields.
static ttkArrayPreconditioning * New()
vtkDataArraySelection * GetPointDataArraySelection()