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
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]);
static vtkDataArray * GetFieldArray(vtkFieldData *fd, char *name, int comp)
Return an array of a particular name from field data and do error checking.
int GetTensorComponentNormalizeFlag(int comp)
int GetVectorComponentMaxRange(int comp)
int GetNormalComponentArrayComponent(int comp)
int GetScalarComponentMaxRange(int comp)
map field data to dataset attribute data
~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)
#define VTK_POINT_DATA_FIELD
represent and manipulate attribute data in a dataset
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()
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.
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
Superclass for algorithms that produce output of the same type as input.
void SetTensorComponent(int comp, const char *arrayName, int arrayComp)
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.
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.
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)
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
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)
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)
const char * GetVectorComponentArrayName(int comp)
int GetVectorComponentNormalizeFlag(int comp)