Go to the documentation of this file.
40 #ifndef vtkMergeFields_h
41 #define vtkMergeFields_h
43 #include "vtkFiltersCoreModule.h"
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; }
int MergeArray(vtkDataArray *in, vtkDataArray *out, int inComp, int outComp)
Component * FindComponent(int index)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void SetOutputField(const char *name, const char *fieldLoc)
Helper method used by the other language bindings.
void SetName(const char *name)
abstract superclass for arrays of numeric data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void AddComponent(Component *op)
represent and manipulate fields of data
void Merge(int component, const char *arrayName, int sourceComp)
Add a component (arrayName,sourceComp) to the output field.
void DeleteAllComponents()
Superclass for algorithms that produce output of the same type as input.
~vtkMergeFields() override
void PrintComponent(Component *op, ostream &os, vtkIndent indent)
static vtkMergeFields * New()
Create a new vtkMergeFields.
a simple class to control print indentation
void PrintAllComponents(ostream &os, vtkIndent indent)
Merge multiple fields into one.
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...