#include <igtlNDArrayMessage.h>
Public Types | |
typedef std::vector< igtlUint16 > | IndexType |
Public Member Functions | |
int | GetDimension () |
void * | GetRawArray () |
igtlUint64 | GetRawArraySize () |
IndexType | GetSize () |
int | GetValue (IndexType index, T &value) |
int | SetArray (void *array) |
int | SetSize (IndexType size) |
int | SetValue (IndexType index, T value) |
Protected Member Functions | |
igtlUint32 | Get1DIndex (IndexType index) |
virtual int | GetElementSize () |
igtlUint32 | GetNumberOfElements () |
Definition at line 87 of file igtlNDArrayMessage.h.
|
inherited |
Vector type for an index of N-D array.
Definition at line 35 of file igtlNDArrayMessage.h.
|
protectedinherited |
Returns the 1-D index of the element specified by 'index'. This function is used to calculate the index of the element in the raw array.
|
inlineinherited |
Gets the dimension of the N-D array.
Definition at line 50 of file igtlNDArrayMessage.h.
Gets the size of elements (e.g. 1 byte in case of 8-bit integer)
Implements igtl::ArrayBase.
Definition at line 117 of file igtlNDArrayMessage.h.
|
protectedinherited |
Gets the number of elements in the array.
|
inlineinherited |
Gets the raw byte array stored in the class.
Definition at line 60 of file igtlNDArrayMessage.h.
|
inherited |
Gets the size of the raw byte array stored in the class.
|
inlineinherited |
Gets the size of the N-D array.
Definition at line 47 of file igtlNDArrayMessage.h.
Gets a value of the element specified by 'index'.
Definition at line 103 of file igtlNDArrayMessage.h.
Sets an array from a byte array. Size and dimension must be specified prior to calling the SetArray() function.
Sets the size of the N-D array. Returns non-zero value, if success.
Sets a value of the element specified by 'index'.
Definition at line 91 of file igtlNDArrayMessage.h.