VTK
|
map field data to dataset attribute data More...
#include <vtkFieldDataToAttributeDataFilter.h>
map field data to dataset attribute data
vtkFieldDataToAttributeDataFilter is a class that maps field data into dataset attributes. The input to this filter is any type of dataset and the output is the same dataset (geometry/topology) with new attribute data (attribute data is passed through if not replaced during filter execution).
To use this filter you must specify which field data from the input dataset to use. There are three possibilities: the cell field data, the point field data, or the field data associated with the data object superclass. Then you specify which attribute data to create: either cell attribute data or point attribute data. Finally, you must define how to construct the various attribute data types (e.g., scalars, vectors, normals, etc.) from the arrays and the components of the arrays from the field data. This is done by associating components in the input field with components making up the attribute data. For example, you would specify a scalar with three components (RGB) by assigning components from the field for the R, then G, then B values of the scalars. You may also have to specify component ranges (for each R-G-B) to make sure that the number of R, G, and B values is the same. Also, you may want to normalize the components which helps distribute the data uniformly.
This filter is often used in conjunction with vtkDataObjectToDataSetFilter. vtkDataObjectToDataSetFilter filter generates dataset topology and geometry and passes its input field data along to its output. Then this filter is used to generate the attribute data to go along with the dataset.
Definition at line 74 of file vtkFieldDataToAttributeDataFilter.h.
Reimplemented from vtkDataSetAlgorithm.
Definition at line 78 of file vtkFieldDataToAttributeDataFilter.h.
void vtkFieldDataToAttributeDataFilter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkDataSetAlgorithm.
static int vtkFieldDataToAttributeDataFilter::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkDataSetAlgorithm.
virtual int vtkFieldDataToAttributeDataFilter::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkDataSetAlgorithm.
static vtkFieldDataToAttributeDataFilter* vtkFieldDataToAttributeDataFilter::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkDataSetAlgorithm.
virtual vtkObjectBase* vtkFieldDataToAttributeDataFilter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkDataSetAlgorithm.
Reimplemented from vtkDataSetAlgorithm.
static vtkFieldDataToAttributeDataFilter* vtkFieldDataToAttributeDataFilter::New | ( | ) | [static] |
Construct object with input field set to the data object field, and the output attribute data set to generate point data.
Reimplemented from vtkDataSetAlgorithm.
virtual void vtkFieldDataToAttributeDataFilter::SetInputField | ( | int | ) | [virtual] |
Specify which field data to use to generate the output attribute data. There are three choices: the field data associated with the vtkDataObject superclass; the point field attribute data; and the cell field attribute data.
virtual int vtkFieldDataToAttributeDataFilter::GetInputField | ( | ) | [virtual] |
Specify which field data to use to generate the output attribute data. There are three choices: the field data associated with the vtkDataObject superclass; the point field attribute data; and the cell field attribute data.
void vtkFieldDataToAttributeDataFilter::SetInputFieldToDataObjectField | ( | ) | [inline] |
Specify which field data to use to generate the output attribute data. There are three choices: the field data associated with the vtkDataObject superclass; the point field attribute data; and the cell field attribute data.
Definition at line 91 of file vtkFieldDataToAttributeDataFilter.h.
void vtkFieldDataToAttributeDataFilter::SetInputFieldToPointDataField | ( | ) | [inline] |
Specify which field data to use to generate the output attribute data. There are three choices: the field data associated with the vtkDataObject superclass; the point field attribute data; and the cell field attribute data.
Definition at line 93 of file vtkFieldDataToAttributeDataFilter.h.
void vtkFieldDataToAttributeDataFilter::SetInputFieldToCellDataField | ( | ) | [inline] |
Specify which field data to use to generate the output attribute data. There are three choices: the field data associated with the vtkDataObject superclass; the point field attribute data; and the cell field attribute data.
Definition at line 95 of file vtkFieldDataToAttributeDataFilter.h.
virtual void vtkFieldDataToAttributeDataFilter::SetOutputAttributeData | ( | int | ) | [virtual] |
Specify which attribute data to output: point or cell data attributes.
virtual int vtkFieldDataToAttributeDataFilter::GetOutputAttributeData | ( | ) | [virtual] |
Specify which attribute data to output: point or cell data attributes.
void vtkFieldDataToAttributeDataFilter::SetOutputAttributeDataToCellData | ( | ) | [inline] |
Specify which attribute data to output: point or cell data attributes.
Definition at line 104 of file vtkFieldDataToAttributeDataFilter.h.
void vtkFieldDataToAttributeDataFilter::SetOutputAttributeDataToPointData | ( | ) | [inline] |
Specify which attribute data to output: point or cell data attributes.
Definition at line 106 of file vtkFieldDataToAttributeDataFilter.h.
void vtkFieldDataToAttributeDataFilter::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. Note that the parameter comp must lie between (0,4). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
void vtkFieldDataToAttributeDataFilter::SetScalarComponent | ( | int | comp, |
const char * | arrayName, | ||
int | arrayComp | ||
) | [inline] |
Define the component(s) of the field to be used for the scalar components. Note that the parameter comp must lie between (0,4). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Definition at line 118 of file vtkFieldDataToAttributeDataFilter.h.
const char* vtkFieldDataToAttributeDataFilter::GetScalarComponentArrayName | ( | int | comp | ) |
Define the component(s) of the field to be used for the scalar components. Note that the parameter comp must lie between (0,4). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the component(s) of the field to be used for the scalar components. Note that the parameter comp must lie between (0,4). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the component(s) of the field to be used for the scalar components. Note that the parameter comp must lie between (0,4). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the component(s) of the field to be used for the scalar components. Note that the parameter comp must lie between (0,4). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the component(s) of the field to be used for the scalar components. Note that the parameter comp must lie between (0,4). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
void vtkFieldDataToAttributeDataFilter::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. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
void vtkFieldDataToAttributeDataFilter::SetVectorComponent | ( | int | comp, |
const char * | arrayName, | ||
int | arrayComp | ||
) | [inline] |
Define the component(s) of the field to be used for the vector components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Definition at line 135 of file vtkFieldDataToAttributeDataFilter.h.
const char* vtkFieldDataToAttributeDataFilter::GetVectorComponentArrayName | ( | int | comp | ) |
Define the component(s) of the field to be used for the vector components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the component(s) of the field to be used for the vector components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the component(s) of the field to be used for the vector components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the component(s) of the field to be used for the vector components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the component(s) of the field to be used for the vector components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
void vtkFieldDataToAttributeDataFilter::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. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
void vtkFieldDataToAttributeDataFilter::SetNormalComponent | ( | int | comp, |
const char * | arrayName, | ||
int | arrayComp | ||
) | [inline] |
Define the component(s) of the field to be used for the normal components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Definition at line 152 of file vtkFieldDataToAttributeDataFilter.h.
const char* vtkFieldDataToAttributeDataFilter::GetNormalComponentArrayName | ( | int | comp | ) |
Define the component(s) of the field to be used for the normal components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the component(s) of the field to be used for the normal components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the component(s) of the field to be used for the normal components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the component(s) of the field to be used for the normal components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the component(s) of the field to be used for the normal components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
void vtkFieldDataToAttributeDataFilter::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. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
void vtkFieldDataToAttributeDataFilter::SetTensorComponent | ( | int | comp, |
const char * | arrayName, | ||
int | arrayComp | ||
) | [inline] |
Define the components of the field to be used for the tensor components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Definition at line 169 of file vtkFieldDataToAttributeDataFilter.h.
const char* vtkFieldDataToAttributeDataFilter::GetTensorComponentArrayName | ( | int | comp | ) |
Define the components of the field to be used for the tensor components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the components of the field to be used for the tensor components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the components of the field to be used for the tensor components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the components of the field to be used for the tensor components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the components of the field to be used for the tensor components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
void vtkFieldDataToAttributeDataFilter::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. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
void vtkFieldDataToAttributeDataFilter::SetTCoordComponent | ( | int | comp, |
const char * | arrayName, | ||
int | arrayComp | ||
) | [inline] |
Define the components of the field to be used for the cell texture coord components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Definition at line 186 of file vtkFieldDataToAttributeDataFilter.h.
const char* vtkFieldDataToAttributeDataFilter::GetTCoordComponentArrayName | ( | int | comp | ) |
Define the components of the field to be used for the cell texture coord components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the components of the field to be used for the cell texture coord components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the components of the field to be used for the cell texture coord components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the components of the field to be used for the cell texture coord components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
Define the components of the field to be used for the cell texture coord components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.
virtual void vtkFieldDataToAttributeDataFilter::SetDefaultNormalize | ( | int | ) | [virtual] |
Set the default Normalize() flag for those methods setting a default Normalize value (e.g., SetScalarComponents).
virtual int vtkFieldDataToAttributeDataFilter::GetDefaultNormalize | ( | ) | [virtual] |
Set the default Normalize() flag for those methods setting a default Normalize value (e.g., SetScalarComponents).
virtual void vtkFieldDataToAttributeDataFilter::DefaultNormalizeOn | ( | ) | [virtual] |
Set the default Normalize() flag for those methods setting a default Normalize value (e.g., SetScalarComponents).
virtual void vtkFieldDataToAttributeDataFilter::DefaultNormalizeOff | ( | ) | [virtual] |
Set the default Normalize() flag for those methods setting a default Normalize value (e.g., SetScalarComponents).
static int vtkFieldDataToAttributeDataFilter::GetComponentsType | ( | int | numComp, |
vtkDataArray ** | arrays | ||
) | [static] |
Given an array of names of arrays in field data, return the common type for these arrays. For example, if a vector is constructed of the three type (char,int,float), the return type is float.
static int vtkFieldDataToAttributeDataFilter::ConstructArray | ( | vtkDataArray * | da, |
int | comp, | ||
vtkDataArray * | frray, | ||
int | fieldComp, | ||
vtkIdType | min, | ||
vtkIdType | max, | ||
int | normalize | ||
) | [static] |
Construct a portion of a data array (the comp portion) from another data array and its component. The variables min and max control the range of the data to use from the other data array; normalize is a flag that when set will normalize the data between (0,1).
static vtkDataArray* vtkFieldDataToAttributeDataFilter::GetFieldArray | ( | vtkFieldData * | fd, |
char * | name, | ||
int | comp | ||
) | [static] |
Return an array of a particular name from field data and do error checking.
static void vtkFieldDataToAttributeDataFilter::SetArrayName | ( | vtkObject * | self, |
char *& | name, | ||
const char * | newName | ||
) | [static] |
Specify an array name for one of the components.
static int vtkFieldDataToAttributeDataFilter::UpdateComponentRange | ( | vtkDataArray * | da, |
vtkIdType | compRange[2] | ||
) | [static] |
Update the maximum and minimum component range values. Returns a flag indicating whether the range was updated.
virtual int vtkFieldDataToAttributeDataFilter::RequestUpdateExtent | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [virtual] |
If output does not need exact extent, the I do not either.
Reimplemented from vtkDataSetAlgorithm.
virtual int vtkFieldDataToAttributeDataFilter::RequestData | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [protected, virtual] |
This is called within ProcessRequest when a request asks the algorithm to do its work. This is the method you should override to do whatever the algorithm is designed to do. This happens during the fourth pass in the pipeline execution process.
Reimplemented from vtkDataSetAlgorithm.
void vtkFieldDataToAttributeDataFilter::ConstructScalars | ( | int | num, |
vtkFieldData * | fd, | ||
vtkDataSetAttributes * | attr, | ||
vtkIdType | componentRange[4][2], | ||
char * | arrays[4], | ||
int | arrayComponents[4], | ||
int | normalize[4], | ||
int | numComp | ||
) | [protected] |
void vtkFieldDataToAttributeDataFilter::ConstructVectors | ( | int | num, |
vtkFieldData * | fd, | ||
vtkDataSetAttributes * | attr, | ||
vtkIdType | componentRange[3][2], | ||
char * | arrays[3], | ||
int | arrayComponents[3], | ||
int | normalize[3] | ||
) | [protected] |
void vtkFieldDataToAttributeDataFilter::ConstructGhostLevels | ( | int | num, |
vtkFieldData * | fd, | ||
vtkDataSetAttributes * | attr, | ||
vtkIdType | componentRange[2], | ||
char * | array, | ||
int | arrayComponent, | ||
int | normalize | ||
) | [protected] |
void vtkFieldDataToAttributeDataFilter::ConstructNormals | ( | int | num, |
vtkFieldData * | fd, | ||
vtkDataSetAttributes * | attr, | ||
vtkIdType | componentRange[3][2], | ||
char * | arrays[3], | ||
int | arrayComponents[3], | ||
int | normalize[3] | ||
) | [protected] |
void vtkFieldDataToAttributeDataFilter::ConstructTCoords | ( | int | num, |
vtkFieldData * | fd, | ||
vtkDataSetAttributes * | attr, | ||
vtkIdType | componentRange[3][2], | ||
char * | arrays[3], | ||
int | arrayComponents[3], | ||
int | normalize[3], | ||
int | numComp | ||
) | [protected] |
void vtkFieldDataToAttributeDataFilter::ConstructTensors | ( | int | num, |
vtkFieldData * | fd, | ||
vtkDataSetAttributes * | attr, | ||
vtkIdType | componentRange[9][2], | ||
char * | arrays[9], | ||
int | arrayComponents[9], | ||
int | normalize[9] | ||
) | [protected] |
void vtkFieldDataToAttributeDataFilter::ConstructFieldData | ( | int | num, |
vtkDataSetAttributes * | attr | ||
) | [protected] |
int vtkFieldDataToAttributeDataFilter::InputField [protected] |
Definition at line 244 of file vtkFieldDataToAttributeDataFilter.h.
Definition at line 245 of file vtkFieldDataToAttributeDataFilter.h.
Definition at line 247 of file vtkFieldDataToAttributeDataFilter.h.
char* vtkFieldDataToAttributeDataFilter::ScalarArrays[4] [protected] |
Definition at line 248 of file vtkFieldDataToAttributeDataFilter.h.
int vtkFieldDataToAttributeDataFilter::ScalarArrayComponents[4] [protected] |
Definition at line 249 of file vtkFieldDataToAttributeDataFilter.h.
vtkIdType vtkFieldDataToAttributeDataFilter::ScalarComponentRange[4][2] [protected] |
Definition at line 250 of file vtkFieldDataToAttributeDataFilter.h.
int vtkFieldDataToAttributeDataFilter::ScalarNormalize[4] [protected] |
Definition at line 251 of file vtkFieldDataToAttributeDataFilter.h.
char* vtkFieldDataToAttributeDataFilter::VectorArrays[3] [protected] |
Definition at line 253 of file vtkFieldDataToAttributeDataFilter.h.
int vtkFieldDataToAttributeDataFilter::VectorArrayComponents[3] [protected] |
Definition at line 254 of file vtkFieldDataToAttributeDataFilter.h.
vtkIdType vtkFieldDataToAttributeDataFilter::VectorComponentRange[3][2] [protected] |
Definition at line 255 of file vtkFieldDataToAttributeDataFilter.h.
int vtkFieldDataToAttributeDataFilter::VectorNormalize[3] [protected] |
Definition at line 256 of file vtkFieldDataToAttributeDataFilter.h.
char* vtkFieldDataToAttributeDataFilter::GhostLevelArray [protected] |
Definition at line 258 of file vtkFieldDataToAttributeDataFilter.h.
Definition at line 259 of file vtkFieldDataToAttributeDataFilter.h.
Definition at line 260 of file vtkFieldDataToAttributeDataFilter.h.
Definition at line 261 of file vtkFieldDataToAttributeDataFilter.h.
char* vtkFieldDataToAttributeDataFilter::NormalArrays[3] [protected] |
Definition at line 263 of file vtkFieldDataToAttributeDataFilter.h.
int vtkFieldDataToAttributeDataFilter::NormalArrayComponents[3] [protected] |
Definition at line 264 of file vtkFieldDataToAttributeDataFilter.h.
vtkIdType vtkFieldDataToAttributeDataFilter::NormalComponentRange[3][2] [protected] |
Definition at line 265 of file vtkFieldDataToAttributeDataFilter.h.
int vtkFieldDataToAttributeDataFilter::NormalNormalize[3] [protected] |
Definition at line 266 of file vtkFieldDataToAttributeDataFilter.h.
char* vtkFieldDataToAttributeDataFilter::TensorArrays[9] [protected] |
Definition at line 268 of file vtkFieldDataToAttributeDataFilter.h.
int vtkFieldDataToAttributeDataFilter::TensorArrayComponents[9] [protected] |
Definition at line 269 of file vtkFieldDataToAttributeDataFilter.h.
vtkIdType vtkFieldDataToAttributeDataFilter::TensorComponentRange[9][2] [protected] |
Definition at line 270 of file vtkFieldDataToAttributeDataFilter.h.
int vtkFieldDataToAttributeDataFilter::TensorNormalize[9] [protected] |
Definition at line 271 of file vtkFieldDataToAttributeDataFilter.h.
Definition at line 273 of file vtkFieldDataToAttributeDataFilter.h.
char* vtkFieldDataToAttributeDataFilter::TCoordArrays[3] [protected] |
Definition at line 274 of file vtkFieldDataToAttributeDataFilter.h.
int vtkFieldDataToAttributeDataFilter::TCoordArrayComponents[3] [protected] |
Definition at line 275 of file vtkFieldDataToAttributeDataFilter.h.
vtkIdType vtkFieldDataToAttributeDataFilter::TCoordComponentRange[3][2] [protected] |
Definition at line 276 of file vtkFieldDataToAttributeDataFilter.h.
int vtkFieldDataToAttributeDataFilter::TCoordNormalize[3] [protected] |
Definition at line 277 of file vtkFieldDataToAttributeDataFilter.h.
Definition at line 279 of file vtkFieldDataToAttributeDataFilter.h.