56 #ifndef __vtkSplitField_h
57 #define __vtkSplitField_h
59 #include "vtkFiltersGeneralModule.h"
60 #include "vtkDataSetAlgorithm.h"
62 #include "vtkDataSetAttributes.h"
66 class VTKFILTERSGENERAL_EXPORT
vtkSplitField :
public vtkDataSetAlgorithm
70 void PrintSelf(ostream& os, vtkIndent indent);
77 void SetInputField(
int attributeType,
int fieldLoc);
81 void SetInputField(
const char* name,
int fieldLoc);
85 void SetInputField(
const char* name,
const char* fieldLoc);
88 void Split(
int component,
const char* arrayName);
107 delete[] this->FieldName;
111 this->FieldName =
new char[strlen(name)+1];
112 strcpy(this->FieldName, name);
133 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
140 static char FieldLocationNames[3][12];
141 static char AttributeNames[vtkDataSetAttributes::NUM_ATTRIBUTES][10];
143 vtkDataArray* SplitArray(vtkDataArray* da,
int component);
154 {
return this->Head; }
155 void AddComponent(Component* op);
156 Component* FindComponent(
int index);
157 void DeleteAllComponents();
159 void PrintComponent(Component* op, ostream& os, vtkIndent indent);
160 void PrintAllComponents(ostream& os, vtkIndent indent);
Component * GetNextComponent(Component *op)
void SetName(const char *name)
Split a field into single component fields.