#include <vtkAssignAttribute.h>
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);
aa->Assign(vtkDataSetAttributes::VECTORS, vtkDataSetAttributes::SCALARS, vtkAssignAttribute::POINT_DATA);
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 68 of file vtkAssignAttribute.h.
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 const char * | GetClassName () |
virtual int | IsA (const char *type) |
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 (vtkObject *o) |
static vtkAssignAttribute * | New () |
Protected Types | |
enum | FieldType { NAME, ATTRIBUTE } |
Protected Member Functions | |
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] |
Definition at line 93 of file vtkAssignAttribute.h.
enum vtkAssignAttribute::FieldType [protected] |
vtkAssignAttribute::vtkAssignAttribute | ( | ) | [protected] |
virtual vtkAssignAttribute::~vtkAssignAttribute | ( | ) | [protected, virtual] |
virtual const char* vtkAssignAttribute::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkPassInputTypeAlgorithm.
static int vtkAssignAttribute::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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkPassInputTypeAlgorithm.
virtual int vtkAssignAttribute::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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkPassInputTypeAlgorithm.
static vtkAssignAttribute* vtkAssignAttribute::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkPassInputTypeAlgorithm.
void vtkAssignAttribute::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 vtkPassInputTypeAlgorithm.
static vtkAssignAttribute* vtkAssignAttribute::New | ( | ) | [static] |
Create a new vtkAssignAttribute.
Reimplemented from vtkPassInputTypeAlgorithm.
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.
int vtkAssignAttribute::RequestInformation | ( | vtkInformation * | , | |
vtkInformationVector ** | , | |||
vtkInformationVector * | ||||
) | [protected, virtual] |
This is called within ProcessRequest when a request asks for Information. Typically an algorithm provides whatever lightweight information about its output that it can here without doing any lengthy computations. This happens in the first pass of the pipeline execution.
Reimplemented from vtkPassInputTypeAlgorithm.
int vtkAssignAttribute::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 vtkPassInputTypeAlgorithm.
int vtkAssignAttribute::FillInputPortInformation | ( | int | port, | |
vtkInformation * | info | |||
) | [protected, virtual] |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkPassInputTypeAlgorithm.
char* vtkAssignAttribute::FieldName [protected] |
Definition at line 120 of file vtkAssignAttribute.h.
int vtkAssignAttribute::FieldTypeAssignment [protected] |
Definition at line 121 of file vtkAssignAttribute.h.
int vtkAssignAttribute::AttributeType [protected] |
Definition at line 122 of file vtkAssignAttribute.h.
int vtkAssignAttribute::InputAttributeType [protected] |
Definition at line 123 of file vtkAssignAttribute.h.
int vtkAssignAttribute::AttributeLocationAssignment [protected] |
Definition at line 124 of file vtkAssignAttribute.h.
char vtkAssignAttribute::AttributeLocationNames[vtkAssignAttribute::NUM_ATTRIBUTE_LOCS][12] [static, protected] |
Definition at line 126 of file vtkAssignAttribute.h.
char vtkAssignAttribute::AttributeNames[vtkDataSetAttributes::NUM_ATTRIBUTES][20] [static, protected] |
Definition at line 127 of file vtkAssignAttribute.h.