47 #ifndef __vtkMergeFields_h
48 #define __vtkMergeFields_h
50 #include "vtkFiltersCoreModule.h"
51 #include "vtkDataSetAlgorithm.h"
60 void PrintSelf(ostream& os, vtkIndent indent);
67 void SetOutputField(
const char* name,
int fieldLoc);
72 void SetOutputField(
const char* name,
const char* fieldLoc);
75 void Merge(
int component,
const char* arrayName,
int sourceComp);
80 vtkSetMacro(NumberOfComponents,
int);
81 vtkGetMacro(NumberOfComponents,
int);
102 delete[] this->FieldName;
106 this->FieldName =
new char[strlen(name)+1];
107 strcpy(this->FieldName, name);
128 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
135 static char FieldLocationNames[3][12];
138 int MergeArray(vtkDataArray* in, vtkDataArray* out,
int inComp,
int outComp);
148 {
return this->Head; }
149 void AddComponent(Component* op);
150 Component* FindComponent(
int index);
151 void DeleteAllComponents();
153 void PrintComponent(Component* op, ostream& os, vtkIndent indent);
154 void PrintAllComponents(ostream& os, vtkIndent indent);
Merge multiple fields into one.
void SetName(const char *name)
Component * GetNextComponent(Component *op)