28#ifndef vtkMergeFields_h
29#define vtkMergeFields_h
32#include "vtkFiltersCoreModule.h"
34VTK_ABI_NAMESPACE_BEGIN
65 void Merge(
int component,
const char* arrayName,
int sourceComp);
72 vtkSetMacro(NumberOfComponents,
int);
73 vtkGetMacro(NumberOfComponents,
int);
91 delete[] this->FieldName;
92 this->FieldName =
nullptr;
95 size_t len = strlen(name) + 1;
96 this->FieldName =
new char[len];
98 strncpy_s(this->FieldName, len, name, len - 1);
100 strncpy(this->FieldName, name, len);
125 static char FieldLocationNames[3][12];
abstract superclass for arrays of numeric data
Superclass for algorithms that produce output of the same type as input.
represent and manipulate fields of data
a simple class to control print indentation
Merge multiple fields into one.
static vtkMergeFields * New()
Create a new vtkMergeFields.
void DeleteAllComponents()
int MergeArray(vtkDataArray *in, vtkDataArray *out, int inComp, int outComp)
void PrintComponent(Component *op, ostream &os, vtkIndent indent)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkMergeFields() override
void Merge(int component, const char *arrayName, int sourceComp)
Add a component (arrayName,sourceComp) to the output field.
void SetOutputField(const char *name, const char *fieldLoc)
Helper method used by the other language bindings.
void PrintAllComponents(ostream &os, vtkIndent indent)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
Component * FindComponent(int index)
Component * GetNextComponent(Component *op)
void SetOutputField(const char *name, int fieldLoc)
The output field will have the given name and it will be in fieldLoc (the input fields also have to b...
void AddComponent(Component *op)
void SetName(const char *name)