IGSTK
Main Page
Namespaces
Classes
Files
File List
File Members
Source
igstkCoordinateSystemTransformToResult.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Image Guided Surgery Software Toolkit
4
Module: $RCSfile: igstkCoordinateSystemTransformToResult.h,v $
5
Language: C++
6
Date: $Date: 2009-02-02 21:00:06 $
7
Version: $Revision: 1.6 $
8
9
Copyright (c) ISC Insight Software Consortium. All rights reserved.
10
See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.
11
12
This software is distributed WITHOUT ANY WARRANTY; without even
13
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14
PURPOSE. See the above copyright notices for more information.
15
16
=========================================================================*/
17
18
#ifndef __igstkCoordinateSystemTransformToResult_h
19
#define __igstkCoordinateSystemTransformToResult_h
20
21
#include "
igstkCoordinateSystem.h
"
22
23
namespace
igstk
24
{
25
38
class
CoordinateSystemTransformToResult
39
{
40
public
:
41
43
CoordinateSystemTransformToResult
();
44
46
CoordinateSystemTransformToResult
(
47
const
CoordinateSystemTransformToResult
& in);
48
50
const
CoordinateSystemTransformToResult
&
operator =
(
51
const
CoordinateSystemTransformToResult
& in);
52
58
void
Clear
();
59
61
void
Initialize
(
const
Transform
& transform,
62
const
CoordinateSystem
* source,
63
const
CoordinateSystem
* destination,
64
const
CoordinateSystem
* commonAncestor);
65
68
void
Initialize
(
const
Transform
& transform,
69
const
CoordinateSystem
* source,
70
const
CoordinateSystem
* destination);
71
74
template
<
class
TSource,
class
TDestination>
75
void
Initialize
(
const
Transform
& transform,
76
const
TSource * sourceObject,
77
const
TDestination * destinationObject )
78
{
79
const
CoordinateSystem
* source =
80
Friends::CoordinateSystemHelper::GetCoordinateSystem
( sourceObject );
81
82
const
CoordinateSystem
* destination =
83
Friends::CoordinateSystemHelper::GetCoordinateSystem
( destinationObject );
84
85
this->
Initialize
( transform, source, destination );
86
}
87
89
const
Transform
&
GetTransform
()
const
;
90
92
const
CoordinateSystem
*
GetSource
()
const
;
93
95
const
CoordinateSystem
*
GetDestination
()
const
;
96
98
const
CoordinateSystem
*
GetCommonAncestor
()
const
;
99
100
private
:
101
102
Transform
m_Transform;
103
const
CoordinateSystem
* m_Source;
104
const
CoordinateSystem
* m_Destination;
105
const
CoordinateSystem
* m_CommonAncestor;
106
107
};
108
112
igstkLoadedEventMacro
( CoordinateSystemTransformToEvent,
113
IGSTKEvent, CoordinateSystemTransformToResult );
114
115
}
// end namespace igstk
116
117
#endif
Generated on Thu Mar 20 2014 13:04:04 for IGSTK by
1.8.1.2