TTK
Loading...
Searching...
No Matches
ttkArrayPreconditioning.h
Go to the documentation of this file.
1
24
25#pragma once
26
27// VTK Module
28#include <ttkArrayPreconditioningModule.h>
29
30// VTK Includes
31#include <ttkAlgorithm.h>
32
33#include <vtkDataArraySelection.h>
34#include <vtkNew.h>
35
36// TTK Base Includes
38
39class TTKARRAYPRECONDITIONING_EXPORT ttkArrayPreconditioning
40 : public ttkAlgorithm // we inherit from the generic ttkAlgorithm class
41 ,
42 protected ttk::ArrayPreconditioning // and we inherit from the base class
43{
44
45public:
48
49 vtkSetMacro(SelectFieldsWithRegexp, bool);
50 vtkGetMacro(SelectFieldsWithRegexp, bool);
51
52 vtkSetMacro(RegexpString, const std::string &);
53 vtkGetMacro(RegexpString, std::string);
54
55 vtkSetMacro(GlobalOrder, bool);
56 vtkGetMacro(GlobalOrder, bool);
57
58 vtkSetMacro(ChunkSize, int);
59 vtkGetMacro(ChunkSize, int);
60
61 // copy the vtkPassSelectedArray ("PassArrays" filter) API
62 vtkDataArraySelection *GetPointDataArraySelection() {
63 return this->ArraySelection;
64 }
65
66protected:
68 int FillInputPortInformation(int port, vtkInformation *info) override;
69 int FillOutputPortInformation(int port, vtkInformation *info) override;
70 int RequestData(vtkInformation *request,
71 vtkInformationVector **inputVector,
72 vtkInformationVector *outputVector) override;
73
74private:
75 vtkNew<vtkDataArraySelection> ArraySelection{};
76 bool SelectFieldsWithRegexp{false};
77 std::string RegexpString{".*"};
78};
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 to generate order fields.
static ttkArrayPreconditioning * New()
vtkDataArraySelection * GetPointDataArraySelection()