Section: Visualization Toolkit Rendering Classes
To create an instance of class vtkScalarsToColorsPainter, simply invoke its constructor as follows
obj = vtkScalarsToColorsPainter
obj
is an instance of the vtkScalarsToColorsPainter class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkScalarsToColorsPainter = obj.NewInstance ()
vtkScalarsToColorsPainter = obj.SafeDownCast (vtkObject o)
obj.SetLookupTable (vtkScalarsToColors lut)
- Specify a lookup table for the mapper to use.
vtkScalarsToColors = obj.GetLookupTable ()
- Specify a lookup table for the mapper to use.
obj.CreateDefaultLookupTable ()
- Create default lookup table. Generally used to create one when none
is available with the scalar data.
int = obj.GetPremultiplyColorsWithAlpha (vtkActor actor)
- For alpha blending, we sometime premultiply the colors
with alpha and change the alpha blending function.
This call returns whether we are premultiplying or using
the default blending function.
Currently this checks if the actor has a texture, if not
it returns true.
TODO: It is possible to make this decision
dependent on key passed down from a painter upstream
that makes a more informed decision for alpha blending
depending on extensions available, for example.
vtkDataObject = obj.GetOutput ()
- Subclasses need to override this to return the output of the pipeline.