Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

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 Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetLookupTable (vtkScalarsToColors *)
virtual vtkScalarsToColorsGetLookupTable ()
virtual void SetOutputFormat (int)
virtual int GetOutputFormat ()
void SetOutputFormatToRGBA ()
void SetOutputFormatToRGB ()
void SetOutputFormatToLuminanceAlpha ()
void SetOutputFormatToLuminance ()
unsigned long GetMTime ()
void UpdateData (vtkDataObject *output)

Static Public Methods

vtkImageMapToColors * New ()
int IsTypeOf (const char *type)
vtkImageMapToColors * SafeDownCast (vtkObject *o)

Protected Methods

 vtkImageMapToColors ()
 ~vtkImageMapToColors ()
 vtkImageMapToColors (const vtkImageMapToColors &)
void operator= (const vtkImageMapToColors &)
void ExecuteInformation (vtkImageData *inData, vtkImageData *outData)
void ExecuteInformation ()
void ThreadedExecute (vtkImageData *inData, vtkImageData *outData, int extent[6], int id)

Protected Attributes

vtkScalarsToColorsLookupTable
int OutputFormat
int DataWasPassed

Detailed Description

map the input image through a lookup table.

Date:
2000/12/10 20:09:08
Revision:
1.10
Thanks:
Thanks to David G. Gobbi who developed this class.
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 UNSIGNED_CHAR.

See also:
vtkLookupTable vtkScalarsToColors
Examples:
vtkImageMapToColors (examples)


Member Function Documentation

virtual const char* vtkImageMapToColors::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageToImageFilter.

Reimplemented in vtkImageMapToRGBA.

unsigned long vtkImageMapToColors::GetMTime   [virtual]
 

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

Reimplemented from vtkObject.

virtual int vtkImageMapToColors::IsA const char *    type [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 vtkImageToImageFilter.

Reimplemented in vtkImageMapToRGBA.

int vtkImageMapToColors::IsTypeOf const char *    type [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 vtkImageToImageFilter.

Reimplemented in vtkImageMapToRGBA.

vtkImageMapToColors* vtkImageMapToColors::New   [static]
 

Instantiate object with no start, end, or progress methods.

Reimplemented from vtkImageToImageFilter.

Reimplemented in vtkImageMapToRGBA.

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 vtkImageToImageFilter.

Reimplemented in vtkImageMapToWindowLevelColors.

vtkImageMapToColors* vtkImageMapToColors::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageToImageFilter.

Reimplemented in vtkImageMapToRGBA.

virtual void vtkImageMapToColors::SetLookupTable vtkScalarsToColors   [virtual]
 

Set the lookup table.

virtual void vtkImageMapToColors::SetOutputFormat int    [virtual]
 

Set the output format, the default is RGBA.

void vtkImageMapToColors::ThreadedExecute vtkImageData   inData,
vtkImageData   outData,
int    extent[6],
int    id
[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 vtkImageToImageFilter.

Reimplemented in vtkImageMapToWindowLevelColors.


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:26:35 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002