Section: Visualization Toolkit Rendering Classes
To create an instance of class vtkGenericVertexAttributeMapping, simply invoke its constructor as follows
obj = vtkGenericVertexAttributeMapping
obj
is an instance of the vtkGenericVertexAttributeMapping class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkGenericVertexAttributeMapping = obj.NewInstance ()
vtkGenericVertexAttributeMapping = obj.SafeDownCast (vtkObject o)
obj.AddMapping (string attributeName, string arrayName, int fieldAssociation, int component)
- Select a data array from the point/cell data
and map it to a generic vertex attribute.
Note that indices change when a mapping is added/removed.
obj.AddMapping (int unit, string arrayName, int fieldAssociation, int component)
- Select a data array and use it as multitexture texture
coordinates.
Note the texture unit parameter should correspond to the texture
unit set on the texture.
bool = obj.RemoveMapping (string attributeName)
- Remove a vertex attribute mapping.
obj.RemoveAllMappings ()
- Remove all mappings.
int = obj.GetNumberOfMappings ()
- Get number of mapppings.
string = obj.GetAttributeName (int index)
- Get the attribute name at the given index.
string = obj.GetArrayName (int index)
- Get the array name at the given index.
int = obj.GetFieldAssociation (int index)
- Get the field association at the given index.
int = obj.GetComponent (int index)
- Get the component no. at the given index.
int = obj.GetTextureUnit (int index)
- Get the component no. at the given index.