VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkImageMapToColors Class Reference

map the input image through a lookup table More...

#include <vtkImageMapToColors.h>

Inheritance diagram for vtkImageMapToColors:
Inheritance graph
[legend]
Collaboration diagram for vtkImageMapToColors:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkThreadedImageAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkImageMapToColorsNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual unsigned long GetMTime ()
virtual void SetLookupTable (vtkScalarsToColors *)
virtual vtkScalarsToColorsGetLookupTable ()
virtual void SetOutputFormat (int)
virtual int GetOutputFormat ()
void SetOutputFormatToRGBA ()
void SetOutputFormatToRGB ()
void SetOutputFormatToLuminanceAlpha ()
void SetOutputFormatToLuminance ()
virtual void SetActiveComponent (int)
virtual int GetActiveComponent ()
virtual void SetPassAlphaToOutput (int)
virtual void PassAlphaToOutputOn ()
virtual void PassAlphaToOutputOff ()
virtual int GetPassAlphaToOutput ()

Static Public Member Functions

static vtkImageMapToColorsNew ()
static int IsTypeOf (const char *type)
static vtkImageMapToColorsSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkImageMapToColors ()
 ~vtkImageMapToColors ()
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void ThreadedRequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int id)
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)

Protected Attributes

vtkScalarsToColorsLookupTable
int OutputFormat
int ActiveComponent
int PassAlphaToOutput
int DataWasPassed

Detailed Description

map the input image through a lookup table

The vtkImageMapToColors filter will take an input image of any valid scalar type, and map the first component of the image through a lookup table. The result is an image of type VTK_UNSIGNED_CHAR. If the lookup table is not set, or is set to NULL, then the input data will be passed through if it is already of type VTK_UNSIGNED_CHAR.

See also:
vtkLookupTable vtkScalarsToColors
Examples:
vtkImageMapToColors (Examples)
Tests:
vtkImageMapToColors (Tests)

Definition at line 43 of file vtkImageMapToColors.h.


Member Typedef Documentation

Reimplemented from vtkThreadedImageAlgorithm.

Reimplemented in vtkImageMapToWindowLevelColors, and vtkImageMapToRGBA.

Definition at line 47 of file vtkImageMapToColors.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkAlgorithm.

Reimplemented in vtkImageMapToWindowLevelColors, and vtkImageMapToRGBA.

static int vtkImageMapToColors::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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkThreadedImageAlgorithm.

Reimplemented in vtkImageMapToWindowLevelColors, and vtkImageMapToRGBA.

virtual int vtkImageMapToColors::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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkThreadedImageAlgorithm.

Reimplemented in vtkImageMapToWindowLevelColors, and vtkImageMapToRGBA.

virtual vtkObjectBase* vtkImageMapToColors::NewInstanceInternal ( ) const [protected, virtual]
void vtkImageMapToColors::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 vtkThreadedImageAlgorithm.

Reimplemented in vtkImageMapToWindowLevelColors.

Set the lookup table.

Set the lookup table.

virtual void vtkImageMapToColors::SetOutputFormat ( int  ) [virtual]

Set the output format, the default is RGBA.

Set the output format, the default is RGBA.

Set the output format, the default is RGBA.

Definition at line 60 of file vtkImageMapToColors.h.

Set the output format, the default is RGBA.

Definition at line 61 of file vtkImageMapToColors.h.

Set the output format, the default is RGBA.

Definition at line 62 of file vtkImageMapToColors.h.

Set the output format, the default is RGBA.

Definition at line 63 of file vtkImageMapToColors.h.

virtual void vtkImageMapToColors::SetActiveComponent ( int  ) [virtual]

Set the component to map for multi-component images (default: 0)

Set the component to map for multi-component images (default: 0)

virtual void vtkImageMapToColors::SetPassAlphaToOutput ( int  ) [virtual]

Use the alpha component of the input when computing the alpha component of the output (useful when converting monochrome+alpha data to RGBA)

virtual void vtkImageMapToColors::PassAlphaToOutputOn ( ) [virtual]

Use the alpha component of the input when computing the alpha component of the output (useful when converting monochrome+alpha data to RGBA)

virtual void vtkImageMapToColors::PassAlphaToOutputOff ( ) [virtual]

Use the alpha component of the input when computing the alpha component of the output (useful when converting monochrome+alpha data to RGBA)

Use the alpha component of the input when computing the alpha component of the output (useful when converting monochrome+alpha data to RGBA)

virtual unsigned long vtkImageMapToColors::GetMTime ( ) [virtual]

We need to check the modified time of the lookup table too.

Reimplemented from vtkObject.

virtual int vtkImageMapToColors::RequestInformation ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

Subclasses can reimplement this method to collect information from their inputs and set information for their outputs.

Reimplemented from vtkImageAlgorithm.

Reimplemented in vtkImageMapToWindowLevelColors.

void vtkImageMapToColors::ThreadedRequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector,
vtkImageData ***  inData,
vtkImageData **  outData,
int  extent[6],
int  threadId 
) [protected, virtual]

If the subclass does not define an Execute method, then the task will be broken up, multiple threads will be spawned, and each thread will call this method. It is public so that the thread functions can call this method.

Reimplemented from vtkThreadedImageAlgorithm.

Reimplemented in vtkImageMapToWindowLevelColors.

virtual int vtkImageMapToColors::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkThreadedImageAlgorithm.

Reimplemented in vtkImageMapToWindowLevelColors.


Member Data Documentation

Definition at line 100 of file vtkImageMapToColors.h.

Definition at line 101 of file vtkImageMapToColors.h.

Definition at line 103 of file vtkImageMapToColors.h.

Definition at line 104 of file vtkImageMapToColors.h.

Definition at line 106 of file vtkImageMapToColors.h.


The documentation for this class was generated from the following file: