#include <geometry.h>
Public Member Functions | |
| FloatSize (float xx=0, float yy=0, float zz=0) | |
| Construct a FloatSize object. | |
| FloatSize (int xx, int yy=0, int zz=0) | |
| Construct a FloatSize object. | |
| FloatSize (double xx, double yy=0, double zz=0) | |
| Construct a FloatSize object. | |
| int | get_ndim () const |
| Get its dimension, 1D, 2D, or 3D. | |
| float | operator[] (int i) const |
| Get the ith direction's size. | |
| float & | operator[] (int i) |
| Get the ith direction's size. | |
| operator vector () const | |
Private Attributes | |
| float | data [3] |
Definition at line 108 of file geometry.h.
|
||||||||||||||||
|
Construct a FloatSize object.
Definition at line 117 of file geometry.h. References data.
|
|
||||||||||||||||
|
Construct a FloatSize object.
Definition at line 129 of file geometry.h. References data.
|
|
||||||||||||||||
|
Construct a FloatSize object.
Definition at line 141 of file geometry.h. References data.
|
|
|
Get its dimension, 1D, 2D, or 3D.
Definition at line 151 of file geometry.h. References data. Referenced by EMAN::ImageIO::check_region(), and EMAN::Region::get_ndim(). 00152 {
00153 if (data[2] > 1) {
00154 return 3;
00155 }
00156 else if (data[1] > 1) {
00157 return 2;
00158 }
00159 else if (data[0] > 1) {
00160 return 1;
00161 }
00162 else {
00163 return 0;
00164 }
00165 }
|
|
|
Definition at line 185 of file geometry.h. 00185 {
00186 vector<float> t(data,data+3);
00187 return t;
00188 }
|
|
|
Get the ith direction's size. Used as a lvalue.
Definition at line 180 of file geometry.h. References data. 00181 {
00182 return data[i];
00183 }
|
|
|
Get the ith direction's size. Used as a rvalue.
Definition at line 171 of file geometry.h. References data. 00172 {
00173 return data[i];
00174 }
|
|
|
Definition at line 191 of file geometry.h. |
1.3.9.1