Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkImageMapToWindowLevelColors Class Reference

#include <vtkImageMapToWindowLevelColors.h>

Inheritance diagram for vtkImageMapToWindowLevelColors:

Inheritance graph
[legend]
Collaboration diagram for vtkImageMapToWindowLevelColors:

Collaboration graph
[legend]
List of all members.

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
Created by:
  • Avila, Lisa
CVS contributions (if > 5%):
  • Avila, Lisa (61%)
  • Martin, Ken (28%)
CVS logs (CVSweb):
  • .cxx (/Imaging/vtkImageMapToWindowLevelColors.cxx)
  • .h (/Imaging/vtkImageMapToWindowLevelColors.h)
Tests:
vtkImageMapToWindowLevelColors (Tests)

Definition at line 50 of file vtkImageMapToWindowLevelColors.h.

Public Types

typedef vtkImageMapToColors Superclass

Public Member Functions

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

Static Public Member Functions

vtkImageMapToWindowLevelColorsNew ()
int IsTypeOf (const char *type)
vtkImageMapToWindowLevelColorsSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkImageMapToWindowLevelColors ()
 ~vtkImageMapToWindowLevelColors ()
void ExecuteInformation (vtkImageData *inData, vtkImageData *outData)
void ExecuteInformation ()
void ThreadedExecute (vtkImageData *inData, vtkImageData *outData, int extent[6], int id)
void ExecuteData (vtkDataObject *output)

Protected Attributes

double Window
double Level


Member Typedef Documentation

typedef vtkImageMapToColors vtkImageMapToWindowLevelColors::Superclass
 

Reimplemented from vtkImageMapToColors.

Definition at line 54 of file vtkImageMapToWindowLevelColors.h.


Constructor & Destructor Documentation

vtkImageMapToWindowLevelColors::vtkImageMapToWindowLevelColors  )  [protected]
 

vtkImageMapToWindowLevelColors::~vtkImageMapToWindowLevelColors  )  [protected]
 


Member Function Documentation

vtkImageMapToWindowLevelColors* vtkImageMapToWindowLevelColors::New  )  [static]
 

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

Reimplemented from vtkImageMapToColors.

virtual const char* vtkImageMapToWindowLevelColors::GetClassName  )  [virtual]
 

Reimplemented from vtkImageMapToColors.

int vtkImageMapToWindowLevelColors::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkImageMapToColors.

virtual int vtkImageMapToWindowLevelColors::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkImageMapToColors.

vtkImageMapToWindowLevelColors* vtkImageMapToWindowLevelColors::SafeDownCast vtkObject o  )  [static]
 

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.

virtual double vtkImageMapToWindowLevelColors::GetWindow  )  [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.

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.

virtual double vtkImageMapToWindowLevelColors::GetLevel  )  [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.

void vtkImageMapToWindowLevelColors::ExecuteInformation vtkImageData inData,
vtkImageData outData
[protected, virtual]
 

Reimplemented from vtkImageMapToColors.

void vtkImageMapToWindowLevelColors::ExecuteInformation  )  [inline, protected, virtual]
 

Reimplemented from vtkImageMapToColors.

Definition at line 78 of file vtkImageMapToWindowLevelColors.h.

References vtkImageMapToColors::ExecuteInformation().

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

void vtkImageMapToWindowLevelColors::ExecuteData vtkDataObject output  )  [protected, virtual]
 

This method is the one that should be used by subclasses, right now the default implementation is to call the backwards compatibility method

Reimplemented from vtkImageMapToColors.


Member Data Documentation

double vtkImageMapToWindowLevelColors::Window [protected]
 

Definition at line 83 of file vtkImageMapToWindowLevelColors.h.

double vtkImageMapToWindowLevelColors::Level [protected]
 

Definition at line 84 of file vtkImageMapToWindowLevelColors.h.


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