58#ifndef vtkFieldDataToAttributeDataFilter_h
59#define vtkFieldDataToAttributeDataFilter_h
61#include "vtkFiltersCoreModule.h"
64#define VTK_DATA_OBJECT_FIELD 0
65#define VTK_POINT_DATA_FIELD 1
66#define VTK_CELL_DATA_FIELD 2
68#define VTK_CELL_DATA 0
69#define VTK_POINT_DATA 1
95 vtkGetMacro(InputField,
int);
109 vtkGetMacro(OutputAttributeData,
int);
125 int min,
int max,
int normalize);
127 {this->SetScalarComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
144 int min,
int max,
int normalize);
146 {this->SetVectorComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
163 int min,
int max,
int normalize);
165 {this->SetNormalComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
182 int min,
int max,
int normalize);
184 {this->SetTensorComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
201 int min,
int max,
int normalize);
203 {this->SetTCoordComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
217 vtkGetMacro(DefaultNormalize,
int);
268 int OutputAttributeData;
270 int NumberOfScalarComponents;
271 char *ScalarArrays[4];
272 int ScalarArrayComponents[4];
274 int ScalarNormalize[4];
276 char *VectorArrays[3];
277 int VectorArrayComponents[3];
279 int VectorNormalize[3];
281 char *GhostLevelArray;
282 int GhostLevelArrayComponent;
284 int GhostLevelNormalize;
286 char *NormalArrays[3];
287 int NormalArrayComponents[3];
289 int NormalNormalize[3];
291 char *TensorArrays[9];
292 int TensorArrayComponents[9];
294 int TensorNormalize[9];
296 int NumberOfTCoordComponents;
297 char *TCoordArrays[3];
298 int TCoordArrayComponents[3];
300 int TCoordNormalize[3];
302 int DefaultNormalize;
305 vtkIdType componentRange[4][2],
char *arrays[4],
306 int arrayComponents[4],
int normalize[4],
int numComp);
308 vtkIdType componentRange[3][2],
char *arrays[3],
309 int arrayComponents[3],
int normalize[3]);
313 char *array,
int arrayComponent,
int normalize);
315 vtkIdType componentRange[3][2],
char *arrays[3],
316 int arrayComponents[3],
int normalize[3]);
318 vtkIdType componentRange[3][2],
char *arrays[3],
319 int arrayComponents[3],
int normalize[3],
int numComp);
321 vtkIdType componentRange[9][2],
char *arrays[9],
322 int arrayComponents[9],
int normalize[9]);
abstract superclass for arrays of numeric data
Superclass for algorithms that produce output of the same type as input.
represent and manipulate attribute data in a dataset
map field data to dataset attribute data
void SetOutputAttributeDataToPointData()
static int GetComponentsType(int numComp, vtkDataArray **arrays)
Given an array of names of arrays in field data, return the common type for these arrays.
int GetNormalComponentMinRange(int comp)
void SetOutputAttributeDataToCellData()
static vtkFieldDataToAttributeDataFilter * New()
Construct object with input field set to the data object field, and the output attribute data set to ...
void SetInputFieldToCellDataField()
int GetTensorComponentMaxRange(int comp)
int GetNormalComponentMaxRange(int comp)
void SetTensorComponent(int comp, const char *arrayName, int arrayComp)
const char * GetTCoordComponentArrayName(int comp)
static int UpdateComponentRange(vtkDataArray *da, vtkIdType compRange[2])
Update the maximum and minimum component range values.
static void SetArrayName(vtkObject *self, char *&name, const char *newName)
Specify an array name for one of the components.
const char * GetVectorComponentArrayName(int comp)
const char * GetScalarComponentArrayName(int comp)
const char * GetNormalComponentArrayName(int comp)
void SetInputFieldToDataObjectField()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetTCoordComponentArrayComponent(int comp)
static int ConstructArray(vtkDataArray *da, int comp, vtkDataArray *frray, int fieldComp, vtkIdType min, vtkIdType max, int normalize)
Construct a portion of a data array (the comp portion) from another data array and its component.
void SetNormalComponent(int comp, const char *arrayName, int arrayComp)
int GetTCoordComponentMaxRange(int comp)
static vtkDataArray * GetFieldArray(vtkFieldData *fd, char *name, int comp)
Return an array of a particular name from field data and do error checking.
int GetTensorComponentMinRange(int comp)
int GetVectorComponentArrayComponent(int comp)
int GetTensorComponentNormalizeFlag(int comp)
int GetScalarComponentMinRange(int comp)
void SetVectorComponent(int comp, const char *arrayName, int arrayComp, int min, int max, int normalize)
Define the component(s) of the field to be used for the vector components.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
If output does not need exact extent, the I do not either.
int GetVectorComponentMaxRange(int comp)
vtkFieldDataToAttributeDataFilter()
const char * GetTensorComponentArrayName(int comp)
int GetTensorComponentArrayComponent(int comp)
void SetTCoordComponent(int comp, const char *arrayName, int arrayComp)
void SetScalarComponent(int comp, const char *arrayName, int arrayComp, int min, int max, int normalize)
Define the component(s) of the field to be used for the scalar components.
int GetTCoordComponentMinRange(int comp)
void SetTCoordComponent(int comp, const char *arrayName, int arrayComp, int min, int max, int normalize)
Define the components of the field to be used for the cell texture coord components.
void SetVectorComponent(int comp, const char *arrayName, int arrayComp)
int GetScalarComponentMaxRange(int comp)
~vtkFieldDataToAttributeDataFilter() override
void SetScalarComponent(int comp, const char *arrayName, int arrayComp)
void SetTensorComponent(int comp, const char *arrayName, int arrayComp, int min, int max, int normalize)
Define the components of the field to be used for the tensor components.
int GetNormalComponentArrayComponent(int comp)
int GetScalarComponentArrayComponent(int comp)
int GetTCoordComponentNormalizeFlag(int comp)
int GetVectorComponentMinRange(int comp)
int GetNormalComponentNormalizeFlag(int comp)
void SetInputFieldToPointDataField()
void SetNormalComponent(int comp, const char *arrayName, int arrayComp, int min, int max, int normalize)
Define the component(s) of the field to be used for the normal components.
int GetScalarComponentNormalizeFlag(int comp)
int GetVectorComponentNormalizeFlag(int comp)
represent and manipulate fields of data
a simple class to control print indentation
abstract base class for most VTK objects
#define VTK_POINT_DATA_FIELD
#define VTK_CELL_DATA_FIELD
#define VTK_DATA_OBJECT_FIELD
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.