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 int IsA (const char *type)
vtkImageResliceToColorsNewInstance () const
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 (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 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 42 of file vtkImageResliceToColors.h.


Member Typedef Documentation

Reimplemented from vtkImageReslice.

Definition at line 46 of file vtkImageResliceToColors.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 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.

Reimplemented from vtkImageReslice.

virtual vtkObjectBase* vtkImageResliceToColors::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkImageReslice.

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.

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.

Set the output format, the default is RGBA.

Set the output format, the default is RGBA.

Definition at line 64 of file vtkImageResliceToColors.h.

Set the output format, the default is RGBA.

Definition at line 66 of file vtkImageResliceToColors.h.

Set the output format, the default is RGBA.

Definition at line 68 of file vtkImageResliceToColors.h.

Set the output format, the default is RGBA.

Definition at line 70 of file vtkImageResliceToColors.h.

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

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.

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.

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 81 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 92 of file vtkImageResliceToColors.h.

Definition at line 93 of file vtkImageResliceToColors.h.

Definition at line 94 of file vtkImageResliceToColors.h.

Definition at line 95 of file vtkImageResliceToColors.h.


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