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

map the input image through a lookup table and window / level it More...

#include <vtkImageMapToWindowLevelColors.h>

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

List of all members.

Public Types

typedef vtkImageMapToColors Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkImageMapToWindowLevelColorsNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetWindow (double)
virtual double GetWindow ()
virtual void SetLevel (double)
virtual double GetLevel ()

Static Public Member Functions

static
vtkImageMapToWindowLevelColors
New ()
static int IsTypeOf (const char *type)
static
vtkImageMapToWindowLevelColors
SafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkImageMapToWindowLevelColors ()
 ~vtkImageMapToWindowLevelColors ()
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

double Window
double Level

Detailed Description

map the input image through a lookup table and window / level it

The vtkImageMapToWindowLevelColors filter will take an input image of any valid scalar type, and map the first component of the image through a lookup table. This resulting color will be modulated with value obtained by a window / level operation. 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
Tests:
vtkImageMapToWindowLevelColors (Tests)

Definition at line 40 of file vtkImageMapToWindowLevelColors.h.


Member Typedef Documentation

Reimplemented from vtkImageMapToColors.

Definition at line 44 of file vtkImageMapToWindowLevelColors.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 vtkImageMapToColors.

static int vtkImageMapToWindowLevelColors::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 vtkImageMapToColors.

virtual int vtkImageMapToWindowLevelColors::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 vtkImageMapToColors.

Reimplemented from vtkImageMapToColors.

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

Reimplemented from vtkImageMapToColors.

Reimplemented from vtkImageMapToColors.

void vtkImageMapToWindowLevelColors::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 vtkImageMapToColors.

virtual void vtkImageMapToWindowLevelColors::SetWindow ( double  ) [virtual]

Set / Get the Window to use -> modulation will be performed on the color based on (S - (L - W/2))/W where S is the scalar value, L is the level and W is the window.

Set / Get the Window to use -> modulation will be performed on the color based on (S - (L - W/2))/W where S is the scalar value, L is the level and W is the window.

virtual void vtkImageMapToWindowLevelColors::SetLevel ( double  ) [virtual]

Set / Get the Level to use -> modulation will be performed on the color based on (S - (L - W/2))/W where S is the scalar value, L is the level and W is the window.

Set / Get the Level to use -> modulation will be performed on the color based on (S - (L - W/2))/W where S is the scalar value, L is the level and W is the window.

virtual int vtkImageMapToWindowLevelColors::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 vtkImageMapToColors.

void vtkImageMapToWindowLevelColors::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 vtkImageMapToColors.

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

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

Reimplemented from vtkImageMapToColors.


Member Data Documentation

Definition at line 77 of file vtkImageMapToWindowLevelColors.h.

Definition at line 78 of file vtkImageMapToWindowLevelColors.h.


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