VTK
|
Reslice and produce color scalars. More...
#include <vtkImageResliceToColors.h>
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.
Definition at line 42 of file vtkImageResliceToColors.h.
Reimplemented from vtkImageReslice.
Definition at line 46 of file vtkImageResliceToColors.h.
vtkImageResliceToColors::vtkImageResliceToColors | ( | ) | [protected] |
vtkImageResliceToColors::~vtkImageResliceToColors | ( | ) | [protected] |
static vtkImageResliceToColors* vtkImageResliceToColors::New | ( | ) | [static] |
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.
static vtkImageResliceToColors* vtkImageResliceToColors::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
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.
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 64 of file vtkImageResliceToColors.h.
void vtkImageResliceToColors::SetOutputFormatToRGB | ( | ) | [inline] |
Set the output format, the default is RGBA.
Definition at line 66 of file vtkImageResliceToColors.h.
void vtkImageResliceToColors::SetOutputFormatToLuminanceAlpha | ( | ) | [inline] |
Set the output format, the default is RGBA.
Definition at line 68 of file vtkImageResliceToColors.h.
void vtkImageResliceToColors::SetOutputFormatToLuminance | ( | ) | [inline] |
Set the output format, the default is RGBA.
Definition at line 70 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 79 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 80 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 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.
vtkScalarsToColors* vtkImageResliceToColors::LookupTable [protected] |
Definition at line 92 of file vtkImageResliceToColors.h.
Definition at line 93 of file vtkImageResliceToColors.h.
int vtkImageResliceToColors::OutputFormat [protected] |
Definition at line 94 of file vtkImageResliceToColors.h.
int vtkImageResliceToColors::Bypass [protected] |
Definition at line 95 of file vtkImageResliceToColors.h.