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

vtkLandmarkTransform Class Reference

a linear transform specified by two. More...

#include <vtkLandmarkTransform.h>

Inheritance diagram for vtkLandmarkTransform:

Inheritance graph
[legend]
Collaboration diagram for vtkLandmarkTransform:

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)
void SetSourceLandmarks (vtkPoints *points)
void SetTargetLandmarks (vtkPoints *points)
virtual vtkPointsGetSourceLandmarks ()
virtual vtkPointsGetTargetLandmarks ()
virtual void SetMode (int)
void SetModeToRigidBody ()
void SetModeToSimilarity ()
virtual int GetMode ()
const char * GetModeAsString ()
void Inverse ()
unsigned long GetMTime ()
vtkAbstractTransformMakeTransform ()

Static Public Methods

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

Protected Methods

 vtkLandmarkTransform ()
 ~vtkLandmarkTransform ()
 vtkLandmarkTransform (const vtkLandmarkTransform &)
void operator= (const vtkLandmarkTransform &)
void InternalUpdate ()
void InternalDeepCopy (vtkAbstractTransform *transform)

Protected Attributes

vtkPointsSourceLandmarks
vtkPointsTargetLandmarks
int Mode

Detailed Description

a linear transform specified by two.

Date:
2000/12/10 20:08:24
Revision:
1.10
Thanks:
Thanks to Tim Hutton and David G. Gobbi who developed this class. corresponding point sets
A vtkLandmarkTransform is defined by two sets of landmarks, the transform computed gives the best fit mapping one onto the other, in a least squares sense. The indices are taken to correspond, so point 1 in the first set will get mapped close to point 1 in the second set, etc. Call SetSourceLandmarks and SetTargetLandmarks to specify the two sets of landmarks, ensure they have the same number of points.
Warning:
Whenever you add, subtract, or set points you must call Modified() on the vtkPoints object, or the transformation might not update.
See also:
vtkLinearTransform
Examples:
vtkLandmarkTransform (examples)

Definition at line 72 of file vtkLandmarkTransform.h.


Constructor & Destructor Documentation

vtkLandmarkTransform::vtkLandmarkTransform   [protected]
 

vtkLandmarkTransform::~vtkLandmarkTransform   [protected]
 

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

Definition at line 111 of file vtkLandmarkTransform.h.


Member Function Documentation

vtkLandmarkTransform* vtkLandmarkTransform::New   [static]
 

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

Reimplemented from vtkObject.

virtual const char* vtkLandmarkTransform::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 vtkLinearTransform.

int vtkLandmarkTransform::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 vtkLinearTransform.

virtual int vtkLandmarkTransform::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 vtkLinearTransform.

vtkLandmarkTransform* vtkLandmarkTransform::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 vtkLinearTransform.

void vtkLandmarkTransform::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 vtkLinearTransform.

void vtkLandmarkTransform::SetSourceLandmarks vtkPoints   points
 

Specify the source and target landmark sets. The two sets must have the same number of points. If you add or change points in these objects, you must call Modified() on them or the transformation might not update.

void vtkLandmarkTransform::SetTargetLandmarks vtkPoints   points
 

virtual vtkPoints* vtkLandmarkTransform::GetSourceLandmarks   [virtual]
 

virtual vtkPoints* vtkLandmarkTransform::GetTargetLandmarks   [virtual]
 

virtual void vtkLandmarkTransform::SetMode int    [virtual]
 

Set the number of degrees of freedom to constrain the solution to. Rigidbody: rotation and translation only. Similarity: rotation, translation and isotropic scaling. The default is similarity.

void vtkLandmarkTransform::SetModeToRigidBody   [inline]
 

Definition at line 93 of file vtkLandmarkTransform.h.

void vtkLandmarkTransform::SetModeToSimilarity   [inline]
 

Definition at line 94 of file vtkLandmarkTransform.h.

virtual int vtkLandmarkTransform::GetMode   [virtual]
 

const char * vtkLandmarkTransform::GetModeAsString   [inline]
 

Definition at line 127 of file vtkLandmarkTransform.h.

void vtkLandmarkTransform::Inverse   [virtual]
 

Invert the transformation. This is done by switching the source and target landmarks.

Reimplemented from vtkAbstractTransform.

unsigned long vtkLandmarkTransform::GetMTime   [virtual]
 

Get the MTime.

Reimplemented from vtkAbstractTransform.

vtkAbstractTransform* vtkLandmarkTransform::MakeTransform   [virtual]
 

Make another transform of the same type.

Reimplemented from vtkAbstractTransform.

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

Definition at line 112 of file vtkLandmarkTransform.h.

void vtkLandmarkTransform::InternalUpdate   [protected, virtual]
 

Perform any subclass-specific Update.

Reimplemented from vtkAbstractTransform.

void vtkLandmarkTransform::InternalDeepCopy vtkAbstractTransform   transform [protected, virtual]
 

This method does no type checking, use DeepCopy instead.

Reimplemented from vtkHomogeneousTransform.


Member Data Documentation

vtkPoints* vtkLandmarkTransform::SourceLandmarks [protected]
 

Definition at line 120 of file vtkLandmarkTransform.h.

vtkPoints* vtkLandmarkTransform::TargetLandmarks [protected]
 

Definition at line 121 of file vtkLandmarkTransform.h.

int vtkLandmarkTransform::Mode [protected]
 

Definition at line 123 of file vtkLandmarkTransform.h.


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