28 #ifndef vtkMergeFields_h
29 #define vtkMergeFields_h
32 #include "vtkFiltersCoreModule.h"
35 VTK_ABI_NAMESPACE_BEGIN
54 void SetOutputField(
const char*
name,
int fieldLoc);
61 void SetOutputField(
const char*
name,
const char* fieldLoc);
66 void Merge(
int component,
const char* arrayName,
int sourceComp);
73 vtkSetMacro(NumberOfComponents,
int);
74 vtkGetMacro(NumberOfComponents,
int);
92 delete[] this->FieldName;
93 this->FieldName =
nullptr;
96 size_t len = strlen(name) + 1;
97 this->FieldName =
new char[len];
99 strncpy_s(this->FieldName, len, name, len - 1);
101 strncpy(this->FieldName, name, len);
126 static char FieldLocationNames[3][12];
137 void AddComponent(Component* op);
138 Component* FindComponent(
int index);
139 void DeleteAllComponents();
141 void PrintComponent(Component* op, ostream& os,
vtkIndent indent);
142 void PrintAllComponents(ostream& os,
vtkIndent indent);
149 VTK_ABI_NAMESPACE_END
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
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Component * GetNextComponent(Component *op)
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()
Represents and manipulates a collection of data arrays.