VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkLandmarkTransform Class Reference

a linear transform specified by two corresponding point sets More...

#include <vtkLandmarkTransform.h>

Inheritance diagram for vtkLandmarkTransform:
Inheritance graph
[legend]
Collaboration diagram for vtkLandmarkTransform:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkLinearTransform Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkLandmarkTransformNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void Inverse ()
unsigned long GetMTime ()
vtkAbstractTransformMakeTransform ()
void SetSourceLandmarks (vtkPoints *points)
void SetTargetLandmarks (vtkPoints *points)
virtual vtkPointsGetSourceLandmarks ()
virtual vtkPointsGetTargetLandmarks ()
virtual void SetMode (int)
void SetModeToRigidBody ()
void SetModeToSimilarity ()
void SetModeToAffine ()
virtual int GetMode ()
const char * GetModeAsString ()

Static Public Member Functions

static vtkLandmarkTransformNew ()
static int IsTypeOf (const char *type)
static vtkLandmarkTransformSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkLandmarkTransform ()
 ~vtkLandmarkTransform ()
void InternalUpdate ()
void InternalDeepCopy (vtkAbstractTransform *transform)

Protected Attributes

vtkPointsSourceLandmarks
vtkPointsTargetLandmarks
int Mode

Detailed Description

a linear transform specified by two 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

Definition at line 41 of file vtkLandmarkTransform.h.


Member Typedef Documentation

Reimplemented from vtkLinearTransform.

Definition at line 46 of file vtkLandmarkTransform.h.


Constructor & Destructor Documentation


Member Function Documentation

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

Reimplemented from vtkObject.

static int vtkLandmarkTransform::IsTypeOf ( const char *  name) [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 *  name) [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.

Reimplemented from vtkLinearTransform.

virtual vtkObjectBase* vtkLandmarkTransform::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkLinearTransform.

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.

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.

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.

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.

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.

virtual void vtkLandmarkTransform::SetMode ( int  ) [virtual]

Set the number of degrees of freedom to constrain the solution to. Rigidbody (VTK_LANDMARK_RIGIDBODY): rotation and translation only. Similarity (VTK_LANDMARK_SIMILARITY): rotation, translation and isotropic scaling. Affine (VTK_LANDMARK_AFFINE): collinearity is preserved. Ratios of distances along a line are preserved. The default is similarity.

Set the number of degrees of freedom to constrain the solution to. Rigidbody (VTK_LANDMARK_RIGIDBODY): rotation and translation only. Similarity (VTK_LANDMARK_SIMILARITY): rotation, translation and isotropic scaling. Affine (VTK_LANDMARK_AFFINE): collinearity is preserved. Ratios of distances along a line are preserved. The default is similarity.

Definition at line 68 of file vtkLandmarkTransform.h.

Set the number of degrees of freedom to constrain the solution to. Rigidbody (VTK_LANDMARK_RIGIDBODY): rotation and translation only. Similarity (VTK_LANDMARK_SIMILARITY): rotation, translation and isotropic scaling. Affine (VTK_LANDMARK_AFFINE): collinearity is preserved. Ratios of distances along a line are preserved. The default is similarity.

Definition at line 69 of file vtkLandmarkTransform.h.

Set the number of degrees of freedom to constrain the solution to. Rigidbody (VTK_LANDMARK_RIGIDBODY): rotation and translation only. Similarity (VTK_LANDMARK_SIMILARITY): rotation, translation and isotropic scaling. Affine (VTK_LANDMARK_AFFINE): collinearity is preserved. Ratios of distances along a line are preserved. The default is similarity.

Definition at line 70 of file vtkLandmarkTransform.h.

virtual int vtkLandmarkTransform::GetMode ( ) [virtual]

Get the current transformation mode.

const char * vtkLandmarkTransform::GetModeAsString ( ) [inline]

Get the current transformation mode.

Definition at line 109 of file vtkLandmarkTransform.h.

void vtkLandmarkTransform::Inverse ( ) [virtual]

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

Implements vtkAbstractTransform.

unsigned long vtkLandmarkTransform::GetMTime ( ) [virtual]

Get the MTime.

Reimplemented from vtkAbstractTransform.

Make another transform of the same type.

Implements vtkAbstractTransform.

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

Definition at line 99 of file vtkLandmarkTransform.h.

Definition at line 100 of file vtkLandmarkTransform.h.

Definition at line 102 of file vtkLandmarkTransform.h.


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