Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkImageCast Class Reference

Image Data type Casting Filter. More...

#include <vtkImageCast.h>

Inheritance diagram for vtkImageCast:

Inheritance graph
[legend]
Collaboration diagram for vtkImageCast:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetOutputScalarType (int)
virtual int GetOutputScalarType ()
void SetOutputScalarTypeToFloat ()
void SetOutputScalarTypeToDouble ()
void SetOutputScalarTypeToInt ()
void SetOutputScalarTypeToUnsignedInt ()
void SetOutputScalarTypeToLong ()
void SetOutputScalarTypeToUnsignedLong ()
void SetOutputScalarTypeToShort ()
void SetOutputScalarTypeToUnsignedShort ()
void SetOutputScalarTypeToUnsignedChar ()
void SetOutputScalarTypeToChar ()
virtual void SetClampOverflow (int)
virtual int GetClampOverflow ()
virtual void ClampOverflowOn ()
virtual void ClampOverflowOff ()

Static Public Methods

vtkImageCast * New ()
int IsTypeOf (const char *type)
vtkImageCast * SafeDownCast (vtkObject *o)

Protected Methods

 vtkImageCast ()
 ~vtkImageCast ()
 vtkImageCast (const vtkImageCast &)
void operator= (const vtkImageCast &)
void ExecuteInformation (vtkImageData *inData, vtkImageData *outData)
void UpdateData (vtkDataObject *data)
void ExecuteInformation ()
void ThreadedExecute (vtkImageData *inData, vtkImageData *outData, int ext[6], int id)

Protected Attributes

int ClampOverflow
int OutputScalarType

Detailed Description

Image Data type Casting Filter.

Date:
2000/12/10 20:09:04
Revision:
1.30
Thanks:
Thanks to Abdalmajeid M. Alyassin who developed this class.
vtkImageCast filter casts the input type to match the output type in the image processing pipeline. The filter does nothing if the input already has the correct type. To specify the "CastTo" type, use "SetOutputScalarType" method.

See also:
vtkImageThreshold vtkImageShiftScale
Examples:
vtkImageCast (examples)

Definition at line 64 of file vtkImageCast.h.


Constructor & Destructor Documentation

vtkImageCast::vtkImageCast   [protected]
 

vtkImageCast::~vtkImageCast   [inline, protected]
 

Definition at line 100 of file vtkImageCast.h.

vtkImageCast::vtkImageCast const vtkImageCast &    [inline, protected]
 

Definition at line 101 of file vtkImageCast.h.


Member Function Documentation

vtkImageCast* vtkImageCast::New   [static]
 

Instantiate object with no start, end, or progress methods.

Reimplemented from vtkImageToImageFilter.

virtual const char* vtkImageCast::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageToImageFilter.

int vtkImageCast::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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageToImageFilter.

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

Reimplemented from vtkImageToImageFilter.

vtkImageCast* vtkImageCast::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageToImageFilter.

void vtkImageCast::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 vtkImageToImageFilter.

virtual void vtkImageCast::SetOutputScalarType int    [virtual]
 

Set the desired output scalar type to cast to

virtual int vtkImageCast::GetOutputScalarType   [virtual]
 

void vtkImageCast::SetOutputScalarTypeToFloat   [inline]
 

Definition at line 74 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToDouble   [inline]
 

Definition at line 75 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToInt   [inline]
 

Definition at line 76 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToUnsignedInt   [inline]
 

Definition at line 77 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToLong   [inline]
 

Definition at line 79 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToUnsignedLong   [inline]
 

Definition at line 80 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToShort   [inline]
 

Definition at line 82 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToUnsignedShort   [inline]
 

Definition at line 83 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToUnsignedChar   [inline]
 

Definition at line 85 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToChar   [inline]
 

Definition at line 87 of file vtkImageCast.h.

virtual void vtkImageCast::SetClampOverflow int    [virtual]
 

When the ClampOverflow flag is on, the data is thresholded so that the output value does not exceed the max or min of the data type. By default ClampOverflow is off.

virtual int vtkImageCast::GetClampOverflow   [virtual]
 

virtual void vtkImageCast::ClampOverflowOn   [virtual]
 

virtual void vtkImageCast::ClampOverflowOff   [virtual]
 

void vtkImageCast::operator= const vtkImageCast &    [inline, protected]
 

Definition at line 102 of file vtkImageCast.h.

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

Reimplemented from vtkImageToImageFilter.

void vtkImageCast::UpdateData vtkDataObject   data [protected, virtual]
 

Reimplemented from vtkSource.

void vtkImageCast::ExecuteInformation   [inline, protected, virtual]
 

Reimplemented from vtkImageToImageFilter.

Definition at line 108 of file vtkImageCast.h.

void vtkImageCast::ThreadedExecute vtkImageData   inData,
vtkImageData   outData,
int    ext[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 vtkImageToImageFilter.


Member Data Documentation

int vtkImageCast::ClampOverflow [protected]
 

Definition at line 104 of file vtkImageCast.h.

int vtkImageCast::OutputScalarType [protected]
 

Definition at line 105 of file vtkImageCast.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:48:21 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001