SpikeStream Library
0.2
|
#include <Box.h>
Public Member Functions | |
Box () | |
Box (float x1, float y1, float z1, float x2, float y2, float z2) | |
Box (const Box &box) | |
Box & | operator= (const Box &rhs) |
bool | operator== (const Box &rhs) |
~Box () | |
Point3D | centre () const |
bool | contains (const Point3D &point) const |
float | getX1 () const |
float | getX2 () const |
float | getY1 () const |
float | getY2 () const |
float | getZ1 () const |
float | getZ2 () const |
float | getWidth () const |
float | getLength () const |
float | getHeight () const |
void | expand_percent (float percent) |
bool | intersects (const Box &box) const |
void | setCoordinates (float x1, float y1, float z1, float x2, float y2, float z2) |
QString | toString () const |
void | translate (float dx, float dy, float dz) |
Static Public Member Functions | |
static Box | getEnclosingBox (const QList< Box > &boxList) |
static Box | getEnclosingBox (const QList< Point3D > &pointList) |
static Box | getEnclosingBox (const QList< Box > &boxList, const QList< Point3D > &pointList) |
Public Attributes | |
float | x1 |
float | y1 |
float | z1 |
float | x2 |
float | y2 |
float | z2 |
Holds information about a three dimensional box with a few basic manipulation functions.
Box::Box | ( | float | x1, |
float | y1, | ||
float | z1, | ||
float | x2, | ||
float | y2, | ||
float | z2 | ||
) |
Point3D Box::centre | ( | ) | const |
bool Box::contains | ( | const Point3D & | point | ) | const |
void Box::expand_percent | ( | float | percent | ) |
Box Box::getEnclosingBox | ( | const QList< Box > & | boxList | ) | [static] |
Box Box::getEnclosingBox | ( | const QList< Point3D > & | pointList | ) | [static] |
Box Box::getEnclosingBox | ( | const QList< Box > & | boxList, |
const QList< Point3D > & | pointList | ||
) | [static] |
float Box::getHeight | ( | ) | const |
float Box::getLength | ( | ) | const |
float Box::getWidth | ( | ) | const |
float spikestream::Box::getX1 | ( | ) | const [inline] |
float spikestream::Box::getX2 | ( | ) | const [inline] |
float spikestream::Box::getY1 | ( | ) | const [inline] |
float spikestream::Box::getY2 | ( | ) | const [inline] |
float spikestream::Box::getZ1 | ( | ) | const [inline] |
float spikestream::Box::getZ2 | ( | ) | const [inline] |
bool Box::intersects | ( | const Box & | box | ) | const |
void Box::setCoordinates | ( | float | x1, |
float | y1, | ||
float | z1, | ||
float | x2, | ||
float | y2, | ||
float | z2 | ||
) |
QString Box::toString | ( | ) | const |
void Box::translate | ( | float | dx, |
float | dy, | ||
float | dz | ||
) |
float spikestream::Box::x1 |
float spikestream::Box::x2 |
float spikestream::Box::y1 |
float spikestream::Box::y2 |
float spikestream::Box::z1 |
float spikestream::Box::z2 |