Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
igtlTransformMessage.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Open IGT Link Library
4  Module: $HeadURL: http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/Source/igtlTransformMessage.h $
5  Language: C++
6  Date: $Date: 2008-12-22 19:05:42 -0500 (Mon, 22 Dec 2008) $
7  Version: $Revision: 3460 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10 
11  This software is distributed WITHOUT ANY WARRANTY; without even
12  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13  PURPOSE. See the above copyright notices for more information.
14 
15 =========================================================================*/
16 
17 #ifndef __igtlTransformMessage_h
18 #define __igtlTransformMessage_h
19 
20 #include "igtlObject.h"
21 //#include "igtlMacros.h"
22 #include "igtlMath.h"
23 #include "igtlMessageBase.h"
24 
25 namespace igtl
26 {
27 
29 {
30 
31 public:
32 
37 
40 
41 
42 public:
43 
44  void SetPosition(float p[3]);
45  void GetPosition(float p[3]);
46 
47  void SetPosition(float px, float py, float pz);
48  void GetPosition(float* px, float* py, float* pz);
49 
50  void SetNormals(float o[3][3]);
51  void GetNormals(float o[3][3]);
52 
53  void SetNormals(float t[3], float s[3], float n[3]);
54  void GetNormals(float t[3], float s[3], float n[3]);
55 
56  void SetMatrix(Matrix4x4& mat);
57  void GetMatrix(Matrix4x4& mat);
58 
59 
60 protected:
63 
64 protected:
65 
66  virtual int GetBodyPackSize();
67  virtual int PackBody();
68  virtual int UnpackBody();
69 
71 
72  unsigned char* m_Transform;
73 
74 };
75 
76 
77 } // namespace igtl
78 
79 #endif // _igtlTransformMessage_h
80 
81 
82 
83 

Generated at Thu Mar 20 2014 16:32:06 for OpenIGTLink by doxygen 1.8.1.2 written by Dimitri van Heesch, © 1997-2000