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

vtkTransformToGrid Class Reference

create a grid for a vtkGridTransform. More...

#include <vtkTransformToGrid.h>

Inheritance diagram for vtkTransformToGrid:

Inheritance graph
[legend]
Collaboration diagram for vtkTransformToGrid:

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 SetInput (vtkAbstractTransform *)
virtual vtkAbstractTransformGetInput ()
virtual void SetGridExtent (int, int, int, int, int, int)
virtual void SetGridExtent (int[6])
virtual int * GetGridExtent ()
virtual void GetGridExtent (int &, int &, int &, int &, int &, int &)
virtual void GetGridExtent (int[6])
virtual void SetGridOrigin (float, float, float)
virtual void SetGridOrigin (float[3])
virtual float * GetGridOrigin ()
virtual void GetGridOrigin (float &, float &, float &)
virtual void GetGridOrigin (float[3])
virtual void SetGridSpacing (float, float, float)
virtual void SetGridSpacing (float[3])
virtual float * GetGridSpacing ()
virtual void GetGridSpacing (float &, float &, float &)
virtual void GetGridSpacing (float[3])
virtual void SetGridScalarType (int)
virtual int GetGridScalarType ()
void SetGridScalarTypeToFloat ()
void SetGridScalarTypeToShort ()
void SetGridScalarTypeToUnsignedShort ()
void SetGridScalarTypeToUnsignedChar ()
void SetGridScalarTypeToChar ()
float GetDisplacementScale ()
float GetDisplacementShift ()

Static Public Methods

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

Protected Methods

 vtkTransformToGrid ()
 ~vtkTransformToGrid ()
 vtkTransformToGrid (const vtkTransformToGrid &)
void operator= (const vtkTransformToGrid &)
void ExecuteInformation ()
void Execute (vtkImageData *data)
void Execute ()
void UpdateShiftScale ()
unsigned long GetMTime ()

Protected Attributes

vtkAbstractTransformInput
int GridScalarType
int GridExtent [6]
float GridOrigin [3]
float GridSpacing [3]
float DisplacementScale
float DisplacementShift
vtkTimeStamp ShiftScaleTime

Detailed Description

create a grid for a vtkGridTransform.

Date:
2000/12/10 20:08:27
Revision:
1.3
Thanks:
Thanks to David G. Gobbi who developed this class.
vtkTransformToGrid takes any transform as input and produces a grid for use by a vtkGridTransform. This can be used, for example, to invert a grid transform, concatenate two grid transforms, or to convert a thin plate spline transform into a grid transform.
See also:
vtkGridTransform vtkThinPlateSplineTransform vtkAbstractTransform
Examples:
vtkTransformToGrid (examples)

Definition at line 63 of file vtkTransformToGrid.h.


Constructor & Destructor Documentation

vtkTransformToGrid::vtkTransformToGrid   [protected]
 

vtkTransformToGrid::~vtkTransformToGrid   [protected]
 

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

Definition at line 109 of file vtkTransformToGrid.h.


Member Function Documentation

vtkTransformToGrid* vtkTransformToGrid::New   [static]
 

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

Reimplemented from vtkImageSource.

virtual const char* vtkTransformToGrid::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 vtkImageSource.

int vtkTransformToGrid::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 vtkImageSource.

virtual int vtkTransformToGrid::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 vtkImageSource.

vtkTransformToGrid* vtkTransformToGrid::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 vtkImageSource.

void vtkTransformToGrid::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 vtkSource.

virtual void vtkTransformToGrid::SetInput vtkAbstractTransform   [virtual]
 

Set/Get the transform which will be converted into a grid.

virtual vtkAbstractTransform* vtkTransformToGrid::GetInput   [virtual]
 

virtual void vtkTransformToGrid::SetGridExtent int   ,
int   ,
int   ,
int   ,
int   ,
int   
[virtual]
 

Get/Set the extent of the grid.

virtual void vtkTransformToGrid::SetGridExtent int   [6] [virtual]
 

virtual int* vtkTransformToGrid::GetGridExtent   [virtual]
 

virtual void vtkTransformToGrid::GetGridExtent int &   ,
int &   ,
int &   ,
int &   ,
int &   ,
int &   
[virtual]
 

virtual void vtkTransformToGrid::GetGridExtent int   [6] [virtual]
 

