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. More...
 
Vector3 getMin () const
 Returns minimum bounding box extent. More...
 
Vector3 getMax () const
 Returns maximum bounding box extent. More...
 
Vector3 getCenter () const
 Returns center of bounding box. More...
 
double getRadius () const
 Returns radius. More...
 
bool isCentered () const
 Returns whether the bounding box is centered. More...
 
bool isScalable () const
 Returns whether the bounding box is scalable. More...
 
void reset ()
 Resets object to default constructed state. More...
 
void setExtents (const Vector3 &min, const Vector3 &max)
 Sets extents minimum and maximum and update center and radius. More...
 
bool isValid () const
 returns true if is a valid box More...
 
WEMBoundingBoxoperator&= (const WEMBoundingBox &other)
 returns the united bounding box of this and other More...
 

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 true if is a valid box

◆ operator&=()

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

returns the united bounding box of this and other

◆ reset()

void ml::WEMBoundingBox::reset ( )

Resets object to default constructed state.

◆ setExtents()

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

Sets extents minimum and maximum and update center and radius.


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