VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
Transforms
vtkLandmarkTransform.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkLandmarkTransform.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
31
#ifndef __vtkLandmarkTransform_h
32
#define __vtkLandmarkTransform_h
33
34
#include "vtkCommonTransformsModule.h"
// For export macro
35
#include "
vtkLinearTransform.h
"
36
37
#define VTK_LANDMARK_RIGIDBODY 6
38
#define VTK_LANDMARK_SIMILARITY 7
39
#define VTK_LANDMARK_AFFINE 12
40
41
class
VTKCOMMONTRANSFORMS_EXPORT
vtkLandmarkTransform
:
public
vtkLinearTransform
42
{
43
public
:
44
static
vtkLandmarkTransform
*
New
();
45
46
vtkTypeMacro(
vtkLandmarkTransform
,
vtkLinearTransform
);
47
void
PrintSelf
(ostream& os,
vtkIndent
indent);
48
50
54
void
SetSourceLandmarks(
vtkPoints
*
points
);
55
void
SetTargetLandmarks(
vtkPoints
*
points
);
56
vtkGetObjectMacro(SourceLandmarks,
vtkPoints
);
57
vtkGetObjectMacro(TargetLandmarks,
vtkPoints
);
59
61
67
vtkSetMacro(Mode,
int
);
68
void
SetModeToRigidBody
() { this->SetMode(
VTK_LANDMARK_RIGIDBODY
); };
69
void
SetModeToSimilarity
() { this->SetMode(
VTK_LANDMARK_SIMILARITY
); };
70
void
SetModeToAffine
() { this->SetMode(
VTK_LANDMARK_AFFINE
); };
72
74
75
vtkGetMacro(Mode,
int
);
76
const
char
*GetModeAsString();
78
81
void
Inverse
();
82
84
unsigned
long
GetMTime
();
85
87
vtkAbstractTransform
*
MakeTransform
();
88
89
protected
:
90
vtkLandmarkTransform
();
91
~
vtkLandmarkTransform
();
92
93
// Update the matrix from the quaternion.
94
void
InternalUpdate
();
95
97
void
InternalDeepCopy
(
vtkAbstractTransform
*transform);
98
99
vtkPoints
*
SourceLandmarks
;
100
vtkPoints
*
TargetLandmarks
;
101
102
int
Mode
;
103
private
:
104
vtkLandmarkTransform
(
const
vtkLandmarkTransform
&);
// Not implemented.
105
void
operator=(
const
vtkLandmarkTransform
&);
// Not implemented.
106
};
107
108
//BTX
109
inline
const
char
*
vtkLandmarkTransform::GetModeAsString
()
110
{
111
switch
(this->
Mode
)
112
{
113
case
VTK_LANDMARK_RIGIDBODY
:
114
return
"RigidBody"
;
115
case
VTK_LANDMARK_SIMILARITY
:
116
return
"Similarity"
;
117
case
VTK_LANDMARK_AFFINE
:
118
return
"Affine"
;
119
default
:
120
return
"Unrecognized"
;
121
}
122
}
123
//ETX
124
#endif
Generated on Thu May 24 2012 22:22:13 for VTK by
1.8.1