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

vtkTransformToGrid Class Reference

#include <vtkTransformToGrid.h>

Inheritance diagram for vtkTransformToGrid:

Inheritance graph
[legend]
Collaboration diagram for vtkTransformToGrid:

Collaboration graph
[legend]
List of all members.

Detailed Description

create a grid for a vtkGridTransform

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
Tests:
vtkTransformToGrid (Tests)

Definition at line 36 of file vtkTransformToGrid.h.

Public Types

typedef vtkImageSource Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetInput (vtkAbstractTransform *)
virtual vtkAbstractTransform * GetInput ()
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 (double, double, double)
virtual void SetGridOrigin (double[3])
virtual double * GetGridOrigin ()
virtual void GetGridOrigin (double &, double &, double &)
virtual void GetGridOrigin (double[3])
virtual void SetGridSpacing (double, double, double)
virtual void SetGridSpacing (double[3])
virtual double * GetGridSpacing ()
virtual void GetGridSpacing (double &, double &, double &)
virtual void GetGridSpacing (double[3])
virtual void SetGridScalarType (int)
virtual int GetGridScalarType ()
void SetGridScalarTypeToFloat ()
void SetGridScalarTypeToShort ()
void SetGridScalarTypeToUnsignedShort ()
void SetGridScalarTypeToUnsignedChar ()
void SetGridScalarTypeToChar ()
double GetDisplacementScale ()
double GetDisplacementShift ()

Static Public Member Functions

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

Protected Member Functions

 vtkTransformToGrid ()
 ~vtkTransformToGrid ()
void ExecuteInformation ()
void ExecuteData (vtkDataObject *data)
void UpdateShiftScale ()
unsigned long GetMTime ()

Protected Attributes

vtkAbstractTransform * Input
int GridScalarType
int GridExtent [6]
double GridOrigin [3]
double GridSpacing [3]
double DisplacementScale
double DisplacementShift
vtkTimeStamp ShiftScaleTime


Member Typedef Documentation

typedef vtkImageSource vtkTransformToGrid::Superclass
 

Reimplemented from vtkImageSource.

Definition at line 40 of file vtkTransformToGrid.h.


Constructor & Destructor Documentation

vtkTransformToGrid::vtkTransformToGrid (   )  [protected]
 

vtkTransformToGrid::~vtkTransformToGrid (   )  [protected]
 


Member Function Documentation

static vtkTransformToGrid* vtkTransformToGrid::New (   )  [static]
 

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

Reimplemented from vtkObject.

virtual const char* vtkTransformToGrid::GetClassName (   )  [virtual]
 

Reimplemented from vtkImageSource.

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

Reimplemented from vtkImageSource.

static vtkTransformToGrid* vtkTransformToGrid::SafeDownCast (  vtkObject *  o  )  [static]
 

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

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 (  double  ,
double  ,
double 
)  [virtual]
 

Get/Set the origin of the grid.

virtual void vtkTransformToGrid::SetGridOrigin (  double  [3]  )  [virtual]
 

virtual double* vtkTransformToGrid::GetGridOrigin (   )  [virtual]
 

virtual void vtkTransformToGrid::GetGridOrigin (  double &  ,
double &  ,
double & 
)  [virtual]
 

virtual void vtkTransformToGrid::GetGridOrigin (  double  [3]  )  [virtual]
 

virtual void vtkTransformToGrid::SetGridSpacing (  double  ,
double  ,
double 
)  [virtual]
 

Get/Set the spacing between samples in the grid.

virtual void vtkTransformToGrid::SetGridSpacing (  double  [3]  )  [virtual]
 

virtual double* vtkTransformToGrid::GetGridSpacing (   )  [virtual]
 

virtual void vtkTransformToGrid::GetGridSpacing (  double &  ,
double &  ,
double & 
)  [virtual]
 

virtual void vtkTransformToGrid::GetGridSpacing (  double  [3]  )  [virtual]
 

virtual void vtkTransformToGrid::SetGridScalarType (  int   )  [virtual]
 

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

virtual int vtkTransformToGrid::GetGridScalarType (   )  [virtual]
 

void vtkTransformToGrid::SetGridScalarTypeToFloat (   )  [inline]
 

Definition at line 71 of file vtkTransformToGrid.h.

References VTK_DOUBLE.

void vtkTransformToGrid::SetGridScalarTypeToShort (   )  [inline]
 

Definition at line 72 of file vtkTransformToGrid.h.

References VTK_SHORT.

void vtkTransformToGrid::SetGridScalarTypeToUnsignedShort (   )  [inline]
 

Definition at line 73 of file vtkTransformToGrid.h.

References VTK_UNSIGNED_SHORT.

void vtkTransformToGrid::SetGridScalarTypeToUnsignedChar (   )  [inline]
 

Definition at line 75 of file vtkTransformToGrid.h.

References VTK_UNSIGNED_CHAR.

void vtkTransformToGrid::SetGridScalarTypeToChar (   )  [inline]
 

Definition at line 77 of file vtkTransformToGrid.h.

References VTK_CHAR.

double 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 double type, then scale = 1 and shift = 0.

Definition at line 85 of file vtkTransformToGrid.h.

double vtkTransformToGrid::GetDisplacementShift (   )  [inline]
 

Definition at line 87 of file vtkTransformToGrid.h.

void vtkTransformToGrid::ExecuteInformation (   )  [protected, virtual]
 

Reimplemented from vtkSource.

void vtkTransformToGrid::ExecuteData (  vtkDataObject *  data  )  [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 vtkSource.

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 105 of file vtkTransformToGrid.h.

int vtkTransformToGrid::GridScalarType [protected]
 

Definition at line 107 of file vtkTransformToGrid.h.

int vtkTransformToGrid::GridExtent[6] [protected]
 

Definition at line 108 of file vtkTransformToGrid.h.

double vtkTransformToGrid::GridOrigin[3] [protected]
 

Definition at line 109 of file vtkTransformToGrid.h.

double vtkTransformToGrid::GridSpacing[3] [protected]
 

Definition at line 110 of file vtkTransformToGrid.h.

double vtkTransformToGrid::DisplacementScale [protected]
 

Definition at line 112 of file vtkTransformToGrid.h.

double vtkTransformToGrid::DisplacementShift [protected]
 

Definition at line 113 of file vtkTransformToGrid.h.

vtkTimeStamp vtkTransformToGrid::ShiftScaleTime [protected]
 

Definition at line 114 of file vtkTransformToGrid.h.


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