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

Reslice and produce color scalars. More...

#include <vtkImageResliceToColors.h>

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

List of all members.

Public Types

typedef vtkImageReslice Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
unsigned long int GetMTime ()
virtual void SetLookupTable (vtkScalarsToColors *table)
virtual vtkScalarsToColorsGetLookupTable ()
virtual void SetOutputFormat (int)
virtual int GetOutputFormat ()
void SetOutputFormatToRGBA ()
void SetOutputFormatToRGB ()
void SetOutputFormatToLuminanceAlpha ()
void SetOutputFormatToLuminance ()
void SetBypass (int bypass)
void BypassOn ()
void BypassOff ()
int GetBypass ()

Static Public Member Functions

static vtkImageResliceToColorsNew ()
static int IsTypeOf (const char *type)
static vtkImageResliceToColorsSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkImageResliceToColors ()
 ~vtkImageResliceToColors ()
int ConvertScalarInfo (int &scalarType, int &numComponents)
void ConvertScalars (void *inPtr, void *outPtr, int inputType, int inputNumComponents, int count, int idX, int idY, int idZ, int threadId)

Protected Attributes

vtkScalarsToColorsLookupTable
vtkScalarsToColorsDefaultLookupTable
int OutputFormat
int Bypass

Detailed Description

Reslice and produce color scalars.

vtkImageResliceToColors is an extension of vtkImageReslice that produces color scalars. It should be provided with a lookup table that defines the output colors and the desired range of input values to map to those colors. If the input has multiple components, then you should use the SetVectorMode() method of the lookup table to specify how the vectors will be colored. If no lookup table is provided, then the input must already be color scalars, but they will be converted to the specified output format.

See also:
vtkImageMapToColors
Tests:
vtkImageResliceToColors (Tests)

Definition at line 41 of file vtkImageResliceToColors.h.


Member Typedef Documentation

Reimplemented from vtkImageReslice.

Definition at line 45 of file vtkImageResliceToColors.h.


Constructor & Destructor Documentation

vtkImageResliceToColors::vtkImageResliceToColors ( ) [protected]
vtkImageResliceToColors::~vtkImageResliceToColors ( ) [protected]

Member Function Documentation

static vtkImageResliceToColors* vtkImageResliceToColors::New ( ) [static]

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

Reimplemented from vtkImageReslice.

virtual const char* vtkImageResliceToColors::GetClassName ( ) [virtual]

Reimplemented from vtkImageReslice.

static int vtkImageResliceToColors::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 vtkImageReslice.

virtual int vtkImageResliceToColors::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 vtkImageReslice.

static vtkImageResliceToColors* vtkImageResliceToColors::SafeDownCast ( vtkObject o) [static]

Reimplemented from vtkImageReslice.

virtual void vtkImageResliceToColors::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 vtkImageReslice.

virtual void vtkImageResliceToColors::SetLookupTable ( vtkScalarsToColors table) [virtual]

Set a lookup table to apply to the data. Use the Range, VectorMode, and VectorComponents of the table to control the mapping of the input data to colors. If any output voxel is transformed to a point outside the input volume, then that voxel will be set to the BackgroundColor.

virtual vtkScalarsToColors* vtkImageResliceToColors::GetLookupTable ( ) [virtual]

Set a lookup table to apply to the data. Use the Range, VectorMode, and VectorComponents of the table to control the mapping of the input data to colors. If any output voxel is transformed to a point outside the input volume, then that voxel will be set to the BackgroundColor.

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

Set the output format, the default is RGBA.

virtual int vtkImageResliceToColors::GetOutputFormat ( ) [virtual]

Set the output format, the default is RGBA.

void vtkImageResliceToColors::SetOutputFormatToRGBA ( ) [inline]

Set the output format, the default is RGBA.

Definition at line 63 of file vtkImageResliceToColors.h.

void vtkImageResliceToColors::SetOutputFormatToRGB ( ) [inline]

Set the output format, the default is RGBA.

Definition at line 65 of file vtkImageResliceToColors.h.

void vtkImageResliceToColors::SetOutputFormatToLuminanceAlpha ( ) [inline]

Set the output format, the default is RGBA.

Definition at line 67 of file vtkImageResliceToColors.h.

void vtkImageResliceToColors::SetOutputFormatToLuminance ( ) [inline]

Set the output format, the default is RGBA.

Definition at line 69 of file vtkImageResliceToColors.h.

void vtkImageResliceToColors::SetBypass ( int  bypass)

Bypass the color mapping operation and output the scalar values directly. The output values will be float, rather than the input data type.

void vtkImageResliceToColors::BypassOn ( ) [inline]

Bypass the color mapping operation and output the scalar values directly. The output values will be float, rather than the input data type.

Definition at line 78 of file vtkImageResliceToColors.h.

void vtkImageResliceToColors::BypassOff ( ) [inline]

Bypass the color mapping operation and output the scalar values directly. The output values will be float, rather than the input data type.

Definition at line 79 of file vtkImageResliceToColors.h.

int vtkImageResliceToColors::GetBypass ( ) [inline]

Bypass the color mapping operation and output the scalar values directly. The output values will be float, rather than the input data type.

Definition at line 80 of file vtkImageResliceToColors.h.

unsigned long int vtkImageResliceToColors::GetMTime ( ) [virtual]

When determining the modified time of the filter, this check the modified time of the transform and matrix.

Reimplemented from vtkImageReslice.

int vtkImageResliceToColors::ConvertScalarInfo ( int scalarType,
int numComponents 
) [protected, virtual]

This should be overridden by derived classes that operate on the interpolated data before it is placed in the output.

Reimplemented from vtkImageReslice.

void vtkImageResliceToColors::ConvertScalars ( void *  inPtr,
void *  outPtr,
int  inputType,
int  inputNumComponents,
int  count,
int  idX,
int  idY,
int  idZ,
int  threadId 
) [protected, virtual]

This should be overridden by derived classes that operate on the interpolated data before it is placed in the output. The input data will usually be double or float (since the interpolation routines use floating-point) but it could be of any type. This method will be called from multiple threads, so it must be thread-safe in derived classes.

Reimplemented from vtkImageReslice.


Member Data Documentation

Definition at line 91 of file vtkImageResliceToColors.h.

Definition at line 92 of file vtkImageResliceToColors.h.

Definition at line 93 of file vtkImageResliceToColors.h.

Definition at line 94 of file vtkImageResliceToColors.h.


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