VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkLandmarkTransform Class Reference

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

#include <vtkLandmarkTransform.h>

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

Public Types

typedef vtkLinearTransform Superclass
 
- Public Types inherited from vtkLinearTransform
typedef vtkHomogeneousTransform Superclass
 
- Public Types inherited from vtkHomogeneousTransform
typedef vtkAbstractTransform Superclass
 
- Public Types inherited from vtkAbstractTransform
typedef vtkObject 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 vtkPoints * GetSourceLandmarks ()
 
virtual vtkPoints * GetTargetLandmarks ()
 
virtual void SetMode (int)
 
void SetModeToRigidBody ()
 
void SetModeToSimilarity ()
 
void SetModeToAffine ()
 
virtual int GetMode ()
 
const char * GetModeAsString ()
 
- Public Member Functions inherited from vtkLinearTransform
vtkLinearTransformNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void TransformPoints (vtkPoints *inPts, vtkPoints *outPts)
 
virtual void TransformNormals (vtkDataArray *inNms, vtkDataArray *outNms)
 
virtual void TransformVectors (vtkDataArray *inVrs, vtkDataArray *outVrs)
 
void TransformNormal (const float in[3], float out[3])
 
void TransformNormal (const double in[3], double out[3])
 
double * TransformNormal (double x, double y, double z)
 
double * TransformNormal (const double normal[3])
 
float * TransformFloatNormal (float x, float y, float z)
 
float * TransformFloatNormal (const float normal[3])
 
double * TransformDoubleNormal (double x, double y, double z)
 
double * TransformDoubleNormal (const double normal[3])
 
double * TransformVector (double x, double y, double z)
 
double * TransformVector (const double normal[3])
 
void TransformVector (const float in[3], float out[3])
 
void TransformVector (const double in[3], double out[3])
 
float * TransformFloatVector (float x, float y, float z)
 
float * TransformFloatVector (const float vec[3])
 
double * TransformDoubleVector (double x, double y, double z)
 
double * TransformDoubleVector (const double vec[3])
 
void TransformPointsNormalsVectors (vtkPoints *inPts, vtkPoints *outPts, vtkDataArray *inNms, vtkDataArray *outNms, vtkDataArray *inVrs, vtkDataArray *outVrs)
 
vtkLinearTransformGetLinearInverse ()
 
void InternalTransformPoint (const float in[3], float out[3])
 
void InternalTransformPoint (const double in[3], double out[3])
 
virtual void InternalTransformNormal (const float in[3], float out[3])
 
virtual void InternalTransformNormal (const double in[3], double out[3])
 
virtual void InternalTransformVector (const float in[3], float out[3])
 
virtual void InternalTransformVector (const double in[3], double out[3])
 
void InternalTransformDerivative (const float in[3], float out[3], float derivative[3][3])
 
void InternalTransformDerivative (const double in[3], double out[3], double derivative[3][3])
 
- Public Member Functions inherited from vtkHomogeneousTransform
vtkHomogeneousTransformNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void GetMatrix (vtkMatrix4x4 *m)
 
vtkMatrix4x4GetMatrix ()
 
vtkHomogeneousTransformGetHomogeneousInverse ()
 
- Public Member Functions inherited from vtkAbstractTransform
vtkAbstractTransformNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
double * TransformNormalAtPoint (const double point[3], const double normal[3])
 
double * TransformVectorAtPoint (const double point[3], const double vector[3])
 
vtkAbstractTransformGetInverse ()
 
void SetInverse (vtkAbstractTransform *transform)
 
void DeepCopy (vtkAbstractTransform *)
 
void Update ()
 
virtual int CircuitCheck (vtkAbstractTransform *transform)
 
unsigned long GetMTime ()
 
virtual void UnRegister (vtkObjectBase *O)
 
void TransformPoint (const float in[3], float out[3])
 
void TransformPoint (const double in[3], double out[3])
 
double * TransformPoint (double x, double y, double z)
 
double * TransformPoint (const double point[3])
 
float * TransformFloatPoint (float x, float y, float z)
 
float * TransformFloatPoint (const float point[3])
 
double * TransformDoublePoint (double x, double y, double z)
 
double * TransformDoublePoint (const double point[3])
 
void TransformNormalAtPoint (const float point[3], const float in[3], float out[3])
 
