Ilwis-Objects
1.0
GIS and Remote Sensing framework for data access and processing
|
#include <size.h>
Public Member Functions | |
Size () | |
Size (T x, T y, T z) | |
Size (const Size &sz) | |
Size (const QSize &sz) | |
Size & | operator+= (const Size &sz) |
Size & | operator-= (const Size &sz) |
Size & | operator*= (double f) |
QSize | toQSize () const |
T | xsize () const |
T | ysize () const |
T | zsize () const |
void | xsize (T x) |
void | ysize (T y) |
void | zsize (T z) |
quint64 | linearSize () const |
bool | contains (T x, T y, T z=0) const |
bool | isValid () const |
bool | isNull () const |
A 3D size measurer for integer spaces. It is similar to QSize of QT but then for 3 dimension. One can freely convert between QSize and Size If no third dimension is present to top is assumed to be at 0. Fro consistency with QSize the top member is a signed integer though a unsigned would make more sense The value of size dimensions can never be below 0 and will be reset to 0 if they do.
|
inline |
default constructor, x,y,top are assumed to be at 0,0,0
|
inline |
|
inline |
Copy constructor
other | Size |
|
inline |
Copy constructor from QSize, top goes to 0
other | QSize |
|
inline |
all dimensions are 0
|
inline |
product of the 3 dimensions. It gives the total number of discrete points in the size. Be aware or rounding errors on float or double typed Size!
|
inline |
multiplies a size with a double. It decreases/increases all dimension values with the factor
multiplier |
|
inline |
|
inline |
|
inline |
returns a QSize containing the x and y dimension values of the Size. Not often needed but were an auto cast is not working, this will give the same result
|
inline |
returns the size in the x dimension
|
inline |
returns the size in the x dimension as reference. So it can function as a setter
|
inline |
returns the size in the y dimension
|
inline |
returns the size in the y dimension as reference. So it can function as a setter
|
inline |
returns the size in the z dimension
|
inline |
returns the size in the z dimension as reference. So it can function as a setter