 |
VTK
9.1.0
|
Go to the documentation of this file.
84 #ifndef vtkFieldDataToAttributeDataFilter_h
85 #define vtkFieldDataToAttributeDataFilter_h
88 #include "vtkFiltersCoreModule.h"
90 #define VTK_DATA_OBJECT_FIELD 0
91 #define VTK_POINT_DATA_FIELD 1
92 #define VTK_CELL_DATA_FIELD 2
94 #define VTK_CELL_DATA 0
95 #define VTK_POINT_DATA 1
120 vtkSetMacro(InputField,
int);
121 vtkGetMacro(InputField,
int);
131 vtkSetMacro(OutputAttributeData,
int);
132 vtkGetMacro(OutputAttributeData,
int);
146 int comp,
const char* arrayName,
int arrayComp,
int min,
int max,
int normalize);
149 this->SetScalarComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);
167 int comp,
const char* arrayName,
int arrayComp,
int min,
int max,
int normalize);
170 this->SetVectorComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);
188 int comp,
const char* arrayName,
int arrayComp,
int min,
int max,
int normalize);
191 this->SetNormalComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);
209 int comp,
const char* arrayName,
int arrayComp,
int min,
int max,
int normalize);
212 this->SetTensorComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);
230 int comp,
const char* arrayName,
int arrayComp,
int min,
int max,
int normalize);
233 this->SetTCoordComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);
302 char* ScalarArrays[4];
303 int ScalarArrayComponents[4];
305 int ScalarNormalize[4];
307 char* VectorArrays[3];
308 int VectorArrayComponents[3];
310 int VectorNormalize[3];
317 char* NormalArrays[3];
318 int NormalArrayComponents[3];
320 int NormalNormalize[3];
322 char* TensorArrays[9];
323 int TensorArrayComponents[9];
325 int TensorNormalize[9];
328 char* TCoordArrays[3];
329 int TCoordArrayComponents[3];
331 int TCoordNormalize[3];
336 vtkIdType componentRange[4][2],
char* arrays[4],
int arrayComponents[4],
int normalize[4],
339 vtkIdType componentRange[3][2],
char* arrays[3],
int arrayComponents[3],
int normalize[3]);
341 vtkIdType componentRange[2],
char* array,
int arrayComponent,
int normalize);
343 vtkIdType componentRange[3][2],
char* arrays[3],
int arrayComponents[3],
int normalize[3]);
345 vtkIdType componentRange[3][2],
char* arrays[3],
int arrayComponents[3],
int normalize[3],
348 vtkIdType componentRange[9][2],
char* arrays[9],
int arrayComponents[9],
int normalize[9]);
int GetTensorComponentNormalizeFlag(int comp)
Define the components of the field to be used for the tensor components.
int GetVectorComponentMaxRange(int comp)
Define the component(s) of the field to be used for the vector components.
int GetNormalComponentArrayComponent(int comp)
Define the component(s) of the field to be used for the normal components.
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)
Define the component(s) of the field to be used for the scalar components.
map field data to dataset attribute data
void ConstructFieldData(int num, vtkDataSetAttributes *attr)
~vtkFieldDataToAttributeDataFilter() override
void SetInputFieldToDataObjectField()
Specify which field data to use to generate the output attribute data.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
If output does not need exact extent, the I do not either.
int GetScalarComponentNormalizeFlag(int comp)
Define the component(s) of the field to be used for the scalar components.
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)
Define the components of the field to be used for the tensor components.
abstract base class for most VTK objects
int GetScalarComponentMinRange(int comp)
Define the component(s) of the field to be used for the scalar components.
void SetInputFieldToCellDataField()
Specify which field data to use to generate the output attribute data.
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)
Define the components of the field to be used for the tensor components.
static int UpdateComponentRange(vtkDataArray *da, vtkIdType compRange[2])
Update the maximum and minimum component range values.
static int ConstructArray(vtkDataArray *da, int comp, vtkDataArray *fieldArray, 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.
#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)
Define the components of the field to be used for the tensor components.
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()
Specify which attribute data to output: point or cell data attributes.
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)
Define the component(s) of the field to be used for the normal components.
int GetVectorComponentMinRange(int comp)
Define the component(s) of the field to be used for the vector components.
int GetTensorComponentArrayComponent(int comp)
Define the components of the field to be used for the tensor components.
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)
Define the component(s) of the field to be used for the scalar components.
a simple class to control print indentation
int GetVectorComponentArrayComponent(int comp)
Define the component(s) of the field to be used for the vector components.
const char * GetScalarComponentArrayName(int comp)
Define the component(s) of the field to be used for the scalar components.
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()
Specify which attribute data to output: point or cell data attributes.
void SetNormalComponent(int comp, const char *arrayName, int arrayComp)
Define the component(s) of the field to be used for the normal components.
int GetScalarComponentArrayComponent(int comp)
Define the component(s) of the field to be used for the scalar components.
int GetTCoordComponentArrayComponent(int comp)
Define the components of the field to be used for the cell texture coord components.
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)
Define the components of the field to be used for the tensor components.
int GetNormalComponentNormalizeFlag(int comp)
Define the component(s) of the field to be used for the normal components.
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()
Specify which field data to use to generate the output attribute data.
int GetNormalComponentMinRange(int comp)
Define the component(s) of the field to be used for the normal components.
int GetTCoordComponentNormalizeFlag(int comp)
Define the components of the field to be used for the cell texture coord components.
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)
Define the component(s) of the field to be used for the normal components.
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)
Define the component(s) of the field to be used for the vector components.
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 GetTCoordComponentMaxRange(int comp)
Define the components of the field to be used for the cell texture coord components.
int GetTCoordComponentMinRange(int comp)
Define the components of the field to be used for the cell texture coord components.
const char * GetTCoordComponentArrayName(int comp)
Define the components of the field to be used for the cell texture coord components.
vtkTypeBool DefaultNormalize
const char * GetVectorComponentArrayName(int comp)
Define the component(s) of the field to be used for the vector components.
int GetVectorComponentNormalizeFlag(int comp)
Define the component(s) of the field to be used for the vector components.