VTK
|
Labels a field as an attribute. More...
#include <vtkAssignAttribute.h>
Inherits vtkPassInputTypeAlgorithm.
Public Types | |
enum | AttributeLocation { POINT_DATA =0, CELL_DATA =1, VERTEX_DATA =2, EDGE_DATA =3, NUM_ATTRIBUTE_LOCS } |
typedef vtkPassInputTypeAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkAssignAttribute * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | Assign (int inputAttributeType, int attributeType, int attributeLoc) |
void | Assign (const char *fieldName, int attributeType, int attributeLoc) |
void | Assign (const char *name, const char *attributeType, const char *attributeLoc) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkAssignAttribute * | SafeDownCast (vtkObjectBase *o) |
static vtkAssignAttribute * | New () |
Protected Types | |
enum | FieldType { NAME, ATTRIBUTE } |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkAssignAttribute () | |
virtual | ~vtkAssignAttribute () |
int | RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
int | FillInputPortInformation (int, vtkInformation *) |
Protected Attributes | |
char * | FieldName |
int | FieldTypeAssignment |
int | AttributeType |
int | InputAttributeType |
int | AttributeLocationAssignment |
Static Protected Attributes | |
static char | AttributeLocationNames [vtkAssignAttribute::NUM_ATTRIBUTE_LOCS][12] |
static char | AttributeNames [vtkDataSetAttributes::NUM_ATTRIBUTES][20] |
Labels a field as an attribute.
vtkAssignAttribute is use to label a field (vtkDataArray) as an attribute. A field name or an attribute to labeled can be specified. For example:
aa->Assign("foo", vtkDataSetAttributes::SCALARS, vtkAssignAttribute::POINT_DATA);
tells vtkAssignAttribute to make the array in the point data called "foo" the active scalars. On the other hand,
aa->Assign(vtkDataSetAttributes::VECTORS, vtkDataSetAttributes::SCALARS, vtkAssignAttribute::POINT_DATA);
tells vtkAssignAttribute to make the active vectors also the active scalars. The same can be done more easily from Tcl by using the Assign() method which takes strings:
aa Assign "foo" SCALARS POINT_DATA or aa Assign SCALARS VECTORS POINT_DATA AttributeTypes: SCALARS, VECTORS, NORMALS, TCOORDS, TENSORS Attribute locations: POINT_DATA, CELL_DATA
Definition at line 72 of file vtkAssignAttribute.h.
typedef vtkPassInputTypeAlgorithm vtkAssignAttribute::Superclass |
Definition at line 75 of file vtkAssignAttribute.h.
Enumerator | |
---|---|
POINT_DATA | |
CELL_DATA | |
VERTEX_DATA | |
EDGE_DATA | |
NUM_ATTRIBUTE_LOCS |
Definition at line 97 of file vtkAssignAttribute.h.
|
protected |
Enumerator | |
---|---|
NAME | |
ATTRIBUTE |
Definition at line 110 of file vtkAssignAttribute.h.
|
protected |
|
protectedvirtual |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkAssignAttribute* vtkAssignAttribute::NewInstance | ( | ) | const |
void vtkAssignAttribute::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
static |
Create a new vtkAssignAttribute.
void vtkAssignAttribute::Assign | ( | int | inputAttributeType, |
int | attributeType, | ||
int | attributeLoc | ||
) |
Label an attribute as another attribute.
void vtkAssignAttribute::Assign | ( | const char * | fieldName, |
int | attributeType, | ||
int | attributeLoc | ||
) |
Label an array as an attribute.
void vtkAssignAttribute::Assign | ( | const char * | name, |
const char * | attributeType, | ||
const char * | attributeLoc | ||
) |
Helper method used by other language bindings. Allows the caller to specify arguments as strings instead of enums.
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 124 of file vtkAssignAttribute.h.
|
protected |
Definition at line 125 of file vtkAssignAttribute.h.
|
protected |
Definition at line 126 of file vtkAssignAttribute.h.
|
protected |
Definition at line 127 of file vtkAssignAttribute.h.
|
protected |
Definition at line 128 of file vtkAssignAttribute.h.
|
staticprotected |
Definition at line 130 of file vtkAssignAttribute.h.
|
staticprotected |
Definition at line 131 of file vtkAssignAttribute.h.