Image Utilities (IU)
|
Template specialization for 3-d unsigned int vectors (size vectors). More...
#include <vector.h>
Public Member Functions | |
Size () | |
Size (unsigned int value) | |
Size (std::initializer_list< unsigned int > list) | |
Size (unsigned int width, unsigned int height, unsigned int depth) | |
~Size () | |
Size (const Size &from) | |
Size (const SizeBase &from) | |
Size & | operator= (const Size &from) |
Size & | operator= (const SizeBase< 3 > &from) |
Public Member Functions inherited from iu::SizeBase< 3 > | |
SizeBase (unsigned int value) | |
SizeBase (std::initializer_list< unsigned int > list) | |
SizeBase (const SizeBase &from) | |
virtual | ~SizeBase () |
unsigned int | numel () const |
SizeBase | operator* (const ScalarType &scalar) const |
void | operator*= (const ScalarType &scalar) |
SizeBase | operator/ (const ScalarType &scalar) const |
void | operator/= (const ScalarType &scalar) |
SizeBase & | operator= (const SizeBase &from) |
unsigned int * | ptr () |
const unsigned int * | ptr () const |
Public Member Functions inherited from iu::VectorBase< unsigned int, Ndim > | |
VectorBase () | |
VectorBase (const unsigned int &value) | |
VectorBase (std::initializer_list< unsigned int > list) | |
virtual | ~VectorBase () |
unsigned int | operator[] (unsigned int i) const |
unsigned int & | operator[] (unsigned int i) |
void | fill (const unsigned int &value) |
Data Fields | |
unsigned int & | width |
unsigned int & | height |
unsigned int & | depth |
Additional Inherited Members | |
Static Public Member Functions inherited from iu::VectorBase< unsigned int, Ndim > | |
static unsigned int | ndim () |
Protected Attributes inherited from iu::VectorBase< unsigned int, Ndim > | |
unsigned int | data_ [Ndim] |
Template specialization for 3-d unsigned int vectors (size vectors).
This class additionally has public members width, height, depth and is used for the Volume class to be compatible with previously written code.
Special Constructor. Init all elements of the size vector with a special value.
value | value to initialize size vector elements. |
Special Constructor. Init all elements of the vector with a initializer list.
list | Initializer list, e.g. {1,2,3}. |
Special Constructor. Init size with width, height, depth.
width | Set 0th entry of data buffer |
height | Set 1st entry of data buffer |
depth | Set 2nd entry of data buffer |
Public copy assignment operator.
unsigned int& iu::Size< 3 >::depth |
Depth: Reference to 2nd entry of data buffer
unsigned int& iu::Size< 3 >::height |
Height: Reference to 1st entry of data buffer
unsigned int& iu::Size< 3 >::width |
Width: Reference to 0th entry of data buffer