vtkAssignAttribute

Section: Visualization Toolkit Graphics Classes

Usage

vtkAssignAttribute is use to label a field (vtkDataArray) as an attribute. A field name or an attribute to labeled can be specified. For example: @verbatim aa->Assign("foo", vtkDataSetAttributes::SCALARS, vtkAssignAttribute::POINT_DATA); @endverbatim tells vtkAssignAttribute to make the array in the point data called "foo" the active scalars. On the other hand, @verbatim aa->Assign(vtkDataSetAttributes::VECTORS, vtkDataSetAttributes::SCALARS, vtkAssignAttribute::POINT_DATA); @endverbatim 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: @verbatim 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 @endverbatim

To create an instance of class vtkAssignAttribute, simply invoke its constructor as follows

  obj = vtkAssignAttribute

Methods

The class vtkAssignAttribute has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, obj is an instance of the vtkAssignAttribute class.