VTK
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 Types inherited from vtkObject
typedef vtkObjectBase 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 ()
 
- 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])
 
doubleTransformNormal (double x, double y, double z)
 
doubleTransformNormal (const double normal[3])
 
floatTransformFloatNormal (float x, float y, float z)
 
floatTransformFloatNormal (const float normal[3])
 
doubleTransformDoubleNormal (double x, double y, double z)
 
doubleTransformDoubleNormal (const double normal[3])
 
doubleTransformVector (double x, double y, double z)
 
doubleTransformVector (const double normal[3])
 
void TransformVector (const float in[3], float out[3])
 
void TransformVector (const double in[3], double out[3])
 
floatTransformFloatVector (float x, float y, float z)
 
floatTransformFloatVector (const float vec[3])
 
doubleTransformDoubleVector (double x, double y, double z)
 
doubleTransformDoubleVector (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 GetMatrix (vtkMatrix4x4 *m)
 
vtkMatrix4x4GetMatrix ()
 
vtkHomogeneousTransformGetHomogeneousInverse ()
 
- Public Member Functions inherited from vtkAbstractTransform
vtkAbstractTransformNewInstance () const
 
doubleTransformNormalAtPoint (const double point[3], const double normal[3])
 
doubleTransformVectorAtPoint (const double point[3], const double vector[3])
 
vtkAbstractTransformGetInverse ()
 
void SetInverse (vtkAbstractTransform *transform)
 
void DeepCopy (vtkAbstractTransform *)
 
void Update ()
 
virtual int CircuitCheck (vtkAbstractTransform *transform)
 
virtual void UnRegister (vtkObjectBase *O)
 
void TransformPoint (const float in[3], float out[3])
 
void TransformPoint (const double in[3], double out[3])
 
doubleTransformPoint (double x, double y, double z)
 
doubleTransformPoint (const double point[3])
 
floatTransformFloatPoint (float x, float y, float z)
 
floatTransformFloatPoint (const float point[3])
 
doubleTransformDoublePoint (double x, double y, double z)
 
doubleTransformDoublePoint (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])
 
doubleTransformDoubleNormalAtPoint (const double point[3], const double normal[3])
 
floatTransformFloatNormalAtPoint (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])
 
doubleTransformDoubleVectorAtPoint (const double point[3], const double vector[3])
 
floatTransformFloatVectorAtPoint (const float point[3], const float vector[3])
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

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)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () 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 Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

vtkPointsSourceLandmarks
 
vtkPointsTargetLandmarks
 
int Mode
 
- Protected Attributes inherited from vtkHomogeneousTransform
vtkMatrix4x4Matrix
 
- Protected Attributes inherited from vtkAbstractTransform
float InternalFloatPoint [3]
 
double InternalDoublePoint [3]
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

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

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 
)
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 vtkHomogeneousTransform.

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

Get the MTime.

Reimplemented from vtkAbstractTransform.

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: