EMAN2
|
FloatSize is used to describe a 1D, 2D or 3D rectangular size in floating numbers. More...
#include <geometry.h>
Public Member Functions | |
FloatSize (float xx=0, float yy=0, float zz=0) | |
Construct a FloatSize object. More... | |
FloatSize (int xx, int yy=0, int zz=0) | |
Construct a FloatSize object. More... | |
FloatSize (double xx, double yy=0, double zz=0) | |
Construct a FloatSize object. More... | |
int | get_ndim () const |
Get its dimension, 1D, 2D, or 3D. More... | |
float | operator[] (int i) const |
Get the ith direction's size. More... | |
float & | operator[] (int i) |
Get the ith direction's size. More... | |
operator vector< float > () const | |
Private Attributes | |
float | data [3] |
FloatSize is used to describe a 1D, 2D or 3D rectangular size in floating numbers.
Definition at line 104 of file geometry.h.
|
inlineexplicit |
Construct a FloatSize 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 113 of file geometry.h.
References data.
|
inline |
Construct a FloatSize 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 125 of file geometry.h.
References data.
|
inline |
Construct a FloatSize 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 137 of file geometry.h.
References data.
|
inline |
Get its dimension, 1D, 2D, or 3D.
Definition at line 147 of file geometry.h.
References data.
Referenced by EMAN::ImageIO::check_region().
|
inline |
Definition at line 181 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 176 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 167 of file geometry.h.
References data.
|
private |
Definition at line 187 of file geometry.h.
Referenced by FloatSize(), get_ndim(), operator vector< float >(), and operator[]().