IGSTK
Main Page
Namespaces
Classes
Files
File List
File Members
Source
igstkCoordinateSystemSetTransformResult.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Image Guided Surgery Software Toolkit
4
Module: $RCSfile: igstkCoordinateSystemSetTransformResult.h,v $
5
Language: C++
6
Date: $Date: 2010-11-16 18:13:07 $
7
Version: $Revision: 1.4 $
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 __igstkCoordinateSystemSetTransformResult_h
19
#define __igstkCoordinateSystemSetTransformResult_h
20
21
#include "
igstkCoordinateSystem.h
"
22
23
namespace
igstk
24
{
25
38
class
CoordinateSystemSetTransformResult
39
{
40
public
:
41
43
CoordinateSystemSetTransformResult
();
44
46
CoordinateSystemSetTransformResult
(
47
const
CoordinateSystemSetTransformResult
& in);
48
50
const
CoordinateSystemSetTransformResult
&
operator =
(
51
const
CoordinateSystemSetTransformResult
& in);
52
58
void
Clear
();
59
61
void
Initialize
(
const
Transform
& transform,
62
const
CoordinateSystem
* source,
63
const
CoordinateSystem
* destination,
64
bool
isAttaching);
65
68
template
<
class
TSource,
class
TDestination>
69
void
Initialize
(
const
Transform
& transform,
70
const
TSource * sourceObject,
71
const
TDestination * destinationObject ,
72
bool
isAttaching)
73
{
74
const
CoordinateSystem
* source =
75
Friends::CoordinateSystemHelper::GetCoordinateSystem
( sourceObject );
76
77
const
CoordinateSystem
* destination =
78
Friends::CoordinateSystemHelper::GetCoordinateSystem
( destinationObject );
79
80
this->
Initialize
( transform, source, destination , isAttaching);
81
}
82
84
const
Transform
&
GetTransform
()
const
;
85
87
const
CoordinateSystem
*
GetSource
()
const
;
88
90
const
CoordinateSystem
*
GetDestination
()
const
;
91
93
bool
IsAttach
()
const
;
94
95
private
:
96
97
Transform
m_Transform;
98
const
CoordinateSystem
* m_Source;
99
const
CoordinateSystem
* m_Destination;
100
bool
m_IsAttach;
101
102
};
103
107
igstkLoadedEventMacro
( CoordinateSystemSetTransformEvent,
108
IGSTKEvent, CoordinateSystemSetTransformResult );
109
110
}
// end namespace igstk
111
112
#endif
Generated on Thu Mar 20 2014 13:04:04 for IGSTK by
1.8.1.2