/usr/include/openigtlink/igtlPositionMessage.h is in libopenigtlink1-dev 1.9.2~svn7468-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | /*=========================================================================
Program: Open IGT Link Library
Module: $HeadURL: http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/Source/igtlPositionMessage.h $
Language: C++
Date: $Date: 2008-12-22 19:05:42 -0500 (Mon, 22 Dec 2008) $
Version: $Revision: 3460 $
Copyright (c) Insight Software Consortium. All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __igtlPositionMessage_h
#define __igtlPositionMessage_h
#include "igtlObject.h"
//#include "igtlMacros.h"
#include "igtlMath.h"
#include "igtlMessageBase.h"
#include "igtlTypes.h"
namespace igtl
{
class IGTLCommon_EXPORT PositionMessage: public MessageBase
{
public:
enum {
POSITION_ONLY = 1,
WITH_QUATERNION3,
ALL,
};
public:
typedef PositionMessage Self;
typedef MessageBase Superclass;
typedef SmartPointer<Self> Pointer;
typedef SmartPointer<const Self> ConstPointer;
igtlTypeMacro(igtl::PositionMessage, igtl::MessageBase);
igtlNewMacro(igtl::PositionMessage);
public:
void Init();
void SetPackType(int t); /* POSITION_ONLY / WITH_QUATERNION3 / ALL */
/** Specify pack type by body size (in most case obtained from general header) */
int SetPackTypeByBodySize(int s);
void SetPosition(const float* pos);
void SetPosition(float x, float y, float z);
void SetQuaternion(const float* quat);
void SetQuaternion(float ox, float oy, float oz, float w);
void GetPosition(float* pos);
void GetPosition(float* x, float* y, float* z);
void GetQuaternion(float* quat);
void GetQuaternion(float* ox, float* oy, float* oz, float* w);
virtual int SetMessageHeader(const MessageHeader* mb);
protected:
PositionMessage();
~PositionMessage();
protected:
virtual int GetBodyPackSize();
virtual int PackBody();
virtual int UnpackBody();
igtlInt32 m_PackType;
igtlFloat32 m_Position[3];
igtlFloat32 m_Quaternion[4];
};
} // namespace igtl
#endif // _igtlPositionMessage_h
|