21#include <vtkDataArray.h>
22#include <vtkDataArraySelection.h>
23#include <vtkDataSetAttributes.h>
24#include <vtkInformation.h>
25#include <vtkSmartPointer.h>
29#include <ttkTableDataSelectorModule.h>
42 vtkSetMacro(RegexpString,
const std::string &);
44 vtkGetVector2Macro(RangeId,
int);
45 vtkSetVector2Macro(RangeId,
int);
50 SelectedCols.push_back(s);
60 vtkDataArraySelection *arr = vtkDataArraySelection::New();
61 arr->SetArraySetting(
"0",
true);
63 std::to_string(AvailableCols.size() - 1).c_str(),
true);
71 this->SetNumberOfInputPorts(1);
72 this->SetNumberOfOutputPorts(1);
77 RangeId[1] = std::numeric_limits<int>::max();
84 vtkInformationVector **inputVector,
85 vtkInformationVector *outputVector)
override;
88 vtkInformationVector **inputVector,
89 vtkInformationVector *outputVector)
override;
95 void FillAvailableCols(vtkTable *input);
98 std::vector<std::string> SelectedCols;
99 std::vector<std::string> AvailableCols;
100 std::string RegexpString;
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.
~ttkTableDataSelector() override=default
void AddCol(const std::string &s)
vtkDataArraySelection * GetRangeIds()
static ttkTableDataSelector * New()
void setDebugMsgPrefix(const std::string &prefix)