Section: Visualization Toolkit Imaging Classes
To create an instance of class vtkImageMapToColors, simply invoke its constructor as follows
obj = vtkImageMapToColors
obj is an instance of the vtkImageMapToColors class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkImageMapToColors = obj.NewInstance ()
vtkImageMapToColors = obj.SafeDownCast (vtkObject o)
obj.SetLookupTable (vtkScalarsToColors ) - Set the lookup table.
vtkScalarsToColors = obj.GetLookupTable () - Set the lookup table.
obj.SetOutputFormat (int ) - Set the output format, the default is RGBA.
int = obj.GetOutputFormat () - Set the output format, the default is RGBA.
obj.SetOutputFormatToRGBA () - Set the output format, the default is RGBA.
obj.SetOutputFormatToRGB () - Set the output format, the default is RGBA.
obj.SetOutputFormatToLuminanceAlpha () - Set the output format, the default is RGBA.
obj.SetOutputFormatToLuminance () - Set the output format, the default is RGBA.
obj.SetActiveComponent (int ) - Set the component to map for multi-component images (default: 0)
int = obj.GetActiveComponent () - Set the component to map for multi-component images (default: 0)
obj.SetPassAlphaToOutput (int ) - Use the alpha component of the input when computing the alpha component
of the output (useful when converting monochrome+alpha data to RGBA)
obj.PassAlphaToOutputOn () - Use the alpha component of the input when computing the alpha component
of the output (useful when converting monochrome+alpha data to RGBA)
obj.PassAlphaToOutputOff () - Use the alpha component of the input when computing the alpha component
of the output (useful when converting monochrome+alpha data to RGBA)
int = obj.GetPassAlphaToOutput () - Use the alpha component of the input when computing the alpha component
of the output (useful when converting monochrome+alpha data to RGBA)
long = obj.GetMTime () - We need to check the modified time of the lookup table too.