40 #ifndef vtkMergeFields_h 41 #define vtkMergeFields_h 43 #include "vtkFiltersCoreModule.h" 64 void SetOutputField(
const char*
name,
int fieldLoc);
71 void SetOutputField(
const char*
name,
const char* fieldLoc);
76 void Merge(
int component,
const char* arrayName,
int sourceComp);
83 vtkSetMacro(NumberOfComponents,
int);
84 vtkGetMacro(NumberOfComponents,
int);
102 delete[] this->FieldName;
103 this->FieldName =
nullptr;
106 size_t len = strlen(name)+1;
107 this->FieldName =
new char[len];
109 strncpy_s(this->FieldName, len, name, len - 1);
111 strncpy(this->FieldName, name, len);
137 static char FieldLocationNames[3][12];
150 {
return this->Head; }
153 void DeleteAllComponents();
156 void PrintAllComponents(ostream& os,
vtkIndent indent);
Merge multiple fields into one.
void SetName(const char *name)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
abstract superclass for arrays of numeric data
Component * GetNextComponent(Component *op)
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()
represent and manipulate fields of data