44 vtkSetMacro(ui_extension,
double) vtkGetMacro(ui_extension,
double);
45 vtkSetMacro(ui_sizeFilter,
double) vtkGetMacro(ui_sizeFilter,
double);
46 vtkSetMacro(ui_spherical,
bool) vtkGetMacro(ui_spherical,
bool);
61 SetNumberOfInputPorts(3);
62 SetNumberOfOutputPorts(2);
74 vtkInformationVector **iVec,
75 vtkInformationVector *oVec)
override;
78 bool preprocessFld(vtkDataSet *dataset);
81 bool preprocessPts(vtkUnstructuredGrid *nodes, vtkUnstructuredGrid *arcs);
91 const std::string &varName,
93 const std::string &typeName) {
94 auto vtkArr = data->GetAbstractArray(varName.c_str());
95 const std::string dataKind
96 =
dynamic_cast<vtkPointData *
>(data) ?
"point" :
"cell";
98 vtkErrorMacro(
"The " + dataKind +
"s must have data named " + varName);
101 if(vtkArr->GetDataType() != typeCode) {
102 vtkErrorMacro(<<
"The " + dataKind +
" data " + varName
103 +
" must be of type "
104 << typeName <<
" but it is "
105 << vtkArr->GetDataTypeAsString());
108 return reinterpret_cast<T *
>(vtkArr->GetVoidPointer(0));
118 double ui_sizeFilter;
124 const char *_scalarsName =
nullptr;
127 std::vector<float> _coords;
128 std::vector<float> _scalars;
129 std::vector<float> _isovals;
130 std::vector<int> _flags;
135 std::vector<float> coordsBuf_{};
136 std::vector<ttk::LongSimplexId> cinfosBuf_{};
137 std::vector<float> scalarsBuf_{};
138 std::vector<int> flagsBuf_{};