MeVisLab Toolbox Reference
ml::WEMBoundingBox Class Reference

This class represents an axis aligned bounding box for a WEMPatch. More...

#include <WEMBoundingBox.h>

Public Member Functions

bool contains (const Vector3 &position) const
 Returns whether the bounding box contains the given position.
 
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 object to the default constructed state.
 
void setExtents (const Vector3 &min, const Vector3 &max)
 Sets extents minimum and maximum and updates center and radius.
 
bool isValid () const
 Returns whether this is valid.
 
WEMBoundingBoxoperator&= (const WEMBoundingBox &other)
 Returns the union bounding box of this and other.
 

Detailed Description

This class represents an axis aligned bounding box for a WEMPatch.

Definition at line 22 of file WEMBoundingBox.h.

Member Function Documentation

◆ contains()

bool ml::WEMBoundingBox::contains ( const Vector3 & position) const

Returns whether the bounding box contains the given position.

◆ getCenter()

Vector3 ml::WEMBoundingBox::getCenter ( ) const
inline

Returns center of bounding box.

Definition at line 32 of file WEMBoundingBox.h.

◆ getMax()

Vector3 ml::WEMBoundingBox::getMax ( ) const
inline

Returns maximum bounding box extent.

Definition at line 30 of file WEMBoundingBox.h.

◆ getMin()

Vector3 ml::WEMBoundingBox::getMin ( ) const
inline

Returns minimum bounding box extent.

Definition at line 28 of file WEMBoundingBox.h.

◆ getRadius()

double ml::WEMBoundingBox::getRadius ( ) const
inline

Returns radius.

Definition at line 34 of file WEMBoundingBox.h.

◆ isCentered()

bool ml::WEMBoundingBox::isCentered ( ) const
inline

Returns whether the bounding box is centered.

Definition at line 36 of file WEMBoundingBox.h.

References NULL_VEC.

◆ isScalable()

bool ml::WEMBoundingBox::isScalable ( ) const
inline

Returns whether the bounding box is scalable.

Definition at line 38 of file WEMBoundingBox.h.

References WEM_EPSILON.

◆ isValid()

bool ml::WEMBoundingBox::isValid ( ) const

Returns whether this is valid.

◆ operator&=()

WEMBoundingBox & ml::WEMBoundingBox::operator&= ( const WEMBoundingBox & other)

Returns the union bounding box of this and other.

◆ reset()

void ml::WEMBoundingBox::reset ( )

Resets object to the default constructed state.

◆ setExtents()

void ml::WEMBoundingBox::setExtents ( const Vector3 & min,
const Vector3 & max )

Sets extents minimum and maximum and updates center and radius.


The documentation for this class was generated from the following file: