EMAN2
|
IntSize is used to describe a 1D, 2D or 3D rectangular size in integers. More...
#include <geometry.h>
Public Member Functions | |
IntSize (int xx=0, int yy=0, int zz=0) | |
Construct an IntSize object. More... | |
int | get_ndim () const |
Get its dimension, 1D, 2D, or 3D. More... | |
int | operator[] (int i) const |
Get the ith direction's size. More... | |
int & | operator[] (int i) |
Get the ith direction's size. More... | |
Private Attributes | |
int | data [3] |
IntSize is used to describe a 1D, 2D or 3D rectangular size in integers.
Definition at line 48 of file geometry.h.
|
inlineexplicit |
Construct an IntSize object.
xx | The x direction size. Default is 0. |
yy | The y direction size. Default is 0. |
zz | The z direction size. Default is 0. |
Definition at line 57 of file geometry.h.
References data.
|
inline |
Get its dimension, 1D, 2D, or 3D.
Definition at line 68 of file geometry.h.
References data.
|
inline |
Get the ith direction's size.
Used as a lvalue.
i | The ith direction, with 0 is x, 1 is y, 2 is z. |
Definition at line 92 of file geometry.h.
References data.
|
inline |
Get the ith direction's size.
Used as a rvalue.
i | The ith direction, with 0 is x, 1 is y, 2 is z. |
Definition at line 83 of file geometry.h.
References data.
|
private |
Definition at line 98 of file geometry.h.
Referenced by get_ndim(), IntSize(), and operator[]().