ml::WEMBoundingBox Class Reference

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

#include <WEMBoundingBox.h>

List of all members.

Public Member Functions

 WEMBoundingBox ()
 Standard constructor.
 ~WEMBoundingBox ()
 Standard destructor.
Vector3 getMin () const
 Get minimum bounding box extent.
Vector3 getMax () const
 Get maximum bounding box extent.
Vector3 getCenter () const
 Get center of bounding box.
double getRadius () const
 Get radius.
bool isCentered () const
 Is bounding box centered?
bool isScalable () const
 Is bounding box scalable?
void reset ()
 Reset values.
void setExtents (Vector3 min, Vector3 max)
 Set extents minimum and maximum and update center and radius.
void center ()
 Center bounding box.
void scale ()
 Scale bounding box.


Detailed Description

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

Definition at line 21 of file WEMBoundingBox.h.


Constructor & Destructor Documentation

ml::WEMBoundingBox::WEMBoundingBox (  ) 

Standard constructor.

ml::WEMBoundingBox::~WEMBoundingBox (  ) 

Standard destructor.


Member Function Documentation

void ml::WEMBoundingBox::center (  ) 

Center bounding box.

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

Get center of bounding box.

Definition at line 36 of file WEMBoundingBox.h.

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

Get maximum bounding box extent.

Definition at line 34 of file WEMBoundingBox.h.

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

Get minimum bounding box extent.

Definition at line 32 of file WEMBoundingBox.h.

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

Get radius.

Definition at line 38 of file WEMBoundingBox.h.

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

Is bounding box centered?

Definition at line 40 of file WEMBoundingBox.h.

References NULL_VEC.

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

Is bounding box scalable?

Definition at line 42 of file WEMBoundingBox.h.

References WEM_EPSILON.

void ml::WEMBoundingBox::reset (  ) 

Reset values.

void ml::WEMBoundingBox::scale (  ) 

Scale bounding box.

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

Set extents minimum and maximum and update center and radius.


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

Generated on Sat Sep 3 18:39:40 2011 for MeVisLab Toolbox Reference by  doxygen 1.5.8