void TransformNormalAtPoint (const double point[3], const double in[3], double out[3])
 
double * TransformDoubleNormalAtPoint (const double point[3], const double normal[3])
 
float * TransformFloatNormalAtPoint (const float point[3], const float normal[3])
 
void TransformVectorAtPoint (const float point[3], const float in[3], float out[3])
 
void TransformVectorAtPoint (const double point[3], const double in[3], double out[3])
 
double * TransformDoubleVectorAtPoint (const double point[3], const double vector[3])
 
float * TransformFloatVectorAtPoint (const float point[3], const float vector[3])
 

Static Public Member Functions

static vtkLandmarkTransformNew ()
 
static int IsTypeOf (const char *type)
 
static vtkLandmarkTransformSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkLinearTransform
static int IsTypeOf (const char *type)
 
static vtkLinearTransformSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkHomogeneousTransform
static int IsTypeOf (const char *type)
 
static vtkHomogeneousTransformSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAbstractTransform
static int IsTypeOf (const char *type)
 
static vtkAbstractTransformSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkLandmarkTransform ()
 
 ~vtkLandmarkTransform ()
 
void InternalUpdate ()
 
void InternalDeepCopy (vtkAbstractTransform *transform)
 
- Protected Member Functions inherited from vtkLinearTransform
 vtkLinearTransform ()
 
 ~vtkLinearTransform ()
 
- Protected Member Functions inherited from vtkHomogeneousTransform
 vtkHomogeneousTransform ()
 
 ~vtkHomogeneousTransform ()
 
- Protected Member Functions inherited from vtkAbstractTransform
 vtkAbstractTransform ()
 
 ~vtkAbstractTransform ()
 

Protected Attributes

vtkPoints * SourceLandmarks
 
vtkPoints * TargetLandmarks
 
int Mode
 
- Protected Attributes inherited from vtkHomogeneousTransform
vtkMatrix4x4Matrix
 
- Protected Attributes inherited from vtkAbstractTransform
float InternalFloatPoint [3]
 
double InternalDoublePoint [3]
 

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

Definition at line 46 of file vtkLandmarkTransform.h.

Constructor & Destructor Documentation

vtkLandmarkTransform::vtkLandmarkTransform ( )
protected
vtkLandmarkTransform::~vtkLandmarkTransform ( )
protected

Member Function Documentation

static vtkLandmarkTransform* vtkLandmarkTransform::New ( )
static
static int vtkLandmarkTransform::IsTypeOf ( const char *  type)
static
virtual int vtkLandmarkTransform::IsA ( const char *  type)
virtual

Reimplemented from vtkLinearTransform.

static vtkLandmarkTransform* vtkLandmarkTransform::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkLandmarkTransform::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkLinearTransform.

vtkLandmarkTransform* vtkLandmarkTransform::NewInstance ( ) const
void vtkLandmarkTransform::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
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)

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 vtkPoints* vtkLandmarkTransform::GetSourceLandmarks ( )
virtual

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 vtkPoints* vtkLandmarkTransform::GetTargetLandmarks ( )
virtual

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.

void vtkLandmarkTransform::SetModeToRigidBody ( )
inline

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.

void vtkLandmarkTransform::SetModeToSimilarity ( )
inline

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.

void vtkLandmarkTransform::SetModeToAffine ( )
inline

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 ( )

Get the MTime.

vtkAbstractTransform* vtkLandmarkTransform::MakeTransform ( )
virtual

Make another transform of the same type.

Implements vtkAbstractTransform.

void vtkLandmarkTransform::InternalUpdate ( )
protectedvirtual

Perform any subclass-specific Update.

Reimplemented from vtkAbstractTransform.

void vtkLandmarkTransform::InternalDeepCopy ( vtkAbstractTransform transform)
protectedvirtual

This method does no type checking, use DeepCopy instead.

Reimplemented from vtkHomogeneousTransform.

Member Data Documentation

vtkPoints* vtkLandmarkTransform::SourceLandmarks
protected

Definition at line 99 of file vtkLandmarkTransform.h.

vtkPoints* vtkLandmarkTransform::TargetLandmarks
protected

Definition at line 100 of file vtkLandmarkTransform.h.

int vtkLandmarkTransform::Mode
protected

Definition at line 102 of file vtkLandmarkTransform.h.


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