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

vtkImageCast Class Reference

#include <vtkImageCast.h>

Inheritance diagram for vtkImageCast:

Inheritance graph
[legend]
Collaboration diagram for vtkImageCast:

Collaboration graph
[legend]
List of all members.

Detailed Description

Image Data type Casting Filter.

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
Created by:
  • Alyassin, Majeid
CVS contributions (if > 5%):
  • Martin, Ken (35%)
  • Alyassin, Majeid (23%)
  • Law, Charles (18%)
  • Lorensen, Bill (10%)
  • Schroeder, Will (5%)
CVS logs (CVSweb):
  • .h (/Imaging/vtkImageCast.h)
  • .cxx (/Imaging/vtkImageCast.cxx)
Examples:
vtkImageCast (Examples)
Tests:
vtkImageCast (Tests)

Definition at line 53 of file vtkImageCast.h.

Public Types

typedef vtkThreadedImageAlgorithm Superclass

Public Member Functions

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 Member Functions

vtkImageCastNew ()
int IsTypeOf (const char *type)
vtkImageCastSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkImageCast ()
 ~vtkImageCast ()
void ExecuteInformation (vtkInformation *, vtkInformationVector *, vtkInformationVector *)
void ThreadedExecute (vtkImageData *inData, vtkImageData *outData, int ext[6], int id)

Protected Attributes

int ClampOverflow
int OutputScalarType


Member Typedef Documentation

typedef vtkThreadedImageAlgorithm vtkImageCast::Superclass
 

Reimplemented from vtkThreadedImageAlgorithm.

Definition at line 57 of file vtkImageCast.h.


Constructor & Destructor Documentation

vtkImageCast::vtkImageCast  )  [protected]
 

vtkImageCast::~vtkImageCast  )  [inline, protected]
 

Definition at line 93 of file vtkImageCast.h.


Member Function Documentation

vtkImageCast* vtkImageCast::New  )  [static]
 

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

Reimplemented from vtkAlgorithm.

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

Reimplemented from vtkThreadedImageAlgorithm.

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

Reimplemented from vtkThreadedImageAlgorithm.

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

Reimplemented from vtkThreadedImageAlgorithm.

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

Reimplemented from vtkThreadedImageAlgorithm.

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 vtkThreadedImageAlgorithm.

virtual void vtkImageCast::SetOutputScalarType int   )  [virtual]
 

Set the desired output scalar type to cast to.

virtual int vtkImageCast::GetOutputScalarType  )  [virtual]
 

Set the desired output scalar type to cast to.

void vtkImageCast::SetOutputScalarTypeToFloat  )  [inline]
 

Set the desired output scalar type to cast to.

Definition at line 64 of file vtkImageCast.h.

References VTK_FLOAT.

void vtkImageCast::SetOutputScalarTypeToDouble  )  [inline]
 

Set the desired output scalar type to cast to.

Definition at line 65 of file vtkImageCast.h.

References VTK_DOUBLE.

void vtkImageCast::SetOutputScalarTypeToInt  )  [inline]
 

Set the desired output scalar type to cast to.

Definition at line 66 of file vtkImageCast.h.

References VTK_INT.

void vtkImageCast::SetOutputScalarTypeToUnsignedInt  )  [inline]
 

Set the desired output scalar type to cast to.

Definition at line 67 of file vtkImageCast.h.

References VTK_UNSIGNED_INT.

void vtkImageCast::SetOutputScalarTypeToLong  )  [inline]
 

Set the desired output scalar type to cast to.

Definition at line 69 of file vtkImageCast.h.

References VTK_LONG.

void vtkImageCast::SetOutputScalarTypeToUnsignedLong  )  [inline]
 

Set the desired output scalar type to cast to.

Definition at line 70 of file vtkImageCast.h.

References VTK_UNSIGNED_LONG.

void vtkImageCast::SetOutputScalarTypeToShort  )  [inline]
 

Set the desired output scalar type to cast to.

Definition at line 72 of file vtkImageCast.h.

References VTK_SHORT.

void vtkImageCast::SetOutputScalarTypeToUnsignedShort  )  [inline]
 

Set the desired output scalar type to cast to.

Definition at line 73 of file vtkImageCast.h.

References VTK_UNSIGNED_SHORT.

void vtkImageCast::SetOutputScalarTypeToUnsignedChar  )  [inline]
 

Set the desired output scalar type to cast to.

Definition at line 75 of file vtkImageCast.h.

References VTK_UNSIGNED_CHAR.

void vtkImageCast::SetOutputScalarTypeToChar  )  [inline]
 

Set the desired output scalar type to cast to.

Definition at line 77 of file vtkImageCast.h.

References VTK_CHAR.

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]
 

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 void vtkImageCast::ClampOverflowOn  )  [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 void vtkImageCast::ClampOverflowOff  )  [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.

void vtkImageCast::ExecuteInformation vtkInformation ,
vtkInformationVector ,
vtkInformationVector
[protected, virtual]
 

Reimplemented from vtkImageAlgorithm.

void vtkImageCast::ThreadedExecute vtkImageData inData,
vtkImageData outData,
int  ext[6],
int  id
[protected, virtual]
 

Reimplemented from vtkThreadedImageAlgorithm.


Member Data Documentation

int vtkImageCast::ClampOverflow [protected]
 

Definition at line 95 of file vtkImageCast.h.

int vtkImageCast::OutputScalarType [protected]
 

Definition at line 96 of file vtkImageCast.h.


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