Go to the documentation of this file.
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
94 vtkSetMacro(InputField,
int);
95 vtkGetMacro(InputField,
int);
108 vtkSetMacro(OutputAttributeData,
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);};
271 char *ScalarArrays[4];
272 int ScalarArrayComponents[4];
274 int ScalarNormalize[4];
276 char *VectorArrays[3];
277 int VectorArrayComponents[3];
279 int VectorNormalize[3];
286 char *NormalArrays[3];
287 int NormalArrayComponents[3];
289 int NormalNormalize[3];
291 char *TensorArrays[9];
292 int TensorArrayComponents[9];
294 int TensorNormalize[9];
297 char *TCoordArrays[3];
298 int TCoordArrayComponents[3];
300 int TCoordNormalize[3];
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]);
int GetTensorComponentNormalizeFlag(int comp)
int GetVectorComponentMaxRange(int comp)
int GetNormalComponentArrayComponent(int comp)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
int GetScalarComponentMaxRange(int comp)
map field data to dataset attribute data
void ConstructFieldData(int num, vtkDataSetAttributes *attr)
~vtkFieldDataToAttributeDataFilter() override
void SetInputFieldToDataObjectField()
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
If output does not need exact extent, the I do not either.
int GetScalarComponentNormalizeFlag(int comp)
int GhostLevelArrayComponent
#define VTK_POINT_DATA_FIELD
void ConstructGhostLevels(int num, vtkFieldData *fd, vtkDataSetAttributes *attr, vtkIdType componentRange[2], char *array, int arrayComponent, int normalize)
represent and manipulate attribute data in a dataset
int NumberOfTCoordComponents
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 GetTensorComponentMinRange(int comp)
abstract base class for most VTK objects
int GetScalarComponentMinRange(int comp)
void SetInputFieldToCellDataField()
void ConstructTensors(int num, vtkFieldData *fd, vtkDataSetAttributes *attr, vtkIdType componentRange[9][2], char *arrays[9], int arrayComponents[9], int normalize[9])
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.
void ConstructScalars(int num, vtkFieldData *fd, vtkDataSetAttributes *attr, vtkIdType componentRange[4][2], char *arrays[4], int arrayComponents[4], int normalize[4], int numComp)
int GetTensorComponentMaxRange(int comp)
static int UpdateComponentRange(vtkDataArray *da, vtkIdType compRange[2])
Update the maximum and minimum component range values.
#define VTK_CELL_DATA_FIELD
represent and manipulate fields of data
void ConstructNormals(int num, vtkFieldData *fd, vtkDataSetAttributes *attr, vtkIdType componentRange[3][2], char *arrays[3], int arrayComponents[3], int normalize[3])
Superclass for algorithms that produce output of the same type as input.
void SetTensorComponent(int comp, const char *arrayName, int arrayComp)
static vtkDataArray * GetFieldArray(vtkFieldData *fd, const char *name, int comp)
Return an array of a particular name from field data and do error checking.
void SetOutputAttributeDataToCellData()
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.
void ConstructVectors(int num, vtkFieldData *fd, vtkDataSetAttributes *attr, vtkIdType componentRange[3][2], char *arrays[3], int arrayComponents[3], int normalize[3])
const char * GetNormalComponentArrayName(int comp)
int GetVectorComponentMinRange(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.
int GetTensorComponentArrayComponent(int comp)
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 NumberOfScalarComponents
vtkFieldDataToAttributeDataFilter()
#define VTK_DATA_OBJECT_FIELD
void SetScalarComponent(int comp, const char *arrayName, int arrayComp)
a simple class to control print indentation
int GetVectorComponentArrayComponent(int comp)
const char * GetScalarComponentArrayName(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 SetOutputAttributeDataToPointData()
void SetNormalComponent(int comp, const char *arrayName, int arrayComp)
int GetScalarComponentArrayComponent(int comp)
int GetTCoordComponentArrayComponent(int comp)
static int GetComponentsType(int numComp, vtkDataArray **arrays)
Given an array of names of arrays in field data, return the common type for these arrays.
const char * GetTensorComponentArrayName(int comp)
int GetNormalComponentNormalizeFlag(int comp)
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.
void SetInputFieldToPointDataField()
int GetNormalComponentMinRange(int comp)
int GetTCoordComponentNormalizeFlag(int comp)
void ConstructTCoords(int num, vtkFieldData *fd, vtkDataSetAttributes *attr, vtkIdType componentRange[3][2], char *arrays[3], int arrayComponents[3], int normalize[3], int numComp)
static vtkFieldDataToAttributeDataFilter * New()
Construct object with input field set to the data object field, and the output attribute data set to ...
int GetNormalComponentMaxRange(int comp)
static void SetArrayName(vtkObject *self, char *&name, const char *newName)
Specify an array name for one of the components.
void SetVectorComponent(int comp, const char *arrayName, int arrayComp)
void SetTCoordComponent(int comp, const char *arrayName, int arrayComp)
int GetTCoordComponentMaxRange(int comp)
int GetTCoordComponentMinRange(int comp)
const char * GetTCoordComponentArrayName(int comp)
vtkTypeBool DefaultNormalize
const char * GetVectorComponentArrayName(int comp)
int GetVectorComponentNormalizeFlag(int comp)