42 ADD_ARRAYS_FROM_STRING = 0,
43 ADD_ARRAYS_FROM_SOURCE = 1,
44 FILTER_ARRAYS_FROM_SOURCE = 2,
49 MODE EditorMode{MODE::ADD_ARRAYS_FROM_STRING};
50 std::string DataString{
""};
51 bool ReplaceExistingArrays{
true};
53 std::string TargetArrayName;
54 int TargetAssociation{2};
56 int TargetArrayIndexation[2];
59 ArraySelections[vtkDataObject::NUMBER_OF_ASSOCIATIONS];
66 vtkGetEnumMacro(EditorMode,
MODE);
67 vtkSetMacro(TargetAssociation,
int);
68 vtkGetMacro(TargetAssociation,
int);
69 vtkSetMacro(DataString,
const std::string &);
70 vtkGetMacro(DataString, std::string);
71 vtkSetMacro(ReplaceExistingArrays,
bool);
72 vtkGetMacro(ReplaceExistingArrays,
bool);
74 vtkSetMacro(TargetArrayName,
const std::string &);
75 vtkGetMacro(TargetArrayName, std::string);
76 vtkSetMacro(TargetArrayType,
int);
77 vtkGetMacro(TargetArrayType,
int);
78 vtkSetVector2Macro(TargetArrayIndexation,
int);
79 vtkGetVector2Macro(TargetArrayIndexation,
int);
81 vtkDataArraySelection *GetArraySelection(
int association);
83 return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_POINTS);
86 return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_CELLS);
89 return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_NONE);
92 return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_VERTICES);
95 return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_EDGES);
98 return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_ROWS);
109 vtkInformationVector **inputVector,
110 vtkInformationVector *outputVector)
override;