46#ifndef vtkSplitField_h
47#define vtkSplitField_h
50#include "vtkFiltersGeneralModule.h"
104 delete[] this->FieldName;
105 this->FieldName =
nullptr;
108 size_t len = strlen(
name) + 1;
109 this->FieldName =
new char[len];
111 strncpy_s(this->FieldName, len,
name, len - 1);
113 strncpy(this->FieldName,
name, len);
138 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
Split a field into single component fields.
void DeleteAllComponents()
void SetInputField(int attributeType, int fieldLoc)
Use the given attribute in the field data given by fieldLoc as input.
void SetInputField(const char *name, const char *fieldLoc)
Helper method used by other language bindings.
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 Split(int component, const char *arrayName)
Create a new array with the given component.
void PrintComponent(Component *op, ostream &os, vtkIndent indent)
void PrintAllComponents(ostream &os, vtkIndent indent)
vtkDataArray * SplitArray(vtkDataArray *da, int component)
void SetInputField(const char *name, int fieldLoc)
Use the array with given name in the field data given by fieldLoc as input.
Component * GetNextComponent(Component *op)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void AddComponent(Component *op)
~vtkSplitField() override
static vtkSplitField * New()
Create a new vtkSplitField.
void SetName(const char *name)