37 #ifndef vtkMergeFields_h
38 #define vtkMergeFields_h
40 #include "vtkFiltersCoreModule.h"
61 void SetOutputField(
const char*
name,
int fieldLoc);
68 void SetOutputField(
const char*
name,
const char* fieldLoc);
73 void Merge(
int component,
const char* arrayName,
int sourceComp);
80 vtkSetMacro(NumberOfComponents,
int);
81 vtkGetMacro(NumberOfComponents,
int);
99 delete[] this->FieldName;
100 this->FieldName =
nullptr;
103 size_t len = strlen(
name)+1;
104 this->FieldName =
new char[len];
106 strncpy_s(this->FieldName, len,
name, len - 1);
108 strncpy(this->FieldName,
name, len);
134 static char FieldLocationNames[3][12];
147 {
return this->Head; }
148 void AddComponent(Component* op);
149 Component* FindComponent(
int index);
150 void DeleteAllComponents();
152 void PrintComponent(Component* op, ostream& os,
vtkIndent indent);
153 void PrintAllComponents(ostream& os,
vtkIndent indent);