40 #ifndef vtkMergeFields_h
41 #define vtkMergeFields_h
44 #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);
136 static char FieldLocationNames[3][12];
147 void AddComponent(Component* op);
148 Component* FindComponent(
int index);
149 void DeleteAllComponents();
151 void PrintComponent(Component* op, ostream& os,
vtkIndent indent);
152 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
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()
represent and manipulate fields of data