#include <vloffset.h>
Inheritance diagram for vlOffset:

Public Member Functions | |
| vlOffset (const uint16 dim=3) | |
| Constructor in which the number of dimensions is specified. | |
| vlOffset (const vlTriple< int16 > &triple) | |
| Constructor in which a triple is given. | |
| vlOffset (const int16 x, const int16 y, const int16 z) | |
| Special constructor for 3D. | |
| vlOffset (const int16 x, const int16 y, const int16 z, const int16 t) | |
| Special constructor for 4D. | |
| ~vlOffset () | |
| int16 | t () const |
| Returns the t component of the offset. | |
| int16 | operator[] (const uint16 dim) const |
| Returns the offset at the given dimension. | |
| int16 & | operator[] (const uint16 dim) |
| Returns the offset at the given dimension. | |
| uint16 | dim () const |
| Returns the dimensionality of the offset. | |
Private Attributes | |
| std::vector< int16 > | m_offset |
| store the offsets greater than the first 3 dims | |
| int16 | m_dummy |
| Some dummy which will be returned when offset of dimension greater than the real is accessed. | |
| uint16 | m_dim |
| Dimensions of the offset. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, vlOffset const *const o) |
| overriding << to enable writing offset to a stream | |
| std::ostream & | operator<< (std::ostream &os, vlOffset const &o) |
| overriding << to enable writing offset to a stream | |
The offset can be accessed using either x(), y(), z() and t() functions or using the overloaded [] operator. The offset is optimized for 3D & 4D access.
Definition at line 44 of file vloffset.h.
|
|
Definition at line 48 of file vloffset.h. |
|
|
Definition at line 58 of file vloffset.h. |
|
||||||||||||||||
|
Definition at line 66 of file vloffset.h. References int16, m_dim, m_dummy, x, y, and vlTriple< int16 >::z(). |
|
||||||||||||||||||||
|
Definition at line 74 of file vloffset.h. References int16, m_dim, m_dummy, m_offset, t(), x, y, and z. |
|
|
Definition at line 82 of file vloffset.h. |
|
|
Definition at line 138 of file vloffset.h. Referenced by vlNeighborhood::add(), and vlOffset(). |
|
|
Definition at line 115 of file vloffset.h. References int16, m_dim, m_dummy, m_offset, vlTriple< int16 >::m_x, vlTriple< int16 >::m_y, and vlTriple< int16 >::m_z. |
|
|
Definition at line 93 of file vloffset.h. References int16, m_dim, m_offset, vlTriple< int16 >::m_x, vlTriple< int16 >::m_y, and vlTriple< int16 >::m_z. |
|
|
Also available via offset[3] Definition at line 87 of file vloffset.h. References int16, and m_offset. Referenced by vlOffset(). |
|
||||||||||||
|
Definition at line 146 of file vloffset.h. |
|
||||||||||||
|
Definition at line 141 of file vloffset.h. |
|
|
Definition at line 174 of file vloffset.h. Referenced by dim(), operator[](), and vlOffset(). |
|
|
Definition at line 171 of file vloffset.h. Referenced by operator[](), and vlOffset(). |
|
|
Definition at line 165 of file vloffset.h. Referenced by operator[](), t(), and vlOffset(). |
1.3.3