46 #ifndef vtkFieldDataToAttributeDataFilter_h
47 #define vtkFieldDataToAttributeDataFilter_h
50 #include "vtkFiltersCoreModule.h"
53 #define VTK_DATA_OBJECT_FIELD 0
54 #define VTK_POINT_DATA_FIELD 1
55 #define VTK_CELL_DATA_FIELD 2
57 #define VTK_CELL_DATA 0
58 #define VTK_POINT_DATA 1
60 VTK_ABI_NAMESPACE_BEGIN
85 vtkSetMacro(InputField,
int);
86 vtkGetMacro(InputField,
int);
96 vtkSetMacro(OutputAttributeData,
int);
97 vtkGetMacro(OutputAttributeData,
int);
110 void SetScalarComponent(
111 int comp,
const char* arrayName,
int arrayComp,
int min,
int max,
int normalize);
114 this->SetScalarComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);
116 const char* GetScalarComponentArrayName(
int comp);
117 int GetScalarComponentArrayComponent(
int comp);
118 int GetScalarComponentMinRange(
int comp);
119 int GetScalarComponentMaxRange(
int comp);
120 int GetScalarComponentNormalizeFlag(
int comp);
131 void SetVectorComponent(
132 int comp,
const char* arrayName,
int arrayComp,
int min,
int max,
int normalize);
135 this->SetVectorComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);
137 const char* GetVectorComponentArrayName(
int comp);
138 int GetVectorComponentArrayComponent(
int comp);
139 int GetVectorComponentMinRange(
int comp);
140 int GetVectorComponentMaxRange(
int comp);
141 int GetVectorComponentNormalizeFlag(
int comp);
152 void SetNormalComponent(
153 int comp,
const char* arrayName,
int arrayComp,
int min,
int max,
int normalize);
156 this->SetNormalComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);
158 const char* GetNormalComponentArrayName(
int comp);
159 int GetNormalComponentArrayComponent(
int comp);
160 int GetNormalComponentMinRange(
int comp);
161 int GetNormalComponentMaxRange(
int comp);
162 int GetNormalComponentNormalizeFlag(
int comp);
173 void SetTensorComponent(
174 int comp,
const char* arrayName,
int arrayComp,
int min,
int max,
int normalize);
177 this->SetTensorComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);
179 const char* GetTensorComponentArrayName(
int comp);
180 int GetTensorComponentArrayComponent(
int comp);
181 int GetTensorComponentMinRange(
int comp);
182 int GetTensorComponentMaxRange(
int comp);
183 int GetTensorComponentNormalizeFlag(
int comp);
194 void SetTCoordComponent(
195 int comp,
const char* arrayName,
int arrayComp,
int min,
int max,
int normalize);
198 this->SetTCoordComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);
200 const char* GetTCoordComponentArrayName(
int comp);
201 int GetTCoordComponentArrayComponent(
int comp);
202 int GetTCoordComponentMinRange(
int comp);
203 int GetTCoordComponentMaxRange(
int comp);
204 int GetTCoordComponentNormalizeFlag(
int comp);
224 static int GetComponentsType(
int numComp,
vtkDataArray** arrays);
243 static void SetArrayName(
vtkObject*
self,
char*&
name,
const char* newName);
267 char* ScalarArrays[4];
268 int ScalarArrayComponents[4];
270 int ScalarNormalize[4];
272 char* VectorArrays[3];
273 int VectorArrayComponents[3];
275 int VectorNormalize[3];
282 char* NormalArrays[3];
283 int NormalArrayComponents[3];
285 int NormalNormalize[3];
287 char* TensorArrays[9];
288 int TensorArrayComponents[9];
290 int TensorNormalize[9];
293 char* TCoordArrays[3];
294 int TCoordArrayComponents[3];
296 int TCoordNormalize[3];
301 vtkIdType componentRange[4][2],
char* arrays[4],
int arrayComponents[4],
int normalize[4],
304 vtkIdType componentRange[3][2],
char* arrays[3],
int arrayComponents[3],
int normalize[3]);
306 vtkIdType componentRange[2],
char* array,
int arrayComponent,
int normalize);
308 vtkIdType componentRange[3][2],
char* arrays[3],
int arrayComponents[3],
int normalize[3]);
310 vtkIdType componentRange[3][2],
char* arrays[3],
int arrayComponents[3],
int normalize[3],
313 vtkIdType componentRange[9][2],
char* arrays[9],
int arrayComponents[9],
int normalize[9]);
321 VTK_ABI_NAMESPACE_END
int NumberOfScalarComponents
#define VTK_POINT_DATA_FIELD
abstract base class for most VTK objects
void SetTCoordComponent(int comp, const char *arrayName, int arrayComp)
Define the components of the field to be used for the cell texture coord components.
int GhostLevelArrayComponent
void SetVectorComponent(int comp, const char *arrayName, int arrayComp)
Define the component(s) of the field to be used for the vector components.
map field data to dataset attribute data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetInputFieldToCellDataField()
Specify which field data to use to generate the output attribute data.
a simple class to control print indentation
void SetOutputAttributeDataToPointData()
Specify which attribute data to output: point or cell data attributes.
void SetScalarComponent(int comp, const char *arrayName, int arrayComp)
Define the component(s) of the field to be used for the scalar components.
abstract superclass for arrays of numeric data
vtkTypeBool DefaultNormalize
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
represent and manipulate attribute data in a dataset
void SetInputFieldToPointDataField()
Specify which field data to use to generate the output attribute data.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
void SetNormalComponent(int comp, const char *arrayName, int arrayComp)
Define the component(s) of the field to be used for the normal components.
#define VTK_DATA_OBJECT_FIELD
void SetTensorComponent(int comp, const char *arrayName, int arrayComp)
Define the components of the field to be used for the tensor components.
void SetOutputAttributeDataToCellData()
Specify which attribute data to output: point or cell data attributes.
int NumberOfTCoordComponents
Superclass for algorithms that produce output of the same type as input.
void SetInputFieldToDataObjectField()
Specify which field data to use to generate the output attribute data.
#define VTK_CELL_DATA_FIELD
static vtkDataSetAlgorithm * New()
Represents and manipulates a collection of data arrays.