17 #ifndef __igtlNDArrayMessage_h
18 #define __igtlNDArrayMessage_h
27 #define IGTL_STRING_MESSAGE_DEFAULT_ENCODING 3
47 int SetArray(
void * array);
48 igtlUint64 GetRawArraySize();
52 virtual int GetElementSize() = 0;
53 igtlUint32 GetNumberOfElements();
54 igtlUint32 Get1DIndex(IndexType index);
69 if (Get1DIndex(index) <= GetNumberOfElements()) {
70 * (T *) this->m_ByteArray[Get1DIndex(index) *
sizeof(T)] = value;
78 if (Get1DIndex(index) <= GetNumberOfElements()) {
79 value = * (T *) this->m_ByteArray[Get1DIndex(index) *
sizeof(T)];
127 virtual int GetBodyPackSize();
128 virtual int PackBody();
129 virtual int UnpackBody();
139 #endif // _igtlNDArrayMessage_h