virtual void vtkTransformToGrid::SetGridOrigin float   ,
float   ,
float   
[virtual]
 

Get/Set the origin of the grid.

virtual void vtkTransformToGrid::SetGridOrigin float   [3] [virtual]
 

virtual float* vtkTransformToGrid::GetGridOrigin   [virtual]
 

virtual void vtkTransformToGrid::GetGridOrigin float &   ,
float &   ,
float &   
[virtual]
 

virtual void vtkTransformToGrid::GetGridOrigin float   [3] [virtual]
 

virtual void vtkTransformToGrid::SetGridSpacing float   ,
float   ,
float   
[virtual]
 

Get/Set the spacing between samples in the grid.

virtual void vtkTransformToGrid::SetGridSpacing float   [3] [virtual]
 

virtual float* vtkTransformToGrid::GetGridSpacing   [virtual]
 

virtual void vtkTransformToGrid::GetGridSpacing float &   ,
float &   ,
float &   
[virtual]
 

virtual void vtkTransformToGrid::GetGridSpacing float   [3] [virtual]
 

virtual void vtkTransformToGrid::SetGridScalarType int    [virtual]
 

Get/Set the scalar type of the grid. The default is float.

virtual int vtkTransformToGrid::GetGridScalarType   [virtual]
 

void vtkTransformToGrid::SetGridScalarTypeToFloat   [inline]
 

Definition at line 89 of file vtkTransformToGrid.h.

void vtkTransformToGrid::SetGridScalarTypeToShort   [inline]
 

Definition at line 90 of file vtkTransformToGrid.h.

void vtkTransformToGrid::SetGridScalarTypeToUnsignedShort   [inline]
 

Definition at line 91 of file vtkTransformToGrid.h.

void vtkTransformToGrid::SetGridScalarTypeToUnsignedChar   [inline]
 

Definition at line 93 of file vtkTransformToGrid.h.

void vtkTransformToGrid::SetGridScalarTypeToChar   [inline]
 

Definition at line 95 of file vtkTransformToGrid.h.

float vtkTransformToGrid::GetDisplacementScale   [inline]
 

Get the scale and shift to convert integer grid elements into real values: dx = scale*di + shift. If the grid is of float type, then scale = 1 and shift = 0.

Definition at line 101 of file vtkTransformToGrid.h.

float vtkTransformToGrid::GetDisplacementShift   [inline]
 

Definition at line 103 of file vtkTransformToGrid.h.

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

Definition at line 110 of file vtkTransformToGrid.h.

void vtkTransformToGrid::ExecuteInformation   [protected, virtual]
 

Reimplemented from vtkSource.

void vtkTransformToGrid::Execute vtkImageData   data [protected, virtual]
 

Reimplemented from vtkImageSource.

void vtkTransformToGrid::Execute   [inline, protected, virtual]
 

Reimplemented from vtkImageSource.

Definition at line 115 of file vtkTransformToGrid.h.

void vtkTransformToGrid::UpdateShiftScale   [protected]
 

Internal method to calculate the shift and scale values which will provide maximum grid precision for a particular integer type.

unsigned long vtkTransformToGrid::GetMTime   [protected, virtual]
 

Return this object's modified time.

Reimplemented from vtkObject.


Member Data Documentation

vtkAbstractTransform* vtkTransformToGrid::Input [protected]
 

Definition at line 123 of file vtkTransformToGrid.h.

int vtkTransformToGrid::GridScalarType [protected]
 

Definition at line 125 of file vtkTransformToGrid.h.

int vtkTransformToGrid::GridExtent[6] [protected]
 

Definition at line 126 of file vtkTransformToGrid.h.

float vtkTransformToGrid::GridOrigin[3] [protected]
 

Definition at line 127 of file vtkTransformToGrid.h.

float vtkTransformToGrid::GridSpacing[3] [protected]
 

Definition at line 128 of file vtkTransformToGrid.h.

float vtkTransformToGrid::DisplacementScale [protected]
 

Definition at line 130 of file vtkTransformToGrid.h.

float vtkTransformToGrid::DisplacementShift [protected]
 

Definition at line 131 of file vtkTransformToGrid.h.

vtkTimeStamp vtkTransformToGrid::ShiftScaleTime [protected]
 

Definition at line 132 of file vtkTransformToGrid.h.


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