21#include <vtkDataArraySelection.h>
24#include <ttkPointDataSelectorModule.h>
37 vtkSetMacro(RegexpString,
const std::string &);
45 return RangeId.data();
48 vtkSetMacro(RenameSelected,
bool);
49 vtkGetMacro(RenameSelected,
bool);
51 vtkSetMacro(SelectedFieldName,
const std::string &);
52 vtkGetMacro(SelectedFieldName, std::string);
55 SelectedFields.emplace_back(s);
60 SelectedFields.clear();
65 vtkDataArraySelection *arr = vtkDataArraySelection::New();
66 arr->SetArraySetting(
"0",
true);
68 std::to_string(AvailableFields.size() - 1).c_str(),
true);
76 vtkInformationVector **inputVector,
77 vtkInformationVector *outputVector)
override;
82 vtkInformationVector **inputVector,
83 vtkInformationVector *outputVector)
override;
85 void FillAvailableFields(vtkDataSet *input);
88 bool RenameSelected{
false};
89 std::string SelectedFieldName{
"SelectedField"};
90 std::vector<std::string> SelectedFields{};
91 std::vector<std::string> AvailableFields{};
92 std::string RegexpString{
".*"};
93 std::array<int, 2> RangeId{0, std::numeric_limits<int>::max()};
Baseclass of all VTK filters that wrap ttk modules.
virtual int RequestData(vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
virtual int RequestInformation(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 selects scalar fields on input with shallow copy.
void AddScalarField(const std::string &s)
void SetRangeId(int data0, int data1)
static ttkPointDataSelector * New()
vtkDataArraySelection * GetRangeIds()