Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
mitkIGTLMessageCommon.cpp
Go to the documentation of this file.
1
/*===================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
17
#include "
mitkIGTLMessageCommon.h
"
18
#include "
mitkException.h
"
19
20
mitk::IGTLMessageCommon::IGTLMessageCommon
() :
itk
::DataObject()
21
{
22
}
23
24
25
mitk::IGTLMessageCommon::~IGTLMessageCommon
()
26
{
27
}
28
29
//bool mitk::IGTLMessageCommon::Clone(igtl::TransformMessage::Pointer clone,
30
// igtl::TransformMessage::Pointer original)
31
//{
32
// bool copySuccess = false;
33
34
// //copy all meta data
35
// copySuccess = clone->Copy(original);
36
37
// if ( !copySuccess )
38
// return false;
39
40
// //copy all data that is important for this class
41
// //copy the matrix
42
// igtl::Matrix4x4 mat;
43
// original->GetMatrix(mat);
44
// clone->SetMatrix(mat);
45
46
// //copy the normals
47
// float normals[3][3];
48
// original->GetNormals(normals);
49
// clone->SetNormals(normals);
50
51
// //copy the position
52
// float position[3];
53
// original->GetPosition(position);
54
// clone->SetPosition(position);
55
56
// return true;
57
//}
58
59
//igtl::MessageBase::Pointer mitk::IGTLMessageCommon::Clone(igtl::TransformMessage::Pointer original)
60
//{
61
// bool copySuccess = false;
62
// igtl::TransformMessage::Pointer clone_ = igtl::TransformMessage::New();
63
64
// //initialize the clone
66
67
// //copy all meta data
68
// copySuccess = clone_->Copy(original);
69
70
// if ( !copySuccess )
71
// return false;
72
73
// //copy all data that is important for this class
74
// //copy the matrix
75
// igtl::Matrix4x4 mat;
76
// original->GetMatrix(mat);
77
// clone_->SetMatrix(mat);
78
79
// //copy the normals
80
// float normals[3][3];
81
// original->GetNormals(normals);
82
// clone_->SetNormals(normals);
83
84
// //copy the position
85
// float position[3];
86
// original->GetPosition(position);
87
// clone_->SetPosition(position);
88
89
// return igtl::MessageBase::Pointer(clone_.GetPointer());
90
92
//}
mitk::IGTLMessageCommon::IGTLMessageCommon
IGTLMessageCommon()
Clones the input message and returns a igtl::MessageBase::Pointer to the clone.
Definition:
mitkIGTLMessageCommon.cpp:20
mitkException.h
itk
SET FUNCTIONS.
Definition:
itkIntelligentBinaryClosingFilter.h:34
mitkIGTLMessageCommon.h
mitk::IGTLMessageCommon::~IGTLMessageCommon
virtual ~IGTLMessageCommon()
Definition:
mitkIGTLMessageCommon.cpp:25
git
MITK
Modules
OpenIGTLink
mitkIGTLMessageCommon.cpp
Generated on Fri Feb 3 2017 20:52:00 for Medical Imaging Interaction Toolkit by
1.8.9.1