MeVisLabToolboxReference
|
This class represents an axis aligned bounding box for a WEMPatch. More...
#include <WEMBoundingBox.h>
Public Member Functions | |
WEMBoundingBox () | |
Standard constructor. | |
~WEMBoundingBox () | |
Standard destructor. | |
Vector3 | getMin () const |
Returns minimum bounding box extent. | |
Vector3 | getMax () const |
Returns maximum bounding box extent. | |
Vector3 | getCenter () const |
Returns center of bounding box. | |
double | getRadius () const |
Returns radius. | |
bool | isCentered () const |
Returns whether the bounding box is centered. | |
bool | isScalable () const |
Returns whether the bounding box is scalable. | |
void | reset () |
Resets values. | |
void | setExtents (Vector3 min, Vector3 max) |
Sets extents minimum and maximum and update center and radius. | |
void | center () |
Centers bounding box. | |
void | scale () |
Scales bounding box. |
This class represents an axis aligned bounding box for a WEMPatch.
Definition at line 21 of file WEMBoundingBox.h.
ml::WEMBoundingBox::WEMBoundingBox | ( | ) |
Standard constructor.
ml::WEMBoundingBox::~WEMBoundingBox | ( | ) |
Standard destructor.
void ml::WEMBoundingBox::center | ( | ) |
Centers bounding box.
Vector3 ml::WEMBoundingBox::getCenter | ( | ) | const [inline] |
Returns center of bounding box.
Definition at line 36 of file WEMBoundingBox.h.
Vector3 ml::WEMBoundingBox::getMax | ( | ) | const [inline] |
Returns maximum bounding box extent.
Definition at line 34 of file WEMBoundingBox.h.
Vector3 ml::WEMBoundingBox::getMin | ( | ) | const [inline] |
Returns minimum bounding box extent.
Definition at line 32 of file WEMBoundingBox.h.
double ml::WEMBoundingBox::getRadius | ( | ) | const [inline] |
Returns radius.
Definition at line 38 of file WEMBoundingBox.h.
bool ml::WEMBoundingBox::isCentered | ( | ) | const [inline] |
Returns whether the bounding box is centered.
Definition at line 40 of file WEMBoundingBox.h.
References NULL_VEC.
bool ml::WEMBoundingBox::isScalable | ( | ) | const [inline] |
Returns whether the bounding box is scalable.
Definition at line 42 of file WEMBoundingBox.h.
References WEM_EPSILON.
void ml::WEMBoundingBox::reset | ( | ) |
Resets values.
void ml::WEMBoundingBox::scale | ( | ) |
Scales bounding box.
Sets extents minimum and maximum and update center and radius.