Go to the documentation of this file.
49 #ifndef vtkSplitField_h
50 #define vtkSplitField_h
52 #include "vtkFiltersGeneralModule.h"
107 delete[] this->FieldName;
108 this->FieldName =
nullptr;
111 size_t len = strlen(
name)+1;
112 this->FieldName =
new char[len];
114 strncpy_s(this->FieldName, len,
name, len - 1);
116 strncpy(this->FieldName,
name, len);
142 static char FieldLocationNames[3][12];
156 {
return this->Head; }
void SetName(const char *name)
void AddComponent(Component *op)
Component * FindComponent(int index)
void SetInputField(int attributeType, int fieldLoc)
Use the given attribute in the field data given by fieldLoc as input.
void SetInputField(const char *name, int fieldLoc)
Use the array with given name in the field data given by fieldLoc as input.
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.
represent and manipulate fields of data
Superclass for algorithms that produce output of the same type as input.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
Split a field into single component fields.
static vtkSplitField * New()
Create a new vtkSplitField.
a simple class to control print indentation
void DeleteAllComponents()
void Split(int component, const char *arrayName)
Create a new array with the given component.
~vtkSplitField() override
void PrintAllComponents(ostream &os, vtkIndent indent)
void SetInputField(const char *name, const char *fieldLoc)
Helper method used by other language bindings.
Component * GetNextComponent(Component *op)
void PrintComponent(Component *op, ostream &os, vtkIndent indent)
vtkDataArray * SplitArray(vtkDataArray *da, int